I enable one module and then I got the error message as follow. The module maintainer believes that this has nothing to do with the module at all, and as the error message seems to indicate some problem with the admin module, I figure I should report it here.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT menu_links.* FROM {menu_links} menu_links WHERE (module = :db_condition_placeholder_0) AND (router_path = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => system [:db_condition_placeholder_1] => admin/config/content ) inadmin_landing_page_access() (line 164 ofC:\wamp\www\sites\all\modules\admin\admin.module).

Thanks

Comments

tomogden’s picture

This could be a PDO buffer issue, like the one seen in admin_menu. See issue #1302240-4: Enable admin_menu with toolbar give MySQL server has gone away:.

DrupalDan’s picture

Thank you very much tomogden! That's very, very helpful. I'm going to see if that applies to my case once I know how to increase the buffer allowance.

sickness29’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.