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

<? Php error

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Error:

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: data
Filename: shop/shop.php
Line Number: 55

Line 55:

PHP:
foreach($SQL->query('SELECT * FROM players WHERE account_id="'.$data['id'].'"') as $chars)

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: loggedAccId
Filename: sources/history.php
Line Number: 23

Line 23:

PHP:
$historyQueryPacc = "SELECT * FROM z_shop_admin_todo WHERE from_account='".$loggedAccId."' OR to_account='".$loggedAccId."';";

What problem? :s
 
Last edited:
Its not a problem, its only a Notice (possible bugs in your code), this cause by your var $data and $loggedAccId which dont have any value.

to fix this go to your /index.php find
PHP:
error_reporting(E_ALL);
change to:
PHP:
error_reporting(E_ALL ^ E_NOTICE);
 
Its not a problem, its only a Notice (possible bugs in your code), this cause by your var $data and $loggedAccId which dont have any value.

to fix this go to your /index.php find
PHP:
error_reporting(E_ALL);
change to:
PHP:
error_reporting(E_ALL ^ E_NOTICE);
That does most certainly not solve it. It simply hides the error which is something you should NEVER EVER do. It is better to solve the error rather than to suppress it.

Please show us a bit more of your code in case you do want our support!
 
Its not a problem, its only a Notice (possible bugs in your code), this cause by your var $data and $loggedAccId which dont have any value.

to fix this go to your /index.php find
PHP:
error_reporting(E_ALL);
change to:
PHP:
error_reporting(E_ALL ^ E_NOTICE);


and problem with creating character??

how to fix?
 
Back
Top