Quote:
Originally Posted by Wayne Luke
Here is the fix for the divide by zero error:
Code:
function gwr_percent_members($number, $members)
{
$members > 0 ? $number = ($number / $members) * 100: $number = 0;
return number_format($number, 2);
}
?>
---------------------------
For pulling the talents, you have to run the gWoWRoster Character Info Update cron as well. It only pulls a couple characters each time you run it so if you have a lot of characters then you will have to run it quite a few times. However it will automatically run every 10 minutes as people use your board and slowly pull all the characters. I was impatient and running it on my local machine so removed the limit and set the PHP timeouts to 20 hours and ran it. Only took about 20 minutes to pull all 103 characters from the armory.
There now that I have this installed, tweaked and working on my development installation, time to go look at your event mod.
|
I think my PHP is timing out on the cron job. How would I fix that?
Invalid SQL:
REPLACE INTO vb_gwowroster_charinfo SET
locale = 'US' ,
realm = 'Altar of Storms' ,
name = 'The Sunshine Bunch' ,
charname = 'Thex' ,
talentspec = '17,0,54' ,
talenttree = '2305020500000000000000000000000000000000000000000 000000230200335023105203100203133151' ,
updated = '1228835992';
MySQL Error :
MySQL server has gone away
Error Number : 2006