Ok, I really need help. I am running EE (an older version admittedly) but this just started happening. I noticed a lot of spam accounts being requesting authorization to my website. I went in to the account management section of my website and I am presented with this:
Any help would be greatly appreciated. I am not a coder or php guru. I am mostly the opposite of that.
TIA,
Ed
Code:
Catchable fatal error: Object of class stdClass could not be converted to string in /home/ninjamon/public_html/guitars/pm/cp/members.cp.php on line 62
Code:
Here is my members.cp.php file with line 62 marked. <?php // // pMachine Publishing Software // // Version 2.3 // // Copyright (c) 2003 Rick Ellis All rights reserved. // // THIS IS COPYRIGHTED SOFTWARE // // License holders may alter or modify this software for their own use, // but may NOT resell or redistribute the modified or derivative version // without prior written consent from pMachine. Components from this // software may not be extracted and used in other programs without prior // written consent from pMachine. // // PLEASE READ THE LICENSE AGREEMENT // // ---------------------------------------------- // GET MEMBER PROFILE // ---------------------------------------------- function get_member_profile($id, $show) { global $use_session_id, $db_members, $L_CALENDAR, $db_mailinglist; global $db_session, $member_code, $sx; $db = new DB(); $qval = "id"; if ($show == "new") $qval = "member_id"; if ($id == "self") { if ($use_session_id == 1) { $sql = "select member_id from $db_session where session_id = '$sx'"; $query = new DB_query($db, $sql); $query->db_fetch_object(); $member_code = $query->obj->member_id; unset($sql); unset($query); } $id = $member_code; $qval = "member_id"; } $sql = "select * from $db_members where $qval = '$id'"; $query = new DB_query($db, $sql); $query->db_fetch_object(); $query->obj->lastpost <> 0 ? $lastpost = date("m/d/Y m:i a",$query->obj->lastpost) : $lastpost = "-"; $joindate = date("m/d/Y m:i a",$query->obj->joindate); [B][I] $q = "select count(*) as count from $db_mailinglist where email='$query->obj->email'";[/I][/B] <-- LINE 62 $res = new DB_query($db, $q); $res->db_fetch_object(); $res->obj->count > 0 ? $mailinglist ="yes" : $mailinglist =""; unset($q); unset($res)
TIA,
Ed
Comment