PHP4.4.1 and Maximum execution time exceeded

Author Message

Harry van Irsel

Monday 12 December 2005 1:46:30 pm

Last summer my webhost upgraded to PHP4.4.0 and I was forced to install 3.7.0rc2.
Everything worked fine until last week.
My webhost upgraded to PHP4.4.1 and from that moment on I get the next message

"Fatal error: Maximum execution time of 30 seconds exceeded in
/home/duiven/public_html/kernel/classes/ezcontentobject.php on line 477
Fatal error: eZ publish did not finish its request"

I get this message for both the site and the admin. My webhost company doesn't want to setup the maximum execution time so I'm stuck.

My site doesn't work and I cann't reach it through the admin interface.

What could be the problem ?

Łukasz Serwatka

Tuesday 13 December 2005 11:32:15 pm

Try add at the beginning of index.php file php function:

//120 second
set_time_limit(120);

or

//unlimited
set_time_limit(0);

safe_mode must be off.

This should help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Harry van Irsel

Thursday 15 December 2005 9:43:31 am

I cann't try this anymore because my webhost company suspended my site because everytime the site was accessed it causes a server CPU overload.

Although performance never has been perfect, the site ran acceptable.
Problem occurred when the webhost implemented PHP 4.4.1.

I installed PHP 4.4.1 on my local computer and restored a backup from the production site.
On my local computer it works, but even there the site is remarkably (and unacceptable) slower as it was before.

People tipped me to look for another CMS but I'm almost certain that I never find another CMS with the same very rich functionality.
But on the other hand : Performance is everything !

Łukasz Serwatka

Thursday 15 December 2005 11:00:30 am

Harry, I suggest to look at the offer of hosting partners. eZ publish like other applications has some requirements ... With good, solid hosting the performance isn't a problem.

Look here:
http://ez.no/partner/worldwide_ez_publish_partners/(profile)/hosting

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Harry van Irsel

Tuesday 20 December 2005 12:48:02 pm

To prevent a misunderstanding : I believe webhosting is not the problem and my webhost company was very cooperative to fix the problem, but we got stuck....

After I backupped my site (incl. the databases) I threw away the whole site and cleaned up everything.
After that I installed 3.7.2, restored the databases, user settings and templates and var/storage parts.

The result is that I got my site back ! It works !
Only thing is that I didn't find the problem...

Thanks for the replies.

Frederik Holljen

Tuesday 20 December 2005 1:34:53 pm

Your problem was caused by a bug in PHP 4.4.1 that caused some foreach loops not to terminate properly when they should causing indefinite loops. We made a workaround for this problem in 3.7.2 which ultimately made your site work again.

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

Main resources:

Total runtime0.0178 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.0056 589.4063152.6563
Module start 'layout' 0.00560.0031 742.062539.5078
Module start 'content' 0.00870.0069 781.570397.5234
Module end 'content' 0.01560.0022 879.093838.3047
Script end 0.0178  917.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.8352140.0002
Check MTime0.00105.8688140.0001
Mysql Total
Database connection0.00084.694510.0008
Mysqli_queries0.002715.117430.0009
Looping result0.00000.275510.0000
Template Total0.00179.610.0017
Template load0.00105.368610.0010
Template processing0.00084.225110.0008
Override
Cache load0.00073.865310.0007
General
dbfile0.002212.093480.0003
String conversion0.00000.038840.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