The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
user public profile throws php error - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: user public profile throws php error (/showthread.php?tid=578) |
user public profile throws php error - firestorm - 05-30-2017 if a user registers or a user is added from the backend but they don't log in, with error reporting on their public profile displays the following error: Notice: Undefined offset: 0 in /home/blanked_for_security/public_html/UserSpice/users/classes/DB.php on line 155 Notice: Trying to get property of non-object in /home/blanked_for_security/public_html/UserSpice/users/profile.php on line 46 user public profile throws php error - firestorm - 05-30-2017 I've also noticed, the user id is different between public profile and all users page user public profile throws php error - firestorm - 05-30-2017 RESOVED - replace $v1->id with $v1->user_id in view_all_users.php on line 91 user public profile throws php error - mudmin - 06-01-2017 Hmm. Let me check on this. Profile/BIO id's CAN be different than user id's. It shouldn't happen, but it CAN happen, especially if people go in the db and manually delete users from the users table and not all the other associated entries. I'll double check your fix, but I think the current code is right (although I've been wrong many times before). Either way, when you click on the all users, you're not clicking on the user id, but the profile id. |