Fatal error: Maximum execution time of 30 seconds exceeded in class on line 733

pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Wed, 2005-09-14 21:05

Hi
I'm trying a clean install of G2 on a Windows 2000 machine running Apache 2.0.53
I've cranked up the max_execution_time values in php.ini am am still receiving the "Fatal error: Maximum execution time of 30 seconds exceeded in class on line 733" error. I guess the code is setting the max_execution_time to 30 seconds.. is there some way to change this?
I couldnt attach the install log ("Error attaching file install.log: invalid extension," same with the zipped version) so here are the apprently relevant bits:

========================================

--------------------------------------------------------
System and Gallery information:
--------------------------------------------------------
Gallery version: 1.0.0
File integrity: Ok
CVS install: No
PHP version: 5.1.0b3 apache2handler
PHP memory limit:
PHP disable_functions:
PHP zend.ze1_compatibility_mode:
Webserver: Apache/2.0.53 (Win32) PHP/5.1.0b3
Database: mysql 4.1.10a-nt
Operating system: Windows NT HOBBITON 5.0 build 2195
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5
--------------------------------------------------------

2005-09-15 08:56:44 [<no session id>] Load core module
2005-09-15 08:56:44 [<no session id>] Loading plugin core
2005-09-15 08:56:44 [<no session id>] Class not defined, trying to include it.
2005-09-15 08:56:44 [<no session id>] file_exists(C:\Apache\Apache2\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/core/module.inc)
2005-09-15 08:56:44 [<no session id>] realpath(C:\Apache\Apache2\htdocs\gallery2\modules\core\classes/../../..)
2005-09-15 08:56:44 [<no session id>] Binding text domain: modules_core -> C:\Apache\Apache2\htdocs\gallery2/modules/core/locale
2005-09-15 08:56:44 [<no session id>] core plugin successfully instantiated
2005-09-15 08:56:44 [<no session id>] Hand over admin user parameters
2005-09-15 08:56:44 [<no session id>] NOT installing, rollback!
2005-09-15 08:56:44 [<no session id>] file_exists(C:\Apache\Apache2\htdocs\gallery2\g2data\versions.dat)
2005-09-15 08:56:44 [<no session id>] Error: Core module is only partially installed
2005-09-15 08:56:44 [<no session id>] Finish install core module step
2005-09-15 08:56:44 [<no session id>] Error: Failure during install core module step

========================================

cheers

Lucas Young
New Zealand

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Wed, 2005-09-14 21:36

Did you restart Apache after changing that value in the php.ini file?

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Wed, 2005-09-14 21:39

Yep :) phpinfo shows the value as changed. Does the installer set max_execution_time somewhere? i guess it must do as the ability to change that value is one of the things it checks for...
cheers

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Wed, 2005-09-14 23:56

Is it possible to manually perform step 8?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 01:19

no, not without a lot of manual steps.

 
Fargo

Joined: 2005-09-15
Posts: 2
Posted: Thu, 2005-09-15 13:35

I have the exact same problem using xampp which uses

Apache HTTPD 2.0.54,
MySQL 4.1.13,
PHP 5.0.4 + 4.4.0 + PEAR + Switch,
MiniPerl 5.8.7,
mod_ssl 2.0.54,
Openssl 0.9.8,
PHPMyAdmin 2.6.3 pl1,
SQLite 2.8.15

I have tried to change max_execution_time to 300 in php.ini and phpinfo confirms that, but I get
Fatal error: Maximum execution time of 30 seconds exceeded in class on line 733
during step 8 anyway

Whats wrong?

-b

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 14:28

the phpinfo file to confirm that must be in gallery2/install/phpinfo.php else it could show a wrong value.
we have some set_time_limit() calls in g2, which probably override your time limit.

 
Fargo

Joined: 2005-09-15
Posts: 2
Posted: Thu, 2005-09-15 14:33

Ok
How do I change the time_limit so that it won't be overridden?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 15:56

you can't from outside.

i'd take a look at your install.log to find out where it times out. then add set_time_limit(30); calls right before it.

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Thu, 2005-09-15 19:54

Hmm I put a phpinfo file in install/ and it still shows me 600 seconds as max_execution_time. My install always dies right after "Hand over admin user parameters" with "NOT installing, rollback!"
Is there a fix or workaround for this problem? I've seen it mentioned a few times now on the forum and without a fix it's impossible to install the product. Maybe someone could compile a version of the appropriate module with a longer max_execution_time?
cheers

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 21:04

pr0fess0r: start from scratch. in system checks, make sure there are no warnings, in the database step, choose save, then erase.

refreshing / running the install core step multiple times doesn't fix it. you always have to run the database step and choose erase after a failed install core step. and if it doesn't redirect to a success page, don't refresh / retry, it won't fix it.

to find out where it dies / times out, do the above and then post the install log. then i can tell you where it dies.

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Thu, 2005-09-15 21:14

Hi
Ive done that three times - deleted all tables from the database, deleted everything in g2data, started the install from scratch, and it always stops in the same place with the same error. There are no other warnings or errors on the way. I couldnt attach the log but here it is in it's entirety - many thanks :)

2005-09-16 09:09:08 [<no session id>] getParameter _version for slideshow plugin
2005-09-16 09:09:08 [<no session id>] <hr>
(mysql): 
		  SELECT
		    g2_PluginParameterMap.g_parameterName,
		    g2_PluginParameterMap.g_parameterValue
		  FROM
		    g2_PluginParameterMap
		  WHERE
		    g2_PluginParameterMap.g_pluginType = 'module'
		    AND
		    g2_PluginParameterMap.g_pluginId = 'slideshow'
		    AND
		    g2_PluginParameterMap.g_itemId = 0
		   &nbsp;

2005-09-16 09:09:08 [<no session id>] getParameter _callbacks for slideshow plugin
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 21:47

please link to such long debug stuff and don't post it in the forums, thanks.

so it stops after exactly 30 seconds.
what apache timeout do you have? (that's a different timeout than the php timeout, set in your httpd.conf)

it times out right after:

$gallery->debug('Activate Matrix theme');
in modules/core/CoreModuleExtras.inc

you could add $gallery->guaranteeTimeLimit(120); right before it. maybe that helps.

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Thu, 2005-09-15 22:16

Sorry about that, Ive shortened the post. Apache timeout was 300 seconds, I changed to 600. Added your line to CoreModuleExtras.inc and it worked perfectly. Many thanks! Hopefully this helps others in the same boat.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 22:19

i changed CoreModuleExtras.inc to not send activation events which will prevent loading all other modules in this step.
so starting from tomorrows nightly snapshot, G2 without any hacks should install on your server too.

 
zachyu

Joined: 2005-10-03
Posts: 1
Posted: Mon, 2005-10-03 05:20

super push valiant!!!!!!!!!

 
jpeadro

Joined: 2003-12-24
Posts: 193
Posted: Tue, 2005-10-04 18:00

I have seeing this same issue. I have the execution time set to 300 in php.ini but gallery is still buggin out @ 30sec. Where is this time limit value in the database?

 
pr0fess0r

Joined: 2005-09-14
Posts: 7
Posted: Tue, 2005-10-04 18:55

Hi
You need to modify modules/core/CoreModuleExtras.inc as per valiant's post, or use the new version from the snapshot mentioned earlier I guess

cheers

 
penfield888

Joined: 2004-03-02
Posts: 43
Posted: Wed, 2005-10-19 16:39

Just a followup report, same problem here with G2.0.1 on a machine that had successfully installed all versions of G2 Beta and RC and G20.0.0. The difference is that I have done a total system reinstall and in the process upgraded Apache, PHP and MySQL

from
Apache 1.I.forget but fairly recent
PHP 4.recent
Mysql 3.23.recent

to

Apache 2.0.54,
MySQL 4.1.14,
PHP 5.0.5

I added the line suggested by valiant in the post of 2005-09-15 13:47 and the install went fine. Now running on my local machine with no problems.

All installs on Linux and Free BSD have gone fine, it's always just the Windows ones that seem to cause problems, but perhaps it's because of the machinery - 5 year-old box with Athlon Thunderbird 750MHz and all the Windows 2000 overhead in the background.

 
sukhendu

Joined: 2009-04-14
Posts: 1
Posted: Tue, 2009-04-14 09:40

Hi,
I am using PHP5.2 and Java 1.6 on Windows XP. I have a problem in login page,whenever I am giving username and password it's giving the following

the XML response that was returned from the server is invalid
Fatal error : Maximum execution time of 30 seconds exceed in .../JavaBridgeTemplate544/java/Java.inc

can anyone help me to solve this problem.