Recieving an error when viewing anything with the guildvault

Displays the Guild vault introduced in WoW 2.3

Moderator: Nefuh

Recieving an error when viewing anything with the guildvault

Postby Evenstarr » Sat Feb 23, 2008 6:01 am

Recently installed the guildvault addon to wowroster v1.7.3, and for some reason we keep getting the error..

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\wwwroot\conclave\guild\roster\addons\guildvault\includes\functions.lib.php on line 800


Not sure what the problem may be, but the updates are working fine. The only thing we appear to be mising is the icons for the empty bank slots.
User avatar
Evenstarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Nov 16, 2006 3:42 am

Recieving an error when viewing anything with the guildvault

Postby Nefuh » Sat Feb 23, 2008 6:49 am

Ok i looked at the file functions.lib.php.

You have set to stack the items, correct?

The error is that the addon looks for all data in the actual tab and for the actual item. And it seems that for one or more items the sql query returned an empty result.

Try to replace:

Code: Select all
                    
while ($data1 mysql_fetch_array($result1)) 
{
        
$item_count $item_count $data1['item_quantity'];
}
 


with:

Code: Select all
if ($result1 $wowdb->query($sql1))
{
    while (
$data1 mysql_fetch_array($result1)) 
    {
        
$item_count $item_count $data1['item_quantity'];
    }
}
 


You find this code in the "functions.lib.php" near line 800.
Please report if this solved the error.

In the downloaded archive there should be 2 image files: "No_Icon.gif" and "No_Icon.jpg". These files must me copied to the /img/Interface/Icons Folder.

If the error is still there, please post your roster adress and if possible activate Roster Debug Mode (so i can take a look at the sql queries).

Nefuh
Administrator of the german User2User Community for WoWRoster.
Guild Master from Scum from Hell - Horde @ EU-Anetheron.
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany

Re: Recieving an error when viewing anything with the guildv

Postby Evenstarr » Sat Feb 23, 2008 6:56 am

It worked, everything is going now. Thanks for the speedy reply and keep up the good work :)
User avatar
Evenstarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Nov 16, 2006 3:42 am

Recieving an error when viewing anything with the guildvault

Postby Nefuh » Sat Feb 23, 2008 7:35 am

Thanks ;)

I will add this fix to the downloadable version.

Nefuh
Administrator of the german User2User Community for WoWRoster.
Guild Master from Scum from Hell - Horde @ EU-Anetheron.
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany


Return to Guildvault

Who is online

Users browsing this forum: No registered users and 0 guests

cron