Closed Paric closed 11 years ago
i'm sure its a real Account:
How stupid of me I tried that from my phone and I forgot the '#' with a '-' in the URL. Im looking into this...
So I just tried it and it seems to get the data fine.
Did you try it like this:
$Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'en_US');
or like this:
$Diablo3 = new Diablo3("Bhlàir#2575", 'us', 'en_US');
The EU is important.
Give it a couple of minutes and you can check for yourself here: http://www.d3stats.tk/user/Bhl%C3%A0ir-2575/eu
i tryed $Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'de_DE'); and $Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'en_US');
all other accounts works fine. the à is the problem.
Hmm can you check your error_log?
This is my test:
$Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'de_DE');
$CAREER_DATA = $Diablo3->getCareer();
echo "Career Data:";
if(is_array($CAREER_DATA)) {
print_r($CAREER_DATA);
} else {
echo $CAREER_DATA; // Error message
}
Response: Career Data: Array ( [heroes] => Array ( [0] => Array ( [name] => Ahrlien [id] => 17459000 [level] => 60 [hardcore] => 1 [paragonLevel] => 48 [gender] => 1 [dead] => [class] => monk [last-updated] => 1360617988 ) [1] => Array ( [name] => Eadwynne [id] => 22398694 [level] => 60 [hardcore] => 1 [paragonLevel] => 17 [gender] => 1 [dead] => [class] => barbarian [last-updated] => 1360497259 ) [2] => Array ( [name] => Abrakka [id] => 22889990 [level] => 60 [hardcore] => 1 [paragonLevel] => 3 [gender] => 1 [dead] => [class] => witch-doctor [last-updated] => 1360501346 ) [3] => Array ( [name] => Miyu [id] => 24457652 [level] => 60 [hardcore] => 1 [paragonLevel] => 1 [gender] => 1 [dead] => [class] => monk [last-updated] => 1360505549 ) [4] => Array ( [name] => Bhlà ir [id] => 11681793 [level] => 60 [hardcore] => [paragonLevel] => 26 [gender] => 0 [dead] => [class] => demon-hunter [last-updated] => 1359769763 ) [5] => Array ( [name] => Khòrlan [id] => 17458919 [level] => 60 [hardcore] => [paragonLevel] => 21 [gender] => 0 [dead] => [class] => barbarian [last-updated] => 1359769809 ) [6] => Array ( [name] => Mystique [id] => 23941528 [level] => 26 [hardcore] => 1 [paragonLevel] => 0 [gender] => 1 [dead] => [class] => wizard [last-updated] => 1358785025 ) [7] => Array ( [name] => Insanya [id] => 23051458 [level] => 2 [hardcore] => 1 [paragonLevel] => 0 [gender] => 1 [dead] => [class] => wizard [last-updated] => 1359496324 ) [8] => Array ( [name] => Uaaaaaargh [id] => 23473687 [level] => 2 [hardcore] => 1 [paragonLevel] => 0 [gender] => 1 [dead] => [class] => demon-hunter [last-updated] => 1360012872 ) ) [lastHeroPlayed] => 17459000 [lastUpdated] => 1360617988 [artisans] => Array ( [0] => Array ( [slug] => blacksmith [level] => 10 [stepCurrent] => 0 [stepMax] => 5 ) [1] => Array ( [slug] => jeweler [level] => 10 [stepCurrent] => 0 [stepMax] => 1 ) ) [hardcoreArtisans] => Array ( [0] => Array ( [slug] => blacksmith [level] => 10 [stepCurrent] => 0 [stepMax] => 5 ) [1] => Array ( [slug] => jeweler [level] => 10 [stepCurrent] => 0 [stepMax] => 1 ) ) [kills] => Array ( [monsters] => 454976 [elites] => 29457 [hardcoreMonsters] => 256127 ) [timePlayed] => Array ( [barbarian] => 0.336 [demon-hunter] => 0.554 [monk] => 1 [witch-doctor] => 0.065 [wizard] => 0.046 ) [fallenHeroes] => Array ( ) [battleTag] => Bhlà ir#2575 [progression] => Array ( [normal] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [nightmare] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [hell] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [inferno] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) ) [hardcoreProgression] => Array ( [normal] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [nightmare] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [hell] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) [inferno] => Array ( [act1] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-fallen-star [name] => Der gefallene Stern ) [1] => Array ( [slug] => the-legacy-of-cain [name] => Das Vermächtnis von Cain ) [2] => Array ( [slug] => a-shattered-crown [name] => Eine zerbrochene Krone ) [3] => Array ( [slug] => reign-of-the-black-king [name] => Im Reich des Finsteren Königs ) [4] => Array ( [slug] => sword-of-the-stranger [name] => Das Schwert des Fremden ) [5] => Array ( [slug] => the-broken-blade [name] => Die zerbrochene Klinge ) [6] => Array ( [slug] => the-doom-in-wortham [name] => Verdammnis in Wortham ) [7] => Array ( [slug] => trailing-the-coven [name] => Dem Zirkel folgen ) [8] => Array ( [slug] => the-imprisoned-angel [name] => Der gefangene Engel ) [9] => Array ( [slug] => return-to-new-tristram [name] => Rückkehr nach Neu-Tristram ) ) ) [act2] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => shadows-in-the-desert [name] => Schatten in der Wüste ) [1] => Array ( [slug] => the-road-to-alcarnus [name] => Die Straße nach Alcarnus ) [2] => Array ( [slug] => city-of-blood [name] => Stadt des Blutes ) [3] => Array ( [slug] => a-royal-audience [name] => Eine kaiserliche Audienz ) [4] => Array ( [slug] => unexpected-allies [name] => Unerwartete Verbündete ) [5] => Array ( [slug] => betrayer-of-the-horadrim [name] => Verräter der Horadrim ) [6] => Array ( [slug] => blood-and-sand [name] => Blut und Sand ) [7] => Array ( [slug] => the-black-soulstone [name] => Der Schwarze Seelenstein ) [8] => Array ( [slug] => the-scouring-of-caldeum [name] => Die Säuberung von Caldeum ) [9] => Array ( [slug] => lord-of-lies [name] => Herr der Lügen ) ) ) [act3] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => the-siege-of-bastions-keep [name] => Die Belagerung der Bastion ) [1] => Array ( [slug] => turning-the-tide [name] => Das Blatt wendet sich ) [2] => Array ( [slug] => the-breached-keep [name] => Die Bresche in der Festung ) [3] => Array ( [slug] => tremors-in-the-stone [name] => Bebende Mauern ) [4] => Array ( [slug] => machines-of-war [name] => Kriegsmaschinen ) [5] => Array ( [slug] => siegebreaker [name] => Belagerungsbrecher ) [6] => Array ( [slug] => heart-of-sin [name] => Herz der Sünde ) ) ) [act4] => Array ( [completed] => 1 [completedQuests] => Array ( [0] => Array ( [slug] => fall-of-the-high-heavens [name] => Der Fall der Hohen Himmel ) [1] => Array ( [slug] => the-light-of-hope [name] => Das Licht der Hoffnung ) [2] => Array ( [slug] => beneath-the-spire [name] => Unter dem Turm ) [3] => Array ( [slug] => prime-evil [name] => Das Oberste Übel ) ) ) ) ) ) Proccess finished in 0.7984 seconds.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/web147/html/tribute/diablo3.api.class.php on line 233
This is the warning i will See, but the account paric#2990 works fine.
i habe tryed your code, and i became the same error.
What version of PHP are you running. Also you are either running it in Safe Mode which is not a good idea. Or you are using 'open-basedir'. I am putting in a fix for this give me 30 min.
PHP Version 5.3.19-1~dotdeb.0
safe mod is off.
Can you see what this outputs:
error_log(ini_get('open_basedir'));
i have no chance to see the log-file on my webspace, sorry
What about
echo ini_get('open_basedir');
and read it off the page.
/var/www/web147/html/:/var/www/web147/phptmp/:/var/www/web147/files/:/var/www/web147/atd/:/usr/share/php/
OK I will put in a fix grab the latest copy and try it.
Try Now.
ok, no warning, thats fine. thanks. but also no data :(
Is there any way you can access your php error_log? or just add these 2 lines at the top of the very first script that gets executed (e.g. usage.php).
error_reporting(E_ALL);
ini_set("display_errors", 1);
i don't think so, sorry :(
So just add
error_reporting(E_ALL);
ini_set("display_errors", 1);
at the top of the main script.
no display, just "Career Data: No Data Return"
Find This in curlRequest() function:
if($error_no) {
error_log('cURL Error: '.$error_no.' ('.$curl_error.') URL: '.$url);
$data = false;
} else {
$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if($http_status >= 400 && $http_status <= 599) {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status);
$data = false;
} else if($http_status >= 200 && $http_status <= 399) {
// HTTP status good
} else {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status);
$data = false;
}
}
Replace with:
if($error_no) {
error_log('cURL Error: '.$error_no.' ('.$curl_error.') URL: '.$url, 3, "/var/www/web147/html/php_error.log");
$data = false;
} else {
$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if($http_status >= 400 && $http_status <= 599) {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status, 3, "/var/www/web147/html/php_error.log");
$data = false;
} else if($http_status >= 200 && $http_status <= 399) {
// HTTP status good
} else {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status, 3, "/var/www/web147/html/php_error.log");
$data = false;
}
}
Make sure u create a file called 'php_error.log' and give it write permissions 777 to be sure in your root folder: '/var/www/web147/html/'
ok, i did it. But the script didn't creat any error, sorry. The error-log-file is empty.
edit: so, i tryed to change the code like this:
if($error_no) {
error_log('cURL Error: '.$error_no.' ('.$curl_error.') URL: '.$url, 3, "/var/www/web147/html/php_error.log");
$data = false;
} else {
$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if($http_status >= 400 && $http_status <= 599) {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status, 3, "/var/www/web147/html/php_error.log");
$data = false;
} else if($http_status >= 200 && $http_status <= 399) {
// HTTP status good
} else {
error_log('Error Data Return: '.$data.' HTTP Status: '.$http_status, 3, "/var/www/web147/html/php_error.log");
// $data = false;
}
}
error_log('Data: '.$data.' | http_status: '.$http_status, 3, "/var/www/web147/html/php_error.log");
the output in the error-log is this:
Data: { "code" : "OOPS", "reason" : "There was a problem processing the request." } | http_status: 200
i hope this will help you.
Put this also there:
error_log('URL: '.$url, 3, "/var/www/web147/html/php_error.log");
ok, there are the problem:
http://eu.battle.net/api/d3/profile/Bhl%E0ir-2575/index?locale=de_DE
So to summarize you use:
$Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'de_DE');
and it results in: eu.battle.net/api/d3/profile/Bhl%E0ir-2575/index?locale=de_DE
à == %E0
This is the place where the change happens.
$this->battlenet_tag = urlencode($battlenet_tag);
When I try i get this: http://eu.battle.net/api/d3/profile/Bhl%C3%A0ir-2575/index?locale=de_DE
à == %C3%A0
Try this:
ini_set('default_charset', 'utf-8');
$Diablo3 = new Diablo3("Bhlàir#2575", 'eu', 'de_DE');
it seems so easy, but its the same result.
ok, i have a solution. i wrote a little encode-function.
private $encode_table = ARRAY(33=>'%21',
35=>'%23', 36=>'%24', 37=>'%25', 38=>'%26', 40=>'%28',
41=>'%29', 43=>'%2B', 44=>'%2C', 47=>'%2F', 58=>'%3A',
59=>'%3B', 60=>'%3C', 61=>'%3D', 62=>'%3E', 63=>'%3F',
91=>'%5B', 92=>'%5C', 93=>'%5D', 123=>'%7B', 124=>'%7C',
125=>'%7D', 142=>'%C5%BD', 192=>'%C3%80', 193=>'%C3%81',
194=>'%C3%82', 195=>'%C3%83', 196=>'%C3%84', 197=>'%C3%85',
199=>'%C3%87', 200=>'%C3%88', 201=>'%C3%89', 202=>'%C3%8A',
203=>'%C3%8B', 204=>'%C3%8C', 205=>'%C3%8D', 206=>'%C3%8E',
207=>'%C3%8F', 210=>'%C3%92', 211=>'%C3%93', 212=>'%C3%94',
213=>'%C3%95', 214=>'%C3%96', 217=>'%C3%99', 218=>'%C3%9A',
219=>'%C3%9B', 220=>'%C3%9C', 221=>'%C3%9D', 224=>'%C3%A0',
225=>'%C3%A1', 226=>'%C3%A2', 227=>'%C3%A3', 228=>'%C3%A4',
229=>'%C3%A5', 231=>'%C3%A7', 232=>'%C3%A8', 233=>'%C3%A9',
234=>'%C3%AA', 235=>'%C3%AB', 236=>'%C3%AC', 237=>'%C3%AD',
238=>'%C3%AE', 239=>'%C3%AF', 242=>'%C3%B2', 243=>'%C3%B3',
244=>'%C3%B4', 245=>'%C3%B5', 246=>'%C3%B6', 249=>'%C3%B9',
250=>'%C3%BA', 251=>'%C3%BB', 252=>'%C3%BC', 253=>'%C3%BD',
255=>'%C3%BF');
private function encode($text) {
while(list($ord, $enc) = each($this->encode_table)) {
$text = str_replace(chr($ord), $enc, $text);
}
return $text;
}
I think there is a core underlying issue here. If you want to just use that walk around that's fine.
What is the output of this:
echo "ini_get('default_charset') ". ini_get('default_charset')."<br>";
ini_get('default_charset') utf-8
Lastly can you try changing line #74 from:
$this->battlenet_tag = urlencode($battlenet_tag);
to:
$this->battlenet_tag = rawurlencode($battlenet_tag);
it works fine for me and thats all i need. Thanks so much for your spending time und this very fast support.
edit: and rawurlencode its the same problem.
OK well thank you for helping me debug this and since the problem was solved for you I will close this issue.
Hello,
im unable to use this script with battletags like bhlàir#2575. the return will be 'No Data Return'. how can i handle this problem?
Greet, Paric