Posted by geniekids on December 1, 2008 at 8:09am
i have recently (three days back) upgraded DRUPAL core from 5.1 to 6.6
Any idea why this error is coming when i tick marked a lot of "user role permissions"
Fatal error: Out of memory (allocated 43 515 904) (tried to allocate 1 597 441 bytes) in /home/genie/public_html/themes/tapestry/page.tpl.php on line 417
How do i resolve it?
How serious is this?
Comments
More info please
Please describe the steps you take, and on what page. A bit more info on your environment is also helpful (OS, Webserver, Db server, contributed modules etc.)
- Arie
Try changing back to garland
Try changing back to garland theme, and see if the same error appears.
If not, then make sure the theme is updated properly to the latest drupal6 version. If it is, look for an issue in that theme, or create one.
no luck by changing theme
When i changed to garland theme - i get a similar error ( i now get this error when i click on permissions in under admin>users.)
The information about our setup is as following:
MySQL database 5.0.51a
PHP 5.2.6
PHP memory limit 64M
Web server Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Line 76:
Line 76: http://cvs.drupal.org/viewvc.py/drupal/drupal/themes/garland/page.tpl.ph...
Presubaly $content is pretty heavy - the table of checkboxes etc. However there are probably some contrib modules that are consuming the bulk of the used memory. You either need to increase the memory available to Drupal or turn off any memory-hungry modules (probably not a very appealing option). Possibly a contrib module needs optimizing to make it use less RAM.
BTW it looks like the PHP memory limit available to the Drupal is nearer 42M not 64M.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
why - i am wondering
Pl note I upgraded just 3 days back and i have added back only few modules (all carefully 6x version only - these are:
admin_menu, audio, blocktheme, calendar, captcha, cck, date, faq, imce, mimemail, node_clone, pathauto, poormanscron, simplenews, subscriptions, token, views, views_slideshow, webform
1. Do i need to increase it further to 64M - isn;t that good enough
2. Any clue - which - if any - of above modules could be causing the trouble.
how does one do this optimization?
what makes you say that? I check the PHP.ini file - it also shows 64M
Please help - i am unable to put the website online as i am unable to give proper permissions and a number of y views are visible to visitors as blank views.
You need to run phpinfo()
You need to run phpinfo() either from within a Drupal page or from a script in Drupal's root folder to get an accurate take on memory available to PHP. The "allocated" figure was the clue but may not be correct. Offhand I couldn't say which module is eating your RAM when you view the permissions page, however:
[update] actually since 6.x the status report admin page has a PHP memory limit entry :) [/update]
>2. Any clue - which - if any - of above modules could be causing the trouble.
Try http://2bits.com/articles/measuring-memory-consumption-by-drupal-bootstr...
>how does one do this optimization?
Start here: http://www.google.co.uk/search?hl=en&q=drupal+view+module+memory+usage&b...
or: http://www.google.co.uk/search?hl=en&q=drupal+reduce+module+memory+usage...
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Try disabling modules
To identify the source/sources of this error, you might try disabling all modules, and then enabling them again one by one, until you get the out of memory error.
disablling modules helped
Yes i have followed your advise and the error seemed to have gone.
I have yet to install all the modules back - doing it one at a time and giving few days gap to see if by chance the error re-appears
i get a feeling it was because of CCK module called - Content Permissions (6.x-2.1) which is used to Set field-level permissions for CCK fields. - as of now i have not enabled it.
Disable imageapi?
hi, i'm new but was having the problem after installing cck (need it for ubercart to display thumbnails)
i wiped most of the module out leaving what i think is the minimum files i need, but its only when i disable image api;
ImageAPI GD2
ImageAPI ImageMagick
ImageCache UI
that it runs again...
Wedding Dresses
@ coppock
Thanks...
PHP memory
I was having a problem where my PHP memory limit was showing correctly under the Drupal status section, but was still having problems running update.php. My phpinfo.php was also set correctly. Finally my hosting provider suggested adding this line to my .htaccess file:
<IfModule mod_php.c>php_value max_execution_time 30
php_value max_input_time 60
php_value memory_limit 128M
</IfModule>
Obviously I don't know if I need the 128M bit, but I've been problem free and have decided to not change it. (If anyone knows of a reason why I shouldn't keep it at 128, please let me know). My Host mentioned it was some problem with Apache and cPanel. Just a thought
Upload the php.ini to folder of the error
I have the same error when i flush the cache by admin menu module. I resolved the problem sending the php.ini file to folder containing the file described in error. Then flushed the cache.
Eg: Fatal error: Out of memory (allocated 77332480) (tried to allocate 80 bytes) in /home/yoursite/public_html/includes/menu.inc on line 966
Place the php.ini with greater memory limit on /home/yoursite/public_html/includes/
Ellaborare - Criação, desenvolvimento e hospedagem.
http://ellaborare.com