Quote:
Originally Posted by Trana
For everyone that is having this problem (where members get a db error when viewing their PM boxes), can you tell me what hacks you have installed? Are you running VBSEO?
I narrowed it down a little bit. I found that the affected members have records in pmtest with no related records in pm. Something is inserting PMs incorrectly and it causes this mod to blow up. Perhaps the author could code in a function to check and see if the userid is blank, and if so, to use the noavatar.gif instead. I know this is a workaround, but it will fix this for everyone that is having problems until the offending culprit is found.
Thanks!
|
Trana,
I stumbled on this today, if you still need the fix it is:
Got to the plugin manager, find the plug in 'PM Avatars' and edit
PHP Code:
$sk_avurl = fetch_avatar_url($userid);
to:
PHP Code:
if($userid != 'cc'){ $sk_avurl = fetch_avatar_url($userid); }
That would stop the errors for you, it basically checks if the $userid = 'cc' and then only runs the hook if it isn't. It's expecting the $userid to equal something like '67453' but something makes it 'cc'... my code just ignores it if it is!
Let me know how you get on, it will fix it!
AO