Cannot add new Activity Type

Created on 22 June 2023, over 1 year ago
Updated 29 December 2023, 11 months ago

Problem/Motivation

When I try to add a new Activity Type in "Opigno Module", a blank page is displayed, with the following message:
"The website encountered an unexpected error. Please try again later."
See the attached screenshot.

Also, following error gets logged into the "Reports" -> "Log Messages" section:

TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class "\Drupal\opigno_module\Entity\OpignoActivityType.php" not found in call_user_func() (line 275 of /var/www/html/opigno/web/core/lib/Drupal/Core/Render/Element/MachineName.php)
#0 /var/www/html/opigno/web/core/lib/Drupal/Core/Render/Element/MachineName.php(275): call_user_func()
#1 [internal function]: Drupal\Core\Render\Element\MachineName::validateMachineName()
#2 /var/www/html/opigno/web/core/lib/Drupal/Core/Form/FormValidator.php(282): call_user_func_array()
#3 /var/www/html/opigno/web/core/lib/Drupal/Core/Form/FormValidator.php(238): Drupal\Core\Form\FormValidator->doValidateForm()
#4 /var/www/html/opigno/web/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\Core\Form\FormValidator->doValidateForm()
#5 /var/www/html/opigno/web/core/lib/Drupal/Core/Form/FormBuilder.php(588): Drupal\Core\Form\FormValidator->validateForm()
#6 /var/www/html/opigno/web/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm()
#7 /var/www/html/opigno/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#8 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#9 /var/www/html/opigno/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#10 /var/www/html/opigno/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /var/www/html/opigno/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#12 /var/www/html/opigno/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#13 /var/www/html/opigno/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/html/opigno/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /var/www/html/opigno/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /var/www/html/opigno/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#17 /var/www/html/opigno/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#18 /var/www/html/opigno/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#19 /var/www/html/opigno/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#20 /var/www/html/opigno/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#21 /var/www/html/opigno/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#22 /var/www/html/opigno/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#23 /var/www/html/opigno/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#24 {main}

Steps to reproduce

  • Go to "Opigno Module" -> "Activity Types" (URL: .../admin/structure/opigno_activity_type)
  • Click on "Add Activity type" button (URL: .../admin/structure/opigno_activity_type/add)
  • Fill in the required information and click "Save" button

Environment Information

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇷🇴Romania marian_pinzariu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024