A database section missing a set_time_limit, causing timeout

djsmeg

Joined: 2005-04-18
Posts: 1
Posted: Mon, 2005-04-18 00:49

Hello,
I am attempting to upgrade Beta1 to Beta2. I am encountering the following error at step 3, reliably. (if I restore my db using:

mysqladmin drop gallery2
mysqladmin create gallery2
mysql -Dgallery2 ... <gallery2backup.sql

)

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www-public/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class on line 2060

Note that the class varies. This one has happened twice, and adodb.inc.php has also caused it. Here's another one:

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www-public/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class on line 2076

No errors were reported in any previous step. I am running this on a slightly slower machine (an AMD 700MHz) but it's not that slow and doesn't do much else.

I solved this problem by changing the max_execution_time variable in php.ini. I think there is a section of the upgrade code that needs a better set_time_limit...

Hope this helps,
Thanks,
Christian
----

Gallery URL (optional):
Gallery version:G2 Beta1->Beta2
Webserver (with version):Apache/2.0.53
Datatabase (with version):MySQL 4.0.24
PHP version (eg 4.2.1):4.3.10 (debian build 10)
phpinfo URL (optional):
Graphics Toolkit(s):gd imagemagick netpbm
Operating system: linux
Web browser/version: firefox 1.0.2
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-18 10:22

djsmeg, did you have a lot of users/items/permissions in your beta 1?