Since the drupal core update I have these warning appearing after clearing cache.

User warning: The following module is missing from the file system: commerce_line_item. In order to fix this, put the module back in its original location. For more information, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of /path/includes/bootstrap.inc).
User warning: The following module is missing from the file system: commerce_price. In order to fix this, put the module back in its original location. For more information, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of /path/includes/bootstrap.inc).
User warning: The following module is missing from the file system: commerce_customer. In order to fix this, put the module back in its original location. For more information, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of /path/includes/bootstrap.inc).
User warning: The following module is missing from the file system: commerce_product_reference. In order to fix this, put the module back in its original location. For more information, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of /path/includes/bootstrap.inc).

I know this is related to

https://www.drupal.org/node/2487215

I do not have commerce installed in this site and it is not left over records. The only naming of commerce modules is within this module.

I have tried this to cleanup the issue

https://www.drupal.org/project/module_missing_message_fixer

However it does not effect this module and still occurs.

Can anyone confirm this is an issue with this module that needs addressing?

CommentFileSizeAuthor
Screenshot_inline_entity_form.png103.07 KBlionslair

Comments

lionslair created an issue. See original summary.

lionslair’s picture

Issue summary: View changes
lionslair’s picture

Anonymous’s picture

I am experiencing this same issue on one of my sites. For now, I've just put the Commerce module into the site code, but since I'm not actually using it I'd rather not have to have it in the codebase (and therefore need to keep track of updates which might be released for it).

bojanz’s picture

Category: Bug report » Support request
Status: Active » Fixed

This module has nothing to do with the issue you are seeing.

Drupal obviously thinks Commerce is installed on your site, but missing. I can't explain why. Wrong database imported?

Anonymous’s picture

At least in my scenario, I have re-enabled and then disabled and uninstalled the Commerce Price module (the only one I'm seeing a message about), which should fix the issue, but the message remains. The only mention of commerce_price in the codebase of the site is in the IEF module, and I can't find any other outstanding references to it in the database.

lionslair’s picture

No not wrong database imported. I have used the same approach and just put commerce in the install to stop the warnings.

Status: Fixed » Closed (fixed)

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

wOOge’s picture

Status: Closed (fixed) » Active

This issue is still active. I searched for instances of commerce_product_reference and found several reference in the commerce_line_item.inline_entity_form.inc and inline_entity_form.module files.

Seems there needs to be a patch to first see if the commerce module is installed and if not, do not run the calls that reference it.

$ grep -rnw '/srv/www/website/sites/all/modules/contrib/' -e "commerce_product_reference"


./modules/contrib/entityreference_view_widget/entityreference_view_widget.module:42:      'commerce_product_reference',
./modules/contrib/inline_entity_form/includes/commerce_line_item.inline_entity_form.inc:189:   * If the commerce_product_reference module is missing, returns an empty
./modules/contrib/inline_entity_form/includes/commerce_line_item.inline_entity_form.inc:193:    if (module_exists('commerce_product_reference')) {
./modules/contrib/inline_entity_form/inline_entity_form.module:39: * Supports commerce_product_reference and entityreference fields.
./modules/contrib/inline_entity_form/inline_entity_form.module:53:  if ($field['type'] == 'commerce_product_reference') {
./modules/contrib/inline_entity_form/inline_entity_form.module:237:    'field types' => array('commerce_line_item_reference', 'commerce_product_reference', 'entityreference'),
./modules/contrib/inline_entity_form/inline_entity_form.module:249:    'field types' => array('commerce_line_item_reference', 'commerce_product_reference', 'entityreference'),
./modules/contrib/inline_entity_form/inline_entity_form.module:345:  if ($field['type'] == 'commerce_product_reference') {
./modules/contrib/inline_entity_form/README:6:Supports commerce_product_reference, commerce_line_item_reference and entityreference fields.
bojanz’s picture

Status: Active » Closed (fixed)

The whole point of the module_exists() calls is to only run code if the module exists.
And even if the code in question did run, you'd get an error about an unknown function, not "the following module is missing from the filesystem". Wherever your error is coming from, it's not from this code.

tanmayk’s picture

Just a quick info. I was getting same warnings so did some debugging. Looks like it is because of #2820939: field_read_fields() does not check whether a module is disabled or missing.. Nothing related to Inline entity form.

.jch’s picture

d8.3.5 Removed nodejs module with composer. Now in recent log messages... User warning: The following module is missing from the file system: nodejs_ajax in drupal_get_filename() (line 250 of \web\core\includes\bootstrap.inc) #0
Module nodejs_ajax is not standalone that can be reinstalled.

Tried... drush sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='nodejs_ajax';"
No effect.

Nodejs module caused conflicts when installed. Installed and removed with composer.