svn[1367] Instance Keys

Posts from previous Beta sessions

svn[1367] Instance Keys

Postby Melina » Sun Sep 30, 2007 8:08 pm

Getting this error when I look at the Instance Keys page.
Code: Select all
PHP Errors
addons/keys/guild/index.php
  Notice line 209: Undefined index: SM
  Notice line 209: Undefined index: ZF
  Notice line 209: Undefined index: Mauro
  Notice line 209: Undefined index: BRDp
  Notice line 209: Undefined index: BRDs
  Notice line 209: Undefined index: DM
  Notice line 209: Undefined index: Scholo
  Notice line 209: Undefined index: Strath
  Notice line 209: Undefined index: UBRS
  Notice line 209: Undefined index: Onyxia
  Notice line 209: Undefined index: MC
  Notice line 326: Undefined index: SG
  Notice line 335: Undefined index: SG
  Notice line 352: Undefined index: SG
  Notice line 356: Undefined index: SG
  Notice line 326: Undefined index: SM
  Notice line 335: Undefined index: SM
  Notice line 352: Undefined index: SM
  Notice line 356: Undefined index: SM
  Notice line 326: Undefined index: ZF
  Notice line 335: Undefined index: ZF
  Notice line 352: Undefined index: ZF
  Notice line 356: Undefined index: ZF
  Notice line 326: Undefined index: Mauro
  Notice line 335: Undefined index: Mauro
  Notice line 352: Undefined index: Mauro
  Notice line 356: Undefined index: Mauro
  Notice line 326: Undefined index: BRDp
  Notice line 335: Undefined index: BRDp
  Notice line 352: Undefined index: BRDp
  Notice line 356: Undefined index: BRDp
  Notice line 326: Undefined index: BRDs
  Notice line 335: Undefined index: BRDs
  Notice line 352: Undefined index: BRDs
  Notice line 356: Undefined index: BRDs
  Notice line 326: Undefined index: DM
  Notice line 335: Undefined index: DM
  Notice line 352: Undefined index: DM
  Notice line 356: Undefined index: DM
  Notice line 326: Undefined index: Scholo
  Notice line 335: Undefined index: Scholo
  Notice line 352: Undefined index: Scholo
  Notice line 356: Undefined index: Scholo
  Notice line 326: Undefined index: Strath
  Notice line 335: Undefined index: Strath
  Notice line 352: Undefined index: Strath
  Notice line 356: Undefined index: Strath
  Notice line 326: Undefined index: UBRS
  Notice line 335: Undefined index: UBRS
  Notice line 352: Undefined index: UBRS
  Notice line 356: Undefined index: UBRS
  Notice line 326: Undefined index: Onyxia
  Notice line 335: Undefined index: Onyxia
  Notice line 352: Undefined index: Onyxia
  Notice line 356: Undefined index: Onyxia
  Notice line 326: Undefined index: MC
  Notice line 335: Undefined index: MC
  Notice line 352: Undefined index: MC
  Notice line 356: Undefined index: MC
lib/item.php
  Notice line 698: Undefined offset: 4
  Notice line 698: Undefined offset: 3
  Notice line 698: Undefined offset: 2
  Notice line 698: Undefined offset: 1
User avatar
Melina
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Fri Aug 03, 2007 6:49 am

svn[1367] Instance Keys

Postby Subxero » Sun Sep 30, 2007 8:16 pm

Mmmm are you using Armorysync ?

A web link to your page ?
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

Re: svn[1367] Instance Keys

Postby Melina » Sun Sep 30, 2007 8:40 pm

Yes I am using armor sync.
Roster
User avatar
Melina
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Fri Aug 03, 2007 6:49 am

svn[1367] Instance Keys

Postby poetter » Sun Sep 30, 2007 9:18 pm

This is because a lot of data, like inventory items and quests can't be filled from the armory. this patch will fix the notices:

Code: Select all
--- D:/xampp/roster.com/htdocs/addons/keys/guild/index.php.org   Wed Sep 05 17:05:36 2007
+++ D:/xampp/roster.com/htdocs/addons/keys/guild/index.php   Sun Sep 30 15:12:15 2007
@@ -96,8 +96,10 @@
 function buildSQL($item,$key,$type)
 {
    global $selectp, $wherep, $pcount, $selectq, $whereq, $qcount;
-
-   list($iname, $thottnum) = explode('|', $item);
+   
+   $alist = explode('|', $item);
+   
+   $iname = isset($alist[0]) ? $alist[0] : '';
 
    if ($type == 'quest')
    {
@@ -206,7 +208,7 @@
    // ==============================
    foreach ($items as $key => $item)
    {
-      if ($krow[$key] == '-1')
+      if ( isset($krow[$key]) && $krow[$key] == '-1')
       {
          ++$kcount;
       }
@@ -323,7 +325,7 @@
       {
          rankMid((($striping_counter % 2) +1));
       }
-      if ($krow[$key] == '-2')
+      if (isset($krow[$key]) && $krow[$key] == '-2')
       {
          $iname = $roster->locale->wordings[$row['clientLocale']]['thievestools'];
          $iquery = "SELECT * FROM `" . $roster->db->table('items') . "` WHERE `item_name` = '$iname' AND `member_id` = '" . $row['member_id'] . "';";
@@ -332,7 +334,7 @@
          $item = new item($idata, 'simple');
          print $item->out($key);
       }
-      else if ($krow[$key] == '-1')
+      else if (isset($krow[$key]) && $krow[$key] == '-1')
       {
          list($iname, $thottnum) = explode('|', $data[$key]);
          if(isset($$key))
@@ -349,11 +351,11 @@
             print $$key;
          }
       }
-      else if ($krow[$key] == '0')
+      else if (isset($krow[$key]) && $krow[$key] == '0')
       {
          print ' ';
       }
-      else if ($krow[$key] == '')
+      else if (!isset($krow[$key]) || $krow[$key] == '')
       {
          print ' ';
       }
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

svn[1367] Instance Keys

Postby zanix » Mon Oct 01, 2007 1:02 am

Fixed svn[1370]
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron