- Issue created by @mageshbcet1
- Status changed to Postponed: needs info
almost 2 years ago 12:19pm 1 March 2023 - 🇩🇪Germany mxh Offenburg
I need the full stack trace in order to reproduce this. Which event is it that you're trying to save? What other modules are you using?
- 🇮🇳India mageshbcet1
Hi,
I got below error when I try to add and save any event.
The website encountered an unexpected error. Please try again later. Drupal\Core\Extension\Exception\UnknownExtensionException: The module does not exist. in Drupal\Core\Extension\ExtensionList->get() (line 265 of core/lib/Drupal/Core/Extension/ExtensionList.php). Drupal\Core\Extension\ExtensionList->getName('') (Line: 735) Drupal\Core\Extension\ModuleHandler->getName('') (Line: 642) Drupal\eca_cm\Form\EcaForm->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 531) Drupal\Core\Form\FormBuilder->retrieveForm('eca_cm', Object) (Line: 278) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 97) Drupal\autosave_form\Form\AutosaveFormBuilder->buildForm(Object, Object) (Line: 219) Drupal\Core\Form\FormBuilder->getForm(Object) (Line: 208) Drupal\eca_cm\Plugin\ECA\Modeller\Core->edit() (Line: 206) Drupal\eca_ui\Controller\EcaController->edit('testdddd') call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 49) Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 45) Drupal\epri_cohesion_customization\StackMiddleware\MyModule->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
This is working in plain Drupal setup but the same is not working in my application. It doesn't show which module doesn't exist from the above error message.
- 🇮🇳India mageshbcet1
I'm using so many modules. I can't mentioned them here.
ECA Version : 1.1.1
ECA Core Modeller: 1.0.4 - 🇦🇺Australia ajlow
I am getting this error as well. I am using:
ECA Version : 1.1.2
ECA Core Modeller: 1.0.5I have quite a lot of modules as well which would make it hard to track. What I did was go into the code to see what the issue is.
Doing some tracing, it looks like the issue is with this line of code in the EcaForm.php:
$module_name = $definition['provider'] === 'core' ? 'Drupal core' : (string) $this->moduleHandler->getName((string) $definition['provider']);
The assumption is that the
$definition
array has a'provider'
key.Most of the definitions do have a
'provider'
key, however it died on me with this definition:[03-May-2023 13:10:37 Australia/Melbourne] Array ( [type] => file [label] => Drupal\Core\StringTranslation\TranslatableMarkup Object ( [string:protected] => Update file alias [arguments:protected] => Array ( ) [translatedMarkup:protected] => [options:protected] => Array ( ) [stringTranslation:protected] => ) [configurable] => )
As you can see, there is no
'provider'
key.Possible solution:
Should there be a check to see whether the key is set? If not, then skip?
- 🇵🇭Philippines _renify_ cebu
It seems pathauto_file_update_action has null value on
provider
. - Status changed to Fixed
over 1 year ago 8:35am 17 August 2023 - 🇩🇪Germany mxh Offenburg
This should now be fixed with the last commit. If not, feel free to re-open this.
Automatically closed - issue fixed for 2 weeks with no activity.