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.
I tried disabling page module and after this, every page shows a warning:
warning: Invalid argument supplied for foreach() in /var/www/localhost/htdocs/includes/theme.inc on line 231.
Drupal code near this line is:
if (module_exist('node')) {
foreach (node_get_types() as $type) {
$defaults['toggle_node_info_' . $type] = 1;
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | node_names_init.patch | 497 bytes | chx |
Comments
Comment #1
amd CreditAttribution: amd commentedWhen 'page' module is enabled the array returned by node_get_types is
Comment #2
chx CreditAttribution: chx commented_node_name returns NULL instead of array() when there are no node types.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #4
(not verified) CreditAttribution: commented