Install problem with 3.4 - PHP error due to function nesting

Author Message

John Dalton

Wednesday 02 June 2004 10:55:49 pm

Hi,

I've just installed 3.4.0 on a development box to take a look at it. The installation seemed to proceed ok, but I had problems when trying to access the site.

The admin site exceeded the default 30 second time limit, so I reloaded it a couple of times just to see if it was making progress and it eventually came up. I'm not too worried about the as the development box isn't very powerful, and the fact that it got there at all in the end is impressive. I can navigate around in there and it seems to be running just fine.

However I can't get the user site to come up at all. When I try I get the following error messages:

Fatal error: Maximum function nesting level of '64' reached, aborting! in /home/jrdalton/workdir/ezpublish/ezpublish-3.4.0/lib/eztemplate/classes/eztemplatecompiler.php on line 1345

Fatal error: Maximum function nesting level of '64' reached, aborting! in Unknown on line 0

Fatal error: Maximum function nesting level of '64' reached, aborting! in Unknown on line 0

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

I'm running the XDebug PHP extension (http://www.xdebug.org/) so I get a nice function stack trace after each of those errors (the same every time) which I can reproduce here on request.

Has anybody else run across this problem?

Any idea how I can fix it?

Jan Borsodi

Thursday 03 June 2004 12:19:14 am

You need to increase the maximum nesting setting for XDebug, eZ publish has lots of function nesting especially when doing things like template compiling.

Edit php.ini and add (or change) xdebug.max_nesting_level, setting it to 100 should make it work.

xdebug.max_nesting_level = 100

You can also turn off XDebug until the site is finished compiling, then turn it on to debug things.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

John Dalton

Thursday 03 June 2004 4:33:57 pm

Thanks, that did the trick. I should have thought to try it without XDebug first..

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 31 2025 06:18:11
Script start
Timing: Jan 31 2025 06:18:11
Module start 'layout'
Timing: Jan 31 2025 06:18:11
Module start 'content'
Timing: Jan 31 2025 06:18:11
Module end 'content'
Timing: Jan 31 2025 06:18:11
Script end

Main resources:

Total runtime0.0370 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.6172151.2734
Module start 'layout' 0.00780.0031 739.890636.7109
Module start 'content' 0.01090.0245 776.601690.2656
Module end 'content' 0.03540.0015 866.867233.9922
Script end 0.0369  900.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00297.8210140.0002
Check MTime0.00143.6628140.0001
Mysql Total
Database connection0.00153.964710.0015
Mysqli_queries0.004211.405730.0014
Looping result0.00000.043210.0000
Template Total0.00112.910.0011
Template load0.00082.289210.0008
Template processing0.00020.568410.0002
Override
Cache load0.00061.631710.0006
General
dbfile0.008823.719980.0011
String conversion0.00000.022640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs