Forums / Install & configuration / PHP4.4.1 and Maximum execution time exceeded

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.

eZ debug

Timing: Jan 20 2025 06:41:33
Script start
Timing: Jan 20 2025 06:41:33
Module start 'content'
Timing: Jan 20 2025 06:41:34
Module end 'content'
Timing: Jan 20 2025 06:41:34
Script end

Main resources:

Total runtime1.2763 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2031180.8047
Module start 'content' 0.00631.1639 770.0078639.1719
Module end 'content' 1.17020.1061 1,409.1797341.0313
Script end 1.2763  1,750.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.3531210.0002
Check MTime0.00170.1299210.0001
Mysql Total
Database connection0.00090.071710.0009
Mysqli_queries1.195393.64872050.0058
Looping result0.00180.14082030.0000
Template Total1.250498.020.6252
Template load0.00220.172320.0011
Template processing1.248297.796320.6241
Template load and register function0.00030.022610.0003
states
state_id_array0.00090.071510.0009
state_identifier_array0.00080.058820.0004
Override
Cache load0.00190.1497440.0000
Sytem overhead
Fetch class attribute can translate value0.00120.090840.0003
Fetch class attribute name0.00090.069990.0001
XML
Image XML parsing0.00340.263740.0008
class_abstraction
Instantiating content class attribute0.00000.0018120.0000
General
dbfile0.00540.4263410.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs