Memory limit.. and .htaccess problems

Author Message

Petter Neumann

Sunday 20 June 2004 4:13:18 pm

After install ez 3.4 and acessing the site, I get this error:
"
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 44 bytes) in /home/mydomain/www/e/lib/ezxml/classes/ezdomnode.php on line 458
Fatal error: eZ publish did not finish it's request

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

I also tried to copy the .htaccess_root file to my ez root directoty, rename it to
.htaccess and add the line

php_value memory_limit "32M"

But when doing that I only get a
"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
"

/ Petter

Kåre Køhler Høvik

Sunday 20 June 2004 11:41:25 pm

eZ publish probably runs out of memory due to template compilation. You can do this from command line : http://ez.no/ez_publish/documentation/development/scripting/supplied_scripts/template_compiler

--
Kåre Høvik

Kåre Høvik

James Packham

Monday 21 June 2004 3:49:08 am

I prefer to use a hack of index.php to get around it. Just add:

ini_set( "memory_limit", "-1M");

to the begining of index.php. This will disable the php memory limit. Just remember it's there when you upgrade :)

Regards,

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 18 2025 14:57:51
Script start
Timing: Jan 18 2025 14:57:51
Module start 'layout'
Timing: Jan 18 2025 14:57:51
Module start 'content'
Timing: Jan 18 2025 14:57:52
Module end 'content'
Timing: Jan 18 2025 14:57:52
Script end

Main resources:

Total runtime0.8624 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0391152.6406
Module start 'layout' 0.00430.0019 740.679739.4766
Module start 'content' 0.00610.8547 780.1563575.6797
Module end 'content' 0.86090.0015 1,355.835912.1406
Script end 0.8624  1,367.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3301160.0002
Check MTime0.00120.1409160.0001
Mysql Total
Database connection0.00050.061510.0005
Mysqli_queries0.809393.8389590.0137
Looping result0.00050.0613570.0000
Template Total0.839597.320.4197
Template load0.00200.229820.0010
Template processing0.837597.103620.4187
Template load and register function0.00030.031010.0003
states
state_id_array0.00060.074910.0006
state_identifier_array0.00060.074920.0003
Override
Cache load0.00160.1894310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.087630.0003
Fetch class attribute name0.00130.148350.0003
XML
Image XML parsing0.00340.396930.0011
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00380.4367210.0002
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs