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 filefield_sources_update_6001()
in fieldfield_sources.install.
/**
* Enable FileField Sources on all current fields (as was the previous default).
*/
function filefield_sources_update_6001() {
$ret = array();
drupal_load('module', 'content');
module_load_include('inc', 'content', 'includes/content.crud');
foreach (content_fields() as $field) {
foreach (node_get_types('types') as $node_type => $type_info) {
if ($type_field = content_fields($field['field_name'], $node_type)) {
$type_field['widget']['filefield_sources'] = array(
'imce' => 'imce',
'reference' => 'reference',
'remote' => 'remote',
);
content_field_instance_update($type_field);
}
}
}
// FileField Sources needs to load after both ImageField and FileField.
$ret[] = update_sql("UPDATE {system} SET weight = 5 WHERE type = 'module' AND name = 'filefield_sources'");
return $ret;
}
This scheme update is for Drupal 6.x. Removing this function stops the warning regarding the content module missing.
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_source-module-include-warning-2773095-2.patch | 1.63 KB | nathandentzau |
Comments
Comment #2
nathandentzauAttached is my patch for this bug.