• 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 $user_data error after transferring to Xampp

Jaycee

Well-Known Member
Joined
Apr 12, 2008
Messages
105
Reaction score
64
Location
United Kingdom
Hello guys,

I'm not sure if this is an error with the xampp transfer or because i was editing some files to remove a table and maybe touched something i shouldn't have but im completely stuck with this.

So the first problem is on the Side panel of my account after logging in. It shows this error:
error 1.png
Line 31 is just :
PHP:
Welcome, <?php echo $user_data['name']; ?>


Then error 2 which is also linked :
error 2.png
Line 241 is :
PHP:
        <center><table style="width: auto;"><tr><td style="background: transparent;"><img src="layout/tibia_img/headline-bracer-left.gif"></td><td  style="background: transparent;text-align:center;vertical-align:middle;horizontal-align:center;font-size:17px;font-weight:bold;">Welcome to your account, <?php echo $user_data['name']; ?>!<br></td><td style="background: transparent;"><img src="layout/tibia_img/headline-bracer-right.gif"></td></tr></table></center>

It seems to be something i've messed up with $user_data but i cannot work out what! Any help would be really appreciated

Thanks Guys
 
Seems to me you are referring to name, but it cant find that.
You changed that or removed it?
 
Either on that page or in a function it will have an SQL query to get the player data.
See if its pulling the players name.
 
Hey guys,

Your right is was looking for the account name but that field doesnt exist on my signup, since all it shows is account ID in SQL which is the acc number. So i changed it to fetch id instead of name and it now shows the players account number there.

Thanks
 
Its prob because the user hasn't set a name.
You could just add
PHP:
Welcome, <?php echo (isset($user_data['name1']) ? $user_data['name'] : 'user') ?>

Welcome ~name~ or Welcome User, depending on if it exists or not in the userdata.
 
Thanks i will try that also,

I now have this issue on the highscores though where it shows outfits.
outfit.png

This was all working well before i changed x.x
 
Without seeing your code, I wouldn't know.
But there should be an SQL query relating to highscores and it appears its not requesting lookbody etc.

You should share the code for the sections its moaning about and any functions related.
If you don't want to publically share.
You can PM me regarding this.
 
Back
Top