Strange timeout error

Author Message

Orlin Velinov

Thursday 05 June 2003 11:54:00 pm

Hi,
when I installed ez 3.0 and trying to access, i got this error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/ovsoft/public_html/ez/lib/ezi18n/classes/ezcodepage.php on line 92
Fatal error: eZ publish did not finish it's request

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

What to do?

Karsten Jennissen

Friday 06 June 2003 2:59:33 am

Try this patch:
http://ez.no/developer/ez_publish_3/contributions/30_second_timeout_remedy

Orlin Velinov

Friday 06 June 2003 6:42:57 am

Thank you, this solved my problem :-)

Eugene Vernikovskiy

Saturday 14 August 2004 8:06:58 pm

I faced the same timeout problem after upgrading to v3.4.1 and killing the cache
I found the following code in the php eztemplatecompiler.php (in two places)

        // Time limit #1:
        // We reset the time limit to 30 seconds to ensure that templates
        // have enough time to compile
        // However if time limit is unlimited (0) we leave it be
        // Time limit will also be reset after subtemplates are compiled
        if ( ini_get( 'max_execution_time' ) != 0  )
        {
            @set_time_limit( 30 );
        }

I thik the timeout happens because the compiler sets the timeout back to 30 (instead of the original php.ini timeout).
I recommend to set <i>max_execution_time=0</i> in php.ini if you see the error above. Once the compilation
is completed you can restore a proper timeout back.

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 19:16:15
Script start
Timing: Jan 18 2025 19:16:15
Module start 'layout'
Timing: Jan 18 2025 19:16:15
Module start 'content'
Timing: Jan 18 2025 19:16:16
Module end 'content'
Timing: Jan 18 2025 19:16:16
Script end

Main resources:

Total runtime0.8708 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0313152.6250
Module start 'layout' 0.00660.0027 741.656339.4609
Module start 'content' 0.00930.8600 781.1172513.9063
Module end 'content' 0.86940.0015 1,295.023412.1719
Script end 0.8708  1,307.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4658160.0003
Check MTime0.00200.2244160.0001
Mysql Total
Database connection0.00100.112410.0010
Mysqli_queries0.821194.2879620.0132
Looping result0.00080.0877600.0000
Template Total0.840996.620.4205
Template load0.00210.237020.0010
Template processing0.838996.328320.4194
Template load and register function0.00020.026610.0002
states
state_id_array0.00070.076710.0007
state_identifier_array0.00180.203020.0009
Override
Cache load0.00170.1977210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.106030.0003
Fetch class attribute name0.00240.275640.0006
XML
Image XML parsing0.00080.095730.0003
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00090.1004100.0001
String conversion0.00000.001140.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
4content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs