Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The follow warning appears when all errors are turned on:
User warning: The following module is missing from the file system: content. 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()
This is due to Drupal 7.50 is now handling error reporting properly for missing modules. See: https://www.drupal.org/node/2487215
Core module 'content' does not exist. It is being called in salesforce_webforms.module#555
module_load_include('inc', 'content', 'includes/install');
This module was being loaded to utilize the function drupal_get_installed_schema_version()
. However this function seems to be already available globally.
Comment | File | Size | Author |
---|---|---|---|
#5 | salesforce_webforms-module-include-warning-2773089-5.patch | 845 bytes | nathandentzau |
Comments
Comment #2
nathandentzauSee next comment for patch. First patch failed.
Comment #3
nathandentzauSee attached for patch.
Comment #4
dbcollies CreditAttribution: dbcollies commentedI"m not certain that it's safe to assume that
drupal_get_installed_schema_version()
is globally available. I could certainly be mistaken, but I believe that line of code was put in place because it was not available, at least in some contexts. However, I certainly agree that the warning is a problem, and that the use ofmodule_load_include()
on a module we're not going to use, just to get to a core include, is a bad solution.Perhaps something better would be to use this construct, based on the module_load_include() API page.
require_once DRUPAL_ROOT . '/includes/install.inc'
Comment #5
nathandentzauHi dbcollies,
You are correct. Some pages it loads globally and others it does not. Here's an updated patch.
Comment #6
dbcollies CreditAttribution: dbcollies commentedLooks good. I'll commit it when I get a chance.
Comment #8
dbcollies CreditAttribution: dbcollies commented