Hello Thomas,
is this project still alive and working ?
I've tried several "solutions" to get your Framework running, but with no success.
I started with adding the required db configs and the bnet api key.
Tested the API-Key with the dev.battle.net-functions and also the Guild- & Realm-Name.
Now I just wanted to test it, and I only get empty Arrays.
I've tried getting single Characters and Guild-Objects from the API from different Guilds or Realms.
Output:
"Warning: array_keys() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 151 Warning: Invalid argument supplied for foreach() in [...]/wowarmoryapi/Guild.class.php on line 151 Warning: natsort() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 158 Warning: array_keys() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 162 Warning: Invalid argument supplied for foreach() in [...]/wowarmoryapi/Guild.class.php on line 162 NULL"
I assume that the api is not returning a valid guild-object or the members-array in the guild-object is empty.
Where is the error in my code ?
Thanks in advance for your help
P.S.: Censored some critical informations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, after testing the Bnet-API links manually, i've found the error.
In the Server-Settings "Allow URL fopen" has to be set to true. Otherwise php can't fetch the data from the API.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Thomas,
is this project still alive and working ?
I've tried several "solutions" to get your Framework running, but with no success.
I started with adding the required db configs and the bnet api key.
Tested the API-Key with the dev.battle.net-functions and also the Guild- & Realm-Name.
Now I just wanted to test it, and I only get empty Arrays.
I've tried getting single Characters and Guild-Objects from the API from different Guilds or Realms.
Test-PHP:
<?php
?>
Output:
"Warning: array_keys() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 151 Warning: Invalid argument supplied for foreach() in [...]/wowarmoryapi/Guild.class.php on line 151 Warning: natsort() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 158 Warning: array_keys() expects parameter 1 to be array, null given in [...]/wowarmoryapi/Guild.class.php on line 162 Warning: Invalid argument supplied for foreach() in [...]/wowarmoryapi/Guild.class.php on line 162 NULL"
I assume that the api is not returning a valid guild-object or the members-array in the guild-object is empty.
Where is the error in my code ?
Thanks in advance for your help
P.S.: Censored some critical informations.
Ok, after testing the Bnet-API links manually, i've found the error.
In the Server-Settings "Allow URL fopen" has to be set to true. Otherwise php can't fetch the data from the API.