Fatal error: Allowed memory size of 8388608...

Author Message

James Packham

Wednesday 17 September 2003 6:17:59 am

Hi I've just installed the latest version of eZ Publisher, but can't view the index.php page. When I try to load it up in a browser I get:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /var/www/html/ezpublish-3.2-1/kernel/classes/datatypes/ezenum/ezenumtype.php on line 239
Fatal error: eZ publish did not finish it's request

I'm not entirely sure what all this means, so if anyone could point me in the right direction I'd much appreciate it :)

I'll put some details about my system on the end of this, along with the eZ debug (web browser view) below incase it's needed.

Many Thanks in advance,

James

-------------------------------------------------------------------------
And now for the *other* bits:

I'm running the new (non beta) version of publisher (as you can guess from the above), apache 2, php 4.2.2, ImageMagick 5.5.7, Mysql 3.23 on a Redhat 9 system.

The execution of eZ publish was abruptly ended, the debug output is present below.

eZ debug
Timing: Sep 17 2003 14:05:20

Script start

Timing: Sep 17 2003 14:05:20

Module start 'content'

Warning: eZModuleOperationInfo::execute Sep 17 2003 14:05:20

Missing main operation memento for key: b105510768d55ed7d3094a9a81c6571f

Debug: here 1 Sep 17 2003 14:05:20

array(1) {
[0]=>
string(86) "ezcontentobject.contentclass_id in (1,10,10,11,11,12,12,13,13,2,2,5,5,6,6,7,7,8,8,9,9)"
}

Timing points:
Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Script start 0.0000 sec 0.0522 sec 0.0000KB 0.0000KB
Module start 'content' 0.0522 sec 0.0000KB 0.0000KB
Total runtime: 0.2481 sec
Time accumulators:
Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.0112 sec 4.2858% 8 0.0014 sec
Mysql Total
Mysql_queries 0.0076 sec 2.9194% 13 0.0006 sec
Looping result 0.0009 sec 0.3413% 10 0.0001 sec
Template Total
Template load 0.0083 sec 3.1779% 1 0.0083 sec
Template processing 0.0000 sec 0.0000% 0 0.0000 sec
Template load and register function 0.0016 sec 0.6053% 1 0.0016 sec
override
Cache load 0.0068 sec 2.5938% 1 0.0068 sec
Total script time: 0.2604 sec

Karsten Jennissen

Wednesday 17 September 2003 6:52:30 am

Check here:
http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/troubleshooting/not_enough_php_memory

Regards,
Karsten

James Packham

Wednesday 17 September 2003 7:18:49 am

Thanks,

but I'd already tried this (I should have mentioned it really). It seems that even when I put the max allowed memory up I still get the error (I tried all the way up to 50M). I've had something like this before (on PHP Nuke), but can't remember for the life of me how I fixed it!

Anyone had this problem before? It's kind of annoying because I had the beta version of 3.2 working of sorts until this morning, when I tried to replace it with this one...

~James~

Paul Borgermans

Wednesday 17 September 2003 7:40:04 am

OK, brute force method:

1) clear the entire var/cache by hand
2) clear any php accelerator files (probably in /tmp); this you should always do after a release upgrade.

If that does not work,

3) put

phpinfo();

at the top of index.php and find the line which says which php.ini file it is using. If you used the installers, there may be a problem that the php.ini file is not the right one or it cannot find it. So your max memory settings are ignored.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Tony Wood

Wednesday 17 September 2003 7:57:09 am

I know this is a stupid question, but what settings did you change in the php.ini file and did you restart httpd afterwards? service httpd restart?

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

James Packham

Wednesday 17 September 2003 8:09:29 am

AH HA! It was because I didn't clear the cache, it seems to be working fine now. Sorry if I wasted your time!

Cheers,

~James~

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:59:34
Script start
Timing: Jan 19 2025 00:59:34
Module start 'layout'
Timing: Jan 19 2025 00:59:34
Module start 'content'
Timing: Jan 19 2025 00:59:35
Module end 'content'
Timing: Jan 19 2025 00:59:35
Script end

Main resources:

Total runtime0.6088 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 590.8359152.6563
Module start 'layout' 0.00490.0031 743.492239.4922
Module start 'content' 0.00800.5994 782.9844673.6563
Module end 'content' 0.60740.0014 1,456.640616.1250
Script end 0.6088  1,472.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5406160.0002
Check MTime0.00140.2250160.0001
Mysql Total
Database connection0.00050.089210.0005
Mysqli_queries0.528086.7277700.0075
Looping result0.00080.1326680.0000
Template Total0.580895.420.2904
Template load0.00220.369620.0011
Template processing0.578695.031420.2893
Template load and register function0.00010.021010.0001
states
state_id_array0.00070.120110.0007
state_identifier_array0.00070.121920.0004
Override
Cache load0.00200.3356770.0000
Sytem overhead
Fetch class attribute can translate value0.00050.084640.0001
Fetch class attribute name0.00190.311190.0002
XML
Image XML parsing0.00170.275340.0004
class_abstraction
Instantiating content class attribute0.00000.0034110.0000
General
dbfile0.00280.4549290.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs