Upload error - Max Execution time exceeded

CharacterProfiler.lua file uploading issues

Upload error - Max Execution time exceeded

Postby darthgus » Thu Feb 15, 2007 2:33 pm

Got an issue with a few users. The error when they upload is as follows;

Fatal error: Maximum execution time of 30 seconds exceeded in /home/.keegan/darthgus/westozwarlords.net/roster/lib/wowdb.php on line 729

I have modded php.ini and made the time out to 300 seconds, same error, just takes longer to come up.

Line 729 is this function in the wowdb.php; specifically in the middle of the while statement. Seems to be getting stuck in this section for some reason.

/**
* Formats quest data to be inserted to the db
*
* @param array $quest_data
* @param int $memberId
* @param string $zone
* @return array
*/
function make_quest( $quest_data, $memberId, $zone, $slot )
{
$quest = array();
$quest['member_id'] = $memberId;

//Fix quest name if too many 'quest' addons cause level number to be added to title
while(substr($quest_data['Title'],0,1) == '[')
{
$quest['quest_name'] = ltrim(substr($quest_data['Title'],strpos($quest_data['Title'],']')+1));
}
if(!isset($quest['quest_name']))
{
$quest['quest_name'] = $quest_data['Title'];
}
$quest['quest_tag'] = $quest_data['Tag'];
$quest['quest_index'] = $slot;
$quest['quest_level'] = $quest_data['Level'];
$quest['zone'] = $zone;

if( isset($quest_data['Complete']) )
$quest['is_complete'] = $quest_data['Complete'];
else
$quest['is_complete'] = 0;

return $quest;
}

Any help? I have attached one of the offending charprofiler.lua that it gets stuck on also. Is using the latest CP, and roster is 1.7.3 with hotfix first posted.
Attachments
characterprofiler.lua
(194.67 KiB) Downloaded 301 times
darthgus
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Wed Aug 23, 2006 12:26 pm

Upload error - Max Execution time exceeded

Postby zeryl » Thu Feb 15, 2007 3:40 pm

Re-download the hotfix, as the first one was way more code than what was needed to fix it. If it still does it, please re-post in here, and I'll take a look.

Thanks.
User avatar
zeryl
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 194
Joined: Tue Jul 04, 2006 12:59 pm
Location: Saint Louis

Re: Upload error - Max Execution time exceeded

Postby darthgus » Thu Feb 15, 2007 11:50 pm

Yep, redownloaded the fix and now all fine.!

Thankyou very muchly!
darthgus
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Wed Aug 23, 2006 12:26 pm


Return to Uploading

Who is online

Users browsing this forum: No registered users and 1 guest

cron