0

// im getting an error in my php code " Warning: Creating default object from empty value in Auth.php on line 63 "

$shop->Levels = $levels; //Line 63
$shop->Rank = $rank;
$shop->Loading = $loading;
$shop->Gems = $gems;
$shop->Boosts = $boosts;

1 Answers1

0

You have probably never initialize $shop.

Just add at the top:

$shop = new stdClass();
Alberto Sinigaglia
  • 12,097
  • 2
  • 20
  • 48
  • @TommyForWorld you have to put it on line 62 (at least, before the first time you are using it)... if it's not working, please tell me the error, and if it's the same, post the entire code – Alberto Sinigaglia May 26 '21 at 23:07
  • @TommyForWorld well that's another problem, because you are passing this object to something that requires "Last IP" to be set – Alberto Sinigaglia May 26 '21 at 23:15