UserPie
UserPie copied to clipboard
"trying to get property of..."
Notice: Trying to get property of non-object in .../models/funcs.user.php on line 170
Notice: Trying to get property of non-object in .../models/funcs.user.php on line 172
can you help please?
On which page are you seeing this?
This might have been on the registration page after submitting the form, because I'm getting it too right now.
I got the same message on the first page.
Im getting this message when I go to any page. Was there any fix for this?
Any updates about this error? I'm getting this:
Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/users/models/funcs.user.php on line 170
Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/users/models/funcs.user.php on line 172
also in the login page:
Notice: Undefined index: status in /Applications/XAMPP/xamppfiles/htdocs/users/login.php on line 131
Modify file "funcs.user.php" on line 170 & 172 to this:
user_id = '".$db->sql_escape($loggedInUser['user_id'])."'
AND
password = '".$db->sql_escape($loggedInUser['hash_pw'])."'
fix fast some file, some code, some line 170 & 172, 0 errores...
user_id = '".$db->sql_escape(@$loggedInUser->user_id)."'
AND
password = '".$db->sql_escape(@$loggedInUser->hash_pw)."'