Hi,

I've encountered this problem 2 times, and output it here.

When I try to edit/delete a menu link which use menu token, it throws:

"Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 261900 bytes) in /opt/difang/prod/qlkaixin/includes/bootstrap.inc on line 196"

the original memory size is 134217728(128M), then I changed it to 200M, the error persists.

Need help!

CommentFileSizeAuthor
Screenshot.png17.97 KBrogical

Comments

bryancasler’s picture

subscribe

drupalmonkey’s picture

same issue here, i even tried boosting the memory to 512M, then the thing just timed out after 30 secs.

dealancer’s picture

Status: Active » Fixed

We have fixed performance of the Menu Token module in other issues. Please check it again for the dev version of the module.

Status: Fixed » Closed (fixed)

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

pgancarski’s picture

Title: Fatal error on edit/delete menu link which use menu token » Fatal error on add/edit/delete menu link which use menu token
Version: 7.x-1.0-alpha2 » 7.x-1.0-beta3
Status: Closed (fixed) » Active

Hi I have the same issue with the latest version (7.x-1.0-beta3).

It started with the same error when trying to add a menu link.
Fatal error: Allowed memory size of X bytes exhausted

I increased memory in php.ini to 256MB it resulted with similar error while trying to allocate 80MB !!! (my website is almost empty, )
Increasing memory to 512MB results in MYSQL error:

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {menu_links} WHERE menu_name = :menu_name AND module = :module AND link_path = :path; Array ( [:menu_name] => management [:module] => system [:path] => admin ) in toolbar_get_menu_tree() (line 286 of /...WWW.../modules/toolbar/toolbar.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: [...more of similar errors....]

My {menu_links} table has about 600 rows.

Similar issue is mentioned in
http://stackoverflow.com/questions/12638468/drupal-menu-throws-sql-error

The suggested walk around:
"Change max_allowed_packet to 20M or more in mysql\bin\my.ini "
does not work for me (I haven't try more than 20MB as it does not seem right to me).

Any advices? Currently my only solution is to disable menu token.

develcuy’s picture

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