Hi all,

i have a problem with my drupal installation. It just appears on the live system but not on my local development server.
If i clear the cache for example, after clearing is finished ther is a green status message saying "Cache cleared". After visiting an other node this message normally disappears, but not on the live server. If i clear the cache again, i have now 2 messages saying "Cache cleared".
The messages stay on the top of the screen until i log out and the session gets cleared.

Does anyone have the same problem or a solution for that ?

Thanks for your help,
Jan

Comments

Fr0s7’s picture

I'm having this same issue.

I've discovered that the messages clear if you log-out, and log back in.

megadesk3000’s picture

Does anybody have the same issue or, better, a solution for this problem ?

walkerand’s picture

I moved hosts this week and started getting the problem, even though I was using the same code/data as on my previous host and dev PC (which were working fine).

It's been driving me nuts, but found this just now:

http://drupal.org/node/27098

Looks like the Administration Menu module is the culprit and if you disable it then the problem goes away. I just tried it and it worked for me.

Doesn't really solve the problem though, I can't imagine life without that module!

Strange thing is that the same set up worked fine on my old host. Maybe it is something to do with my new host's PHP settings? I don't really know at this point.

megadesk3000’s picture

Hi walkerand,

thanks for your reply. I tried your hint with the administration menu and it worked also for me.
So thats a small step into the right direction, but i don't want to miss that module, too. But maybe there are some people out there who know why this happens when the administration menu is activated.

Any suggestions ?

walkerand’s picture

I'm not a Drupal expert (yet!) but I've been doing some digging into the code and I think I've sorted it out.

In the admin_menu.module file there is a function called admin_menu_footer. That part of the code builds the menu structure and calls a core API method called menu_tree_all_data. It looks like that core function was failing due to the MySQL system variable max_allowed_packet not being set high enough (on my sites it fails accessing cache tables (in this case the menu cache) or the watchdog table if not set high enough).

Anyway, to cut a long story short, I got my hosting company to up max_allowed_packet to 5MB and that has cured the problem.

Fr0s7’s picture

This is a duplicate discussion in the issue queue:

#635042: Module causes Drupal status messages to build up

zdean’s picture

subscribe