It seems to me that the menu module in cvs-core (today's download) creates serious problems if used together with db_prefix (some drupal installation in one db): $db_prefix = "db0_";

error messages in menu.module and menu.inc:

warning: Invalid argument supplied for foreach() in /usr/local/.../html/phibi-cvs/modules/menu.module on line 313.

Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/.../html/phibi-cvs/includes/menu.inc on line 623

another effect: after the error message the side bar disappears

It works fine with a standard installation.

CommentFileSizeAuthor
#2 updates.patch1.47 KBjonbob

Comments

jonbob’s picture

I searched through all core code for queries to the menu table, and all instances seem to be properly prefixed, so I doubt whether that's the issue. I can't reproduce this problem on my install at this point.

Please give more information:

What are you doing when these errors are reported? Does it only happen on menu administration pages?

Does it happen on every page load, or only some of the time?

When did it start happening? After you customized the menu? Immediately after install? After an upgrade?

Are there any other customizations you've made to your install besides the database prefixing? Custom modules, etc.?

When you say "the side bar disappears," what do you mean by that? The navigation block is not displayed? No blocks are displayed?

jonbob’s picture

StatusFileSize
new1.47 KB

Thanks to jabart for helping me figure this out. The prefixing problem was well-hidden in updates.inc.

Steven’s picture

Committed to CVS/HEAD.

Anonymous’s picture