Forums / Install & configuration / Max execution time error ... but cannot edit my php.ini file

Max execution time error ... but cannot edit my php.ini file

Author Message

David Barker

Wednesday 30 August 2006 10:32:22 am

Hey there,
Well I used to use eZ a couple of years ago and thought I'd try it out again! I'm pretty sure I used it on the same hosts as I am now, but I'm having the maximum execution time of 30 seconds error when I go to access admin:

Fatal error: Maximum execution time of 30 seconds exceeded in /pub/home/dbarker5/htdocs/bored/lib/ezfile/classes/ezdir.php on line 503
Fatal error: eZ publish did not finish its request

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

I can get on the main site itself fine, but it's logging into admin that gives me the error.

Now from what I've read, the solution is to edit the php.ini file on the server. I've contacted my host but they refuse to edit it (as I'm on shared hosting). Basically, I'm just wondering if there is any way of getting around this problem without having to edit php.ini? Is it possible to do what it's trying to do in smaller steps or something? I'd love to get this working!

Thanks in advance,

Dave

Claudia Kosny

Wednesday 30 August 2006 11:36:42 am

Hello David

Try to add the following in your .htaccess file:
php_value max_execution_time 30000

(the number is the number of seconds).

If that does not work either (some hoster forbid this as well), try to add the following to the index.php:
ini_set ('max-execution_time', '30000' )

Be sure to add this after the line ob_start() as otherwise you might get problems with sent headers.

Apart from that - if you try to access the admin part of a site with lots of nodes, the problem might be caused by the menu on the lefthand side. Depending on the settings in contentstructuremenu.ini.append.php EZ might try to fetch all nodes on the site. So change the settings there if necessary. Infos about this here:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/contentstructuremenu_ini

Greetings from Luxembourg

Claudia

David Barker

Wednesday 30 August 2006 12:09:58 pm

I don't know how to thank you!!!! But thanks!!! haha. I tried the first suggestion and it worked :-D

Like I say... thank you so much :)

Dave

eZ debug

Timing: Jan 31 2025 01:26:38
Script start
Timing: Jan 31 2025 01:26:38
Module start 'content'
Timing: Jan 31 2025 01:26:38
Module end 'content'
Timing: Jan 31 2025 01:26:39
Script end

Main resources:

Total runtime0.2002 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.2109370.2500
Module start 'content' 0.00710.0149 958.46091,001.6719
Module end 'content' 0.02200.1781 1,960.13283,890.8672
Script end 0.2001  5,851.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00472.3534200.0002
Check MTime0.00150.7244200.0001
Mysql Total
Database connection0.00070.369210.0007
Mysqli_queries0.106953.38351410.0008
Looping result0.00150.73801390.0000
Template Total0.177688.710.1776
Template load0.00100.513010.0010
Template processing0.176588.202210.1765
Override
Cache load0.00060.303910.0006
Sytem overhead
Fetch class attribute can translate value0.00221.081510.0022
XML
Image XML parsing0.00030.131910.0003
General
dbfile0.00341.7193200.0002
String conversion0.00000.003030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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