Hej!

When I installed and activated the Administration module in drupal 4.7.0 I get the following error message. I probably did something wrong but can someone tell me how to fix this problem??

Fatal error: Call to undefined function: _administration_menu_config() in drupal/modules/administration.module on line 283

Thanx!

CommentFileSizeAuthor
#11 555.gif5.68 KBejan

Comments

nikle’s picture

I too am having this problem, installed locally on OS X, Apache, MySQL 4.1, PHP 4

mjlacore’s picture

I'm having the same problem on a fresh install of 4.7.1. I've used the Administration Module successfully on several other installations of 4.7.0, but this just popped up. The only way I am able to get into the site at all is to manually change the status of the module in the database, but that fouls up the whole menu structure because the module wasn't first deactivated.

nathanmcginty’s picture

Same here on 4.7.2. There's another post floating around about this, as well.

We get this error showing up in the logs:

Cannot redeclare _administration_sub_dashboard_page()

nathanmcginty’s picture

Ok. I'm not much of a programmer, so take this worth a grain of salt -

But I totally deleted the "zadministration.module" file and then reuploaded.

Everything seems to be working fine. I don't know what that zadministration.module file is, but - from what I could tell - it looks like it was a duplicate of the administration.module.

I guess you could rename it, too - but make sure you change the .module suffix at the end. Anything ending with .module gets uploaded by Drupal automatically.

Fired up the admin page and no issues yet. Pretty cool little interface.

dreed47’s picture

My appologies cause I don't really have time to look at this today but I can tell you that if you are trying to run this module on 4.7 then your don't not need or want the zadminstration module at all (it should not even be in the 4.7 tar). The zadministration module is the 4.6 only version.

I'm to co-author of this module. I may be able to take a closer look at some of the latest bug reports next week but probably not any sooner.

nathanmcginty’s picture

Yeah, for the most part dropping the zadministration seems to make it work, but it'll still spit out a blank screen to me every once in a while. but i'm sure that probably has something to do with code "funkiness".

thanks for all the work on this.

add1sun’s picture

I am having the same issue on 4.7.2 and there is no zadministration file in my module. I deleted the module but since I couldn't deactivate it my menus are all kind of screwy.

forngren’s picture

It seems like Pinguin doesn't work on an patch, perhaps this shoud be unassigned?

hitman6003’s picture

This is caused when you activate the administration module without selecting the theme (merged or civicspace).

I resolved this issue by doing the following:

Using a code editor, open the administration.module file
Comment out lines 279 and 280.
Copy line 280, paste it below 280 (will be line 281), change "/" . $config_file . ".inc"; to read "/merged.inc";
Save the file.

Go to administer->settings->administration
Deactivate the menus.

Now, go back to your file, remove (or comment) the new line (281), and uncomment the other two (279 and 280).
Go back to your site, reactivate the administration...BE SURE YOU PICK A DEFAULT THEME!!!!!
It should work as advertised now.

gtoddv’s picture

hitman6003's solution worked for me but I actually did select a style during the initial installation of this module. So it can happen to you whether you install correctly or not.

ejan’s picture

StatusFileSize
new5.68 KB

Hey, hitman6003,
How to uninstall the Administration module, and return to a normal Admin CP?

the attachement is my AdminCP right now, very confusion....

dreed47’s picture

Status: Active » Closed (fixed)