Allowed memory size of 268435456 bytes exhausted (tried to allocate 12788583 bytes)
4vinoth - September 14, 2009 - 14:03
| Project: | Node Hierarchy |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
HI
My site was working fine with the older version, Today I have updated to 6.x-2.x-dev and got this Error on modules, views, status and most of the other pages.
none of the changes made except the upgrade to this version.
Please have a look into this.
Thanks
Vinoth

#1
#2
HI
My memory limit is 256MB.
Yesterday I got "Allowed memory size of 268435456 bytes exhausted (tried to allocate 12788583 bytes)" this error on most of the pages,
Yesterday I upgraded the Node Hierarchy module dev. version, so I thought it may be bug of that module, after hours of investigation I can't find why it is.
So I tried the same DB backup from local machine WITHOUT ANY modules installed, (deleted sites/all/modules folder)
and got the same error!!!
but found the line number 734 on bootstrap.inc which is function check_plain($text) {..
after printing each $text i got very big update query "MySQL server has gone away query: UPDATE cache_menu SET data = 'a:2:{s:4:\"tree\";a:9458:...."
which is updating menu_links table to cache. (my menu_links table has nearly 9849 rows)
Please let me know how to move forward, or any patch?
is it really a Drupal Bug?
Thanks
Vinoth
#3
any advise?
#4
HI
I Got it.
it is because of Node Hierarchy module only,
in nodehierarchy.install module function nodehierarchy_update_6200() {
he adding all node as menus to menu_links which is totally causing memory limit Error...
He would find the another solution for automatic menu creation logic.
I deleted "delete FROM `test_drupal_6`.`menu_links` where module = 'nodehierarchy'"
till no one with me :(
Thanks
Vinoth
#5
Thanks Vinoth. That really helped me out. Please note that if you uninstall the module, it does not delete the entries!! You must manually delete them all using Vinoth's query.
Ouch. This bug was very frustrating--particularly when I still had the error after uninstall.