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.