I've got it set to "Use administration theme for content editing". When I try to edit a node, I get:
Fatal error: Call to undefined function admin_navigation_primary() in /xx/xx/htdocs/sites/all/modules/admin/theme/page.tpl.php on line 30
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | admin-DRUPAL-6--1.fatal+delegator+item.patch | 4.64 KB | sun |
| #7 | admin-DRUPAL-6--1.fatal+delegator.patch | 4.67 KB | sun |
Comments
Comment #1
jrbIt looks like it's not checking the "node_admin_theme" setting when it does admin_init(). Here's a fix.
Around line 13 of admin.module, change this:
To this:
Comment #2
jacerider commentedI am also getting this error when I try editing a block.
*Update*
Clearing Drupal cache took care of the issue. Strange.
Comment #3
yhahn commentedGreat. Committed http://drupal.org/cvs?commit=220380
Comment #4
Stephen commentedI'm getting it when trying to edit a block as well and I applied the CVS and emptied the cache :/
Comment #5
yhahn commentedWant to give it another shot? This commit should make the check more robust:
http://drupal.org/cvs?commit=221106
Comment #6
mwoodwar commentedI applied the commit=221106 and unfortunately still got:
Fatal error: Call to undefined function admin_navigation_primary() in /home/wagg/public_html/talk/sites/all/modules/admin/theme/page.tpl.php on line 30
Comment #7
sunHard one.
1) For me, the fatal was caused by Panels' Delegator module, which alters the node edit page callback.
2) Additionally, I needed to configure the "Admin" theme as administration theme to get the fatal error. Using the site's default theme does not lead to the fatal error, but obviously, you won't get the "Admin" theme then.
3) Since, technically, any module can alter page callbacks in the menu system, Admin module can't rely on core's default values. Most probably, testing for $item['path'] instead could solve this in a more generic manner. Though that would not account for the case where a node edit form is displayed on a different path.
Comment #8
sunTesting for $item['path'] instead.
Comment #9
yhahn commentedThis has effectively been committed as part of http://drupal.org/cvs?commit=225318, http://drupal.org/cvs?commit=225316. Please reopen if the problem continues to occur.