Fatal error: Cannot use object of type...

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Fatal error: Cannot use object of type...

Postby Dyaxler » Fri Feb 01, 2008 2:17 am

After updating both WoWRoster to 1625 and ArmorySync to 359 this morning I ran into this error almost within a few seconds of starting a sync:
Attachments
error.jpg
error.jpg (15.35 KiB) Viewed 804 times
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Fatal error: Cannot use object of type...

Postby poetter » Fri Feb 01, 2008 2:58 am

I have no idea what this could be. Please show me your line 351 of armorysync.class.php
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: Fatal error: Cannot use object of type...

Postby Dyaxler » Fri Feb 01, 2008 3:05 am

Lines 329 - 359... I just included the whole function in case it's not line 351 thats causing the actual problem:

Code: Select all
    /**
     * gem search part of per page update
     *
     */
   function _ppGemFetchAndCompare( $subStep = false ) {
      $compareGem = $subStep['compareGems'][0];
      $slot = $subStep['slot'];
      $gemSlot = $subStep['gemSlot'];

      $ret = $this->_getGemInfo($compareGem);

      if ( $ret ) {
         array_shift($this->ppUpdate['jobs'][0]['subjobs'][0]['compareGems']);

         $gem = $this->data['Equipment'][$slot]['Gem'][$gemSlot];
         $compareRet = $this->_compareGemInfo($slot, $gemSlot, $gem);

         if ( $compareRet ) {
            $this->ppUpdate['jobs'][0]['subjobs'][0]['compareGems'] = array();
            $this->ppUpdate['jobs'][0]['subjobs'][0]['gemTooltip'] = array( 'type' => 'gemTooltip', 'slot' => $subStep['slot'], 'gemSlot' => $subStep['gemSlot'], 'retry' => 0 );
         }

      } elseif( $subStep['compareGems'][0]['retry'] < $this->retrys ) {
         $this->_debug( 0, false, "Char: ". $this->memberName. " Step: ItemInfo Slot: ". $subStep['slot']. " GemSlot: ". $gemSlot. " GemInfo: ". $compareGem->name. " - Failed", "Retry: ". $this->ppUpdate['jobs'][0]['subjobs'][0]['compareGem'][0]['retry']);
         $this->ppUpdate['jobs'][0]['subjobs'][0]['compareGems'][0]['retry']++;
      } else {
         array_shift($this->ppUpdate['jobs'][0]['subjobs'][0]['compareGems']);
         $this->_debug( 0, false, "Char: ". $this->memberName. " Step: ItemInfo Slot: ". $subStep['slot']. " GemSlot: ". $gemSlot. " GemInfo: ". $compareGem->name. " - Failed", "I give up");

      }
   }


But, as you asked, here is line 351 specifically:

Code: Select all
} elseif( $subStep['compareGems'][0]['retry'] < $this->retrys ) {
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Re: Fatal error: Cannot use object of type...

Postby Dyaxler » Fri Feb 01, 2008 3:19 am

On a side note... you will happy to know that updating any character that doesn't have any items with gem sockets is much quicker and doesn't result in random timeouts like I was experiencing before.
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Fatal error: Cannot use object of type...

Postby poetter » Fri Feb 01, 2008 8:14 am

is your armorysync cache dir writeable?
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: Fatal error: Cannot use object of type...

Postby Dyaxler » Fri Feb 01, 2008 8:22 am

Yep... 777
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Fatal error: Cannot use object of type...

Postby poetter » Fri Feb 01, 2008 5:17 pm

Has anyone else this error?
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Fatal error: Cannot use object of type...

Postby Dyaxler » Sat Feb 02, 2008 12:29 am

I would have to guess that I might be the only one getting this error and it's entirely possible that it's related to fsock.

My website host is run by Invision Power Boards which is a very popular forum software package and I'm sure there are tons of people that could potentially run into the same kinds of issues that I'm running into.

I suppose I could setup a box this weekend on one of my test servers with it's own database with cURL enabled to see if I can repo this error. Then disable cURL thus forcing fsock to see if the error repo's.
Last edited by Dyaxler on Sat Feb 02, 2008 12:31 am, edited 1 time in total.
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Fatal error: Cannot use object of type...

Postby poetter » Sat Feb 02, 2008 9:42 am

Allright, I think I found the problem. Try updating to svn[361]
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: Fatal error: Cannot use object of type...

Postby Dyaxler » Mon Feb 04, 2008 4:56 am

OK, not getting this error anymore... so this is resolved. :)
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm


Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron