• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC [MyAAC] Characters page don't load :(

Blasphemy

Well-Known Member
Joined
Jan 5, 2012
Messages
387
Reaction score
67
Hello everyone, I need help for the next issue:
When I choose this link, page loads ok.
1676661220977.png
but if I choose a character, it goes blank:
1676661159033.png

What should be the problem?
 
Hi,

there was an error on the page.

1. Change in config.local.php
$config['env'] = 'dev';

2. Refresh page.

3. Post the error here.
 
Hi,

there was an error on the page.

1. Change in config.local.php
$config['env'] = 'dev';

2. Refresh page.

3. Post the error here.
Thanks @slaw for the fast answer :)!
here are the errors:

Warning: require_once(D:\xampp1\htdocs//tools/achievements.php): failed to open stream: No such file or directory in D:\xampp1\htdocs\system\pages\characters.php on line 469

Fatal error
: require_once(): Failed opening required 'D:\xampp1\htdocs//tools/achievements.php' (include_path='D:\xampp1\php\PEAR') in D:\xampp1\htdocs\system\pages\characters.php on line 469
Post automatically merged:

now character info shows but still having this errors:

Notice: Undefined index: achievements_base in D:\xampp1\htdocs\system\pages\characters.php on line 471

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined index: achievements_base in D:\xampp1\htdocs\system\pages\characters.php on line 471

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined index: achievements_base in D:\xampp1\htdocs\system\pages\characters.php on line 471

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined index: achievements_base in D:\xampp1\htdocs\system\pages\characters.php on line 471

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined index: achievements_base in D:\xampp1\htdocs\system\pages\characters.php on line 471

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined variable: insertAchievement in D:\xampp1\htdocs\system\pages\characters.php on line 486

Notice
: Undefined variable: country in D:\xampp1\htdocs\system\pages\characters.php on line 499
Post automatically merged:

this is the whole code
1676664883066.png
and these are the erros now:

Notice: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined variable: insertAchievement in D:\xampp1\htdocs\system\pages\characters.php on line 486
 
Last edited:
Thanks @slaw for the fast answer :)!
here are the errors:


Post automatically merged:

now character info shows but still having this errors:


Post automatically merged:

this is the whole code
View attachment 73518
and these are the erros now:
The query on line 472 returned false (no results). You need to wrap lines 474 -> 484 in a if statement checking for $achievementPlayer like so:
PHP:
if($achievementPlayer){
    ...
}
 
Add in config.php:

'achievements_base' => 300000,
already added that but these are the new errors

Notice: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Trying to access array offset on value of type bool in D:\xampp1\htdocs\system\pages\characters.php on line 474

Notice
: Undefined variable: insertAchievement in D:\xampp1\htdocs\system\pages\characters.php on line 486
Post automatically merged:

The query on line 472 returned false (no results). You need to wrap lines 474 -> 484 in a if statement checking for $achievementPlayer like so:
PHP:
if($achievementPlayer){
    ...
}
1676681036224.png
I think they are already wrapped?
Post automatically merged:

The query on line 472 returned false (no results). You need to wrap lines 474 -> 484 in a if statement checking for $achievementPlayer like so:
PHP:
if($achievementPlayer){
    ...
}
1676681857788.png

you mean doing like this?
 
Last edited:
Back
Top