I demo-ed the 6.x Administration Menu module -- and loved it!! -- at a recent Lullabot training. I downloaded the 5.x-2.6 version of the module and uploaded it on my Drupal 5.6 development site at sites/all/modules. After I enabled the module, my site crashed entirely -- all URLs (admin and otherwise) yeilded this error message:

Fatal error: Call to undefined function panels_mini_load_all() in /home/campaign/dev/sites/all/modules/admin_menu/admin_menu.inc on line 269

By deleting the module directory, I was able to bring my site back online. I then decided to give this module another try. I cleared my site's cache, FTP'd the admin_menu directory back into sites/all/modules, and then -- without even enabling the module -- my site went down again, with the same error as above.

I've removed the module from my site again, and am currently scratching my head.

Any advice on how to overcome this issue would be most welcome. I love the module and hope to get it working on our site.

Comments

sun’s picture

Hrm. Which version of Panels do you have installed?

sun’s picture

Status: Active » Needs review
StatusFileSize
new787 bytes

...anyway, here's a patch that should fix this issue.

imishalove’s picture

Thanks much for the tip! To answer your question, the version of Panels we're using is 5.x-2.0-alpha13. Will your suggested patch work in this case? If you have any other thoughts, please let me know. Thanks so much!

sun’s picture

Well, this patch will probably fix compatibility with your Panels version. However, alpha is pretty old and you are strongly encouraged to update to the latest release of Panels (RC1 will be released in the next couple of days).

Does this patch work for you?

sun’s picture

StatusFileSize
new965 bytes

Optimized logic - could you please test attached patch and report back if it works for you?

sun’s picture

Title: "Fatal Error" » Fatal error with Panels 2-ALPHA (only)
Status: Needs review » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.