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.