Introducing ArmorySync

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

Moderators: Ulminia, poetter

Re: Introducing ArmorySync

Postby tuigii » Tue May 29, 2007 6:46 pm

Malkom wrote:But when I do my synch, I have an "500 - Internal Server Error"...

In the file config.php, goto debug level 2 (change te 0 for a 2).
What does it show then ?
Make sure that your server supports curl (check your PHP config from your web server) and that your site web server is allowed to go 'outside' (it has to make a connection to the armory...)
Malkom wrote:PS : the password is the roster's password ?
Of course :thumright:
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

Introducing ArmorySync

Postby Malkom » Tue May 29, 2007 9:28 pm

I've changed the debug level to 2 but I've always the problem....

I don't if my web server support cURL or is allowed to go 'outside'... It's a server on the FAI Free.... and their technicians could not answer me... lol


EDIT : Can you see anwers on this page : http://gondolyn.free.fr/roster/rosterdiag.php ???
Last edited by Malkom on Tue May 29, 2007 10:42 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: Introducing ArmorySync

Postby arkanell » Thu May 31, 2007 7:42 pm

I have found a more elegant fix for the socket function.

On line 65 of functions.general.php change

Code: Select all
        "GET $request HTTP/1.1\r\n" 


to

Code: Select all
        "GET $request HTTP/1.0\r\n" 


and the data will be returned non chunked, works everytime on the European Armory and is slightly faster :thumleft:

[edit]you may have to run the script more than once to get everyone though[/edit]

on second thoughts it works in one sweep :thumleft:

also apparrently fsockopen is faster when using an ip instead of an url but im unable to get it to work properly that way :scratch:

I hope ive helped :grin:
Last edited by arkanell on Thu May 31, 2007 7:50 pm, edited 1 time in total.
arkanell
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Thu Apr 12, 2007 12:16 am

Re: Introducing ArmorySync

Postby Darkmages » Thu May 31, 2007 8:54 pm

Because the European Armory is very slow it takes the script a long time to run.

In your php.ini config file you can change the maximum execution time for scripts:

max_execution_time = 30 ; Maximum execution time of each script, in seconds

Set it to 300 (5min) or someting.

it still is slow but at least it finishes :)
Last edited by Darkmages on Thu Jun 14, 2007 2:49 pm, edited 4 times in total.
User avatar
Darkmages
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu May 31, 2007 8:37 pm

Re: Introducing ArmorySync

Postby tuigii » Thu May 31, 2007 10:16 pm

Malkom wrote:I don't if my web server support cURL or is allowed to go 'outside'... It's a server on the FAI Free.... and their technicians could not answer me... lol

You should know that curl_exec (curl, quoi :cyclops2: ) is already used elsewhere in the roster PHP file : in lib/xmlparse.php - line 80 !!
It's used over there to fetch the info from the server status pages.

Malkom wrote:EDIT : Can you see anwers on this page : http://gondolyn.free.fr/roster/rosterdiag.php ???

Don't worry, Free is supporting curl (used it before myself ;-) )
I was talking about the PHP capabilities pages (you can find them on the admin pages when login in to your Free account) - they show what you have and can do with it. The Roster diag pages is just a small sub set of this.
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: Introducing ArmorySync

Postby tuigii » Thu May 31, 2007 10:23 pm

Darkmages wrote:Because the European Armory is very slow it takes the script a long time to run.
In your php.ini config file you can change the maximum execution time for scripts:
max_execution_time = 30 ; Maximum execution time of each script, in seconds
Set it to 300 (5min) or someting.


Correct.

But please note that the cheap 'shared servers' (have a coupe of those myself at ovh.com in France) do not alllow or expose an php.ini file. This file is system wide, and I rent only a small part of this system : this changes when you have a dedicated server : you'll be having full control.

Anyway, one can another thing : ArmorySync checks if a character is update less then 24 hours ago (based on your local roster info). If it is, it doen't upgraded.
So, when the upgrade times out, and you re-run ArmorySync, all already updated characters won't be touched anymore.

So, in a worst case scenario you have to click, wait, click again a couple of times.
You're roster will be synced at the end.
Last edited by tuigii on Thu May 31, 2007 10:24 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: Introducing ArmorySync

Postby Malkom » Thu May 31, 2007 11:47 pm

tuigii wrote:Don't worry, Free is supporting curl (used it before myself ;-) )
I was talking about the PHP capabilities pages (you can find them on the admin pages when login in to your Free account) - they show what you have and can do with it. The Roster diag pages is just a small sub set of this.


Thanks you for your help tuigii ^^

But I can't find any information on my admin page :(

I have just found this in the FAQ of Free :

Les versions des logiciels fournis en date du 12 Avril 2006 sont :

Serveur web Apache basé sur la version 1.3.29
Langage de script PHP basé sur la version 4.4.2
Langage de script PHP basé sur la version 5.1.
Base de données MySQL , version 5.0.23
Logiciel de gestion de bases de données phpMyAdmin 2.6.0
Proxy FTP basé sur SUSE Proxy-Suite (fortement modifié)
Serveur FTP basé sur ProFTPd 1.2.29


And this in my Joomla Admin page :
Principaux paramètrages PHP:
Joomla! Emulation de Register Globals : OFF
Register Globals: ON
Magic Quotes: ON
Safe Mode: ON
File Uploads: ON
Session auto start: OFF
Chemin sauvergarde session: /mnt/145/sdb/e/a/gondolyn/sessions
Short Open Tags: ON
Output Buffering: OFF
Open basedir: /mnt/145/sdb/e/a/gondolyn
Affichage des erreurs: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none

______________________________

PHP hébergé sur: Linux dyn51-g5.priv.free.fr
Version Base de données: 5.0.37
Version PHP: 4.4.3-dev
Serveur Web: Apache/ProXad [Apr 14 2007 12:48:57]
Interface serveur Web vers PHP: cgi-fcgi

Last edited by Malkom on Thu May 31, 2007 11:48 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: Introducing ArmorySync

Postby Malkom » Fri Jun 01, 2007 5:26 pm

Very strange......

I always had an 500 Internal Server Error.... then I 've deleted my french translation in the localization.php of this words :
Code: Select all
$wordings['enUS']['ArmorySynch']['RepStanding']['Exalted'] = 'Exalted';
$wordings['enUS']['ArmorySynch']['RepStanding']['Revered'] = 'Revered';
$wordings['enUS']['ArmorySynch']['RepStanding']['Honored'] = 'Honored';
$wordings['enUS']['ArmorySynch']['RepStanding']['Friendly'] = 'Friendly';
$wordings['enUS']['ArmorySynch']['RepStanding']['Neutral'] = 'Neutral';
$wordings['enUS']['ArmorySynch']['RepStanding']['Hostile'] = 'Hostile';
$wordings['enUS']['ArmorySynch']['RepStanding']['Hated'] = 'Hated';


And now it's allright, no more 500 Error :scratch:

Don't understand......
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: Introducing ArmorySync

Postby harx » Fri Jun 01, 2007 5:52 pm

Code: Select all
      $headers =
         "GET $request HTTP/1.0\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         "Connection: close\r\n".
         "Content-Length: " . strlen($request) . "\r\n" .
         "\r\n" .
         $request;
      


to:

Code: Select all
      $headers =
         "GET $request HTTP/1.1\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         //"Content-Length: " . strlen($request) . "\r\n" .
         "Connection: close\r\n".
         "\r\n";

[/quote]

I've applied this code and when I try to synchronise I obtain this error

Proxy Error
The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /Roster/addon.php.

Reason: Document contains no data


Any idea??

PS: excuse my bad english.. this is for a french roster http://www.broceliande-brothers.fr/Roster
Force et honneur
User avatar
harx
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Dec 05, 2006 2:56 pm
Location: France

Introducing ArmorySync

Postby silverscout » Sun Jun 03, 2007 5:20 am

Can you make it so the admin or officers can push the button? use the admin login password?
silverscout
WR.net Apprentice
WR.net Apprentice
 
Posts: 47
Joined: Tue Jul 04, 2006 2:47 pm

Introducing ArmorySync

Postby Ulminia » Mon Jun 04, 2007 8:58 am

is there an updates package for this yet? you really need to make a announcement section and just post revisions for this thing awsome idea
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Introducing ArmorySync

Postby zanix » Mon Jun 04, 2007 10:49 am

Or use the downloads module here on wowroster.net and keep it updated
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

Introducing ArmorySync

Postby Ulminia » Mon Jun 04, 2007 11:52 am

that workd too *shakes head*
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Introducing ArmorySync

Postby zanix » Mon Jun 04, 2007 1:48 pm

Yeah, I don't understand why some addon authors refuse to use the download section.
You can have multiple files/versions, plus all the downloads are in one place so the user doesn't have to look far for other downloads

Plus in the next version of Roster we will have update checking
All you have to do is have the download ID for your addon/mod and Roster will check the downloads module here on wowroster.net if it has been updated

For example, the url to download SigGen is http://www.wowroster.net/Downloads/details/id=20.html
The id= at the end is SigGen's download ID which is 20
In Roster, you will then be able to activate the update check in your addon by setting $installer->updatecheck('20'); in your install file (20 since SigGen's id is 20)
Then on the Roster CP pages, it will notify if there is a new version of that addon
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

Introducing ArmorySync

Postby elius » Wed Jun 06, 2007 4:29 pm

Hello,

Sorry if my english is not perfect....

When I try to start Armorysinch this message appear, plz help

Fatal error: Call to undefined function: curl_init() in c:\program files\easyphp1-8\www\roster\addons\ArmorySynch\functions.general.php on line 31
elius
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Fri Jan 05, 2007 12:23 am

PreviousNext

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 0 guests

cron