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).

Getting below error after saving the event using core modeller.

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).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mageshbcet1 created an issue. See original summary.

mxh’s picture

Status: Active » Postponed (maintainer needs more info)

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?

mageshbcet1’s picture

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.

mxh’s picture

What other modules are you using?

mxh’s picture

Which version of ECA and ECA Core Modeller?

mageshbcet1’s picture

I'm using so many modules. I can't mentioned them here.

ECA Version : 1.1.1
ECA Core Modeller: 1.0.4

ajlow’s picture

I am getting this error as well. I am using:

ECA Version : 1.1.2
ECA Core Modeller: 1.0.5

I 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?

_renify_’s picture

StatusFileSize
new54.04 KB

It seems pathauto_file_update_action has null value on provider.

_renify_’s picture

StatusFileSize
new978 bytes

  • mxh committed d018ef1c on 1.0.x
    Issue #3345176 by _renify_, mageshbcet1, mxh, ajlow: The module does not...
mxh’s picture

Version: 1.0.4 » 1.0.x-dev
Status: Postponed (maintainer needs more info) » Fixed

This should now be fixed with the last commit. If not, feel free to re-open this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.