AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

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

Moderators: Ulminia, poetter

AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

Postby tuigii » Sun Nov 25, 2007 6:59 am

Still can't sync - it looks like AS still doesn't understand well wat it gets from Blizzard's Armory. If it get's anything...

The errors :
Code: Select all
421 0.0049 inc/armorysyncjob.class.php ArmorySyncJob _checkAuth Checked authentication OK
137 0.0051 inc/armorysyncjob.class.php ArmorySyncJob _checkEnv Checking environment OK
143 0.0052 inc/armorysyncjob.class.php ArmorySyncJob _isRequiredRosterVersion Check required Roster version OK
148 0.0053 inc/armorysyncjob.class.php ArmorySyncJob _isRequiredArmorySyncVersion Check required ArmorySync version OK
129 0.5363 inc/armorysync.class.php ArmorySync _getCharacterInfo Parsed character infos Failed
68 0.5365 inc/armorysync.class.php ArmorySync _getRosterData Parsed all armory data Failed
972 0.5367 inc/armorysyncjob.class.php ArmorySync synchMemberByID Synced armory data Blackforest with roster Failed
....


Also some PHP errors that don't seem inoffensive to me :
Code: Select all
lib/armory.class.php
  Roster Notice line 249: RosterArmory:: Failed to fetch http://eu.wowarmory.com/character-sheet.xml?n=Nowwhat&r=Khaz+Modan&locale=fr
addons/armorysync/inc/armorysync.class.php
  Warning line 852: array_keys() [function.array-keys]: The first argument should be an array
  Warning line 853: Invalid argument supplied for foreach()
  Notice line 846: Undefined offset: 0


The url in here brings up the page for that character, when used in IE.
The obtained XML page seems good to me.
Last edited by tuigii on Sun Nov 25, 2007 7:00 am, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

Postby poetter » Sun Nov 25, 2007 12:24 pm

Are you using curl?
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

Postby tuigii » Sun Nov 25, 2007 1:30 pm

poetter wrote:Are you using curl?


My PHP 'stuff' : http: //60gp.ovh.net/test.php5

Using CURL, yes.
It always worked before. And OVH didn't change something lately....

It did this : I put a line like this in lib/function.lib.php :
Code: Select all
echo $url;

on line 1138 - in the urlgrabber( $url , $timeout = 5 , $user_agent=false ) function.

It prints this :
http://eu.wowarmory.com/guild-info.xml? ... &locale=fr

This is just below the if( function_exists('curl_init') ) test, which succeeded.

Now the nasty thing : if I change this
Code: Select all
if( function_exists('curl_init') )

for this
Code: Select all
if( function_exists('curl_initXXXX') )

thus, disabeling CURL, ArmoryS workes !!!! (it updated my GuildInfo just well).

When I restored functions.lib.php back to the original one, it still worked .... well, the Guild synced, but the member list only synced the first member, afterwards is stops (red stop signs).

Anyway, I pm you my roster master password, you'll have a look if you want.
Last edited by tuigii on Sun Nov 25, 2007 10:00 pm, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

Postby tuigii » Sun Nov 25, 2007 11:40 pm

So, let me get this straight

Putting this in lin 1138 - functions.lib.php
Code: Select all
if( function_exists('curl_initXXXX') )

aka : stop using CURL means that the URL is ok.

So, when I fall back to fsockopen() - all is well.

One of the options put into curl isn't accepted by WoWArmory ??
(Remember : French here ... if that matters).

Still, curl_init(), curl_setopt(), curl_exec() [for that matter : urlgrabber()] is being used by other functions, like the serverstatus image.
And the roster update version checker !!
They work.

I still tend to say that my webhost didn't break curl, PHP is still the same version.... didn't chang for the last 9 monts.

So, WoW doesn't like what when being grabbed ??
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

AS 2.6 [287] - Roster v1.9.9.1474 - not fetching yet

Postby poetter » Mon Nov 26, 2007 12:31 am

Hi tuigii,

see here
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg


Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 1 guest

cron