avandenberghe / bbguild

Guild manager for phpBB 3.2
https://www.avathar.be
GNU General Public License v2.0
3 stars 0 forks source link

Unexpected ) in includes/bbdkp/controller/wowapi/Resource.php line 188 #257

Closed spitefultowel closed 9 years ago

spitefultowel commented 9 years ago

Change line 188 from:

        $header = array("Host: ".$this->region,"Date: ". $date,"\nAuthorization: BNET ". $this->apikey.":". $signature)."\n");

to

        $header = array("Host: ".$this->region,"Date: ". $date,"\nAuthorization: BNET ". $this->apikey.":". $signature."\n");
spitefultowel commented 9 years ago

Correcting it makes the styling work but gives a slew errors.

[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/wowapi/BattleNet.php on line 98: Missing argument 5 for bbdkp/controller/wowapi/BattleNet::__construct(), called in [ROOT]/includes/bbdkp/controller/guilds/Guilds.php on line 961 and defined [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/guilds/Ranks.php on line 326: Invalid argument supplied for foreach() [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/guilds/Ranks.php on line 332: Invalid argument supplied for foreach() [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/members/Members.php on line 1279: Invalid argument supplied for foreach() [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/members/Members.php on line 1290: Invalid argument supplied for foreach() [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/controller/members/Members.php on line 1343: Invalid argument supplied for foreach()

spitefultowel commented 9 years ago

Edit includes/bbdkp/controller/guilds/Guilds.php line 961 change from

                        $api = new \bbdkp\controller\wowapi\BattleNet('guild', $this->region, $game->getApikey(),$game->getApilocale()  );

To

                        $api = new \bbdkp\controller\wowapi\BattleNet('guild', $this->region, $game->getApikey(),$game->getApilocale(),$game->getPrivkey()  );
spitefultowel commented 9 years ago

The PHP Warnings for Ranks.php happens from empty data set. var_dump($memberdata); die(); on line 324 of [ROOT]/includes/bbdkp/controller/guilds/Ranks.php revealse string(0) "".