Update Problem

Categorizes items in your guildbank(s)

Moderator: Mathos

Update Problem

Postby Malkom » Sat Mar 24, 2007 11:35 pm

Since yesterday, I've receive this message during an update (but my character is update abyway ) :

Code: Select all
AltMonitor - 0 records without matching member records deleted

Fatal error: Cannot redeclare itemarray_merge() (previously declared in /mnt/145/sdb/e/a/gondolyn/roster/addons/guildbank/searcharrays.php:78) in /mnt/145/sdb/e/a/gondolyn/roster/addons/guildbank/searcharrays.php on line 78


Any idea ??
Last edited by Malkom on Sat Mar 24, 2007 11:36 pm, edited 1 time in total.
Image
User avatar
Malkom
WR.net Journeyman
WR.net Journeyman
 
Posts: 144
Joined: Tue Jan 09, 2007 11:02 am
Location: France - 91 - Longjumeau

Re: Update Problem

Postby Karavirs » Sun Mar 25, 2007 9:19 am

Change this part of searcharrays.php
Code: Select all
function itemarray_merge($category)
{
   global $itemarray, $roster_conf, $wordings;
   // Fill the itemarray with all language wordings
   $itemarray[$category] = array();
   foreach ($roster_conf['multilanguages'] as $language)
   {
      if (isset($wordings[$category][$language]))
      {
         $itemarray[$category] = array_merge($itemarray[$category], $wordings[$category][$language]);
      }
   }
}


to this

Code: Select all
if(!function_exists('itemarray_merge')){
   function itemarray_merge($category)
   {
      global $itemarray, $roster_conf, $wordings;
      // Fill the itemarray with all language wordings
      $itemarray[$category] = array();
      foreach ($roster_conf['multilanguages'] as $language)
      {
         if (isset($wordings[$category][$language]))
         {
            $itemarray[$category] = array_merge($itemarray[$category], $wordings[$category][$language]);
         }
      }
   }
}
Last edited by Karavirs on Sun Mar 25, 2007 9:19 am, edited 1 time in total.
Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago

Re: Update Problem

Postby Malkom » Mon Mar 26, 2007 12:29 am

ok thnaks for your help but now I have this error :

Code: Select all
Fatal error: Call to undefined function: itemarray_merge() in /mnt/145/sdb/e/a/gondolyn/roster/addons/guildbank/searcharrays.php on line 69
Image
User avatar
Malkom
WR.net Journeyman
WR.net Journeyman
 
Posts: 144
Joined: Tue Jan 09, 2007 11:02 am
Location: France - 91 - Longjumeau

Update Problem

Postby Karavirs » Mon Mar 26, 2007 3:03 am

Move the function above before other code... Place it right after the $bankitem array something like this
Code: Select all
$bankitem[32]["arg"]= 'darkmoon';


// Merge the search words for multilanguage purposes based on the category name
if(!function_exists('itemarray_merge')){
   function itemarray_merge($category)
   {
      global $itemarray, $roster_conf, $wordings;
      // Fill the itemarray with all language wordings
      $itemarray[$category] = array();
      foreach ($roster_conf['multilanguages'] as $language)
      {
         if (isset($wordings[$category][$language]))
         {
            $itemarray[$category] = array_merge($itemarray[$category], $wordings[$category][$language]);
         }
      }
   }
}

/********************************************************************/
// Build the $itemarray based on all $search_order category numbers, and multilanguages
$itemarray = array();
itemarray_merge('omit');
foreach ($search_order as $catnumber)
{
   itemarray_merge($bankitem[$catnumber]['arg']);
}
Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago

Update Problem

Postby Malkom » Mon Mar 26, 2007 3:19 am

I've completely reinstall this mod and make your modifications...

It's working now ^^

Thanks a lot ;)
Image
User avatar
Malkom
WR.net Journeyman
WR.net Journeyman
 
Posts: 144
Joined: Tue Jan 09, 2007 11:02 am
Location: France - 91 - Longjumeau


Return to Categorized Guild Bank

Who is online

Users browsing this forum: No registered users and 1 guest

cron