• 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!

Character Deaths - Modern Acc

Stellow

C++/C#/PHP/LUA
Joined
Oct 23, 2008
Messages
1,112
Reaction score
221
Location
Germany
GitHub
eubrunomiguel
for example, when I click on a compound name in WHO IS ONLINE, appears eg "http://173.192.56.197/index.php/character/view/Senhora Xoxotuda" ..without error


However, when I click the same name on any list of more death, death list, etc., appears http://173.192.56.197/index.php/character/view/Senhora+Xoxotuda,
with + in place with the space, and with it the following error appears:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: player

Filename: views/view_character.php

Line Number: 3
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: views/view_character.php

Line Number: 3
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: player

Filename: views/view_character.php

Line Number: 6


How can i fix that?
Thanks
 
Give this a shot. Locate your /system/application/controllers/character.php file. Open it and search for
PHP:
public function view($name = null) {
A few lines below that you will find
PHP:
$name = decodeString($name);
Replace that with
PHP:
$name = urldecode(decodeString($name));
 
He also could try it with this, it would remove atleast first and third error:
Code:
if(isset($_REQUEST['player'])) {
     PUT PART OF YOUR CODE HERE
}
 
Back
Top