hello, im facing a problem that when ever i click to see the member's recurited by any affiliate through admin panel it display dtabase query error and also generate database eror email to my account. please help what should i do to fix it?
hello, im facing a problem that when ever i click to see the member's recurited by any affiliate through admin panel it display dtabase query error and also generate database eror email to my account. please help what should i do to fix it? |
first of all open your /inc/db.inc.php find line define( 'DB_FULL_DEBUG_MODE', false ); and change false to true. After it save and try to open page with error message - you will find a reason of error. Regards Artur |
ok i have no idea what does this means. this si the report Database query error
Query:
SELECT `Profiles`.`ID` as `ID`, `NickName`, `Email`, `Sex`, DATE_FORMAT(`DateLastLogin`, '%m-%d-%y %H:%i' ) AS `DateLastLoginCur`, DATE_FORMAT(`DateReg`, '%m-%d-%y %H:%i' ) AS `DateReg`, `Status` , `IDLevel`, IF(ISNULL(`MemLevels`.`Name`),'', `MemLevels`.`Name`) AS `MemName` FROM `Profiles` ,aff_members LEFT JOIN `ProfileMemLevels` ON `ProfileMemLevels`.`IDMember` = `Profiles`.`ID` LEFT JOIN `MemLevels` ON `ProfileMemLevels`.`IDLevel` = `MemLevels`.`ID` WHERE 1 AND idAff = 4 AND idProfile = ID AND (`Couple`=0 OR `Couple`>`Profiles`.`ID`) GROUP BY `Profiles`.`ID` ORDER BY DateLastLogin LIMIT 0, 30
Mysql error:
Column 'ID' in where clause is ambiguous
Found error in file /home/goku/public_html/dolphin/admin/profiles.php
at line 268. Called db_res function with erroneous argument #0 Debug backtrace: ArrayCalled script: /dolphin/admin/profiles.php Request parameters: Array |
OMG pleae help me. after debugin and giving u the report. i turned it to true again coz users werent able to see the site. and now database connect failed is coming to the main page. what to do please answer fast |
Seems this questions asked before, so - I repeat answer: line 125 in admin/profiles.php should be $aff_part_w = " AND `idAff` = '{$showAffMembers}' AND `idProfile` = `Profiles`.`ID`"; |
Seems this questions asked before, so - I repeat answer: line 125 in admin/profiles.php should be $aff_part_w = " AND `idAff` = '{$showAffMembers}' AND `idProfile` = `Profiles`.`ID`"; are u sure about the line number?? coz this is the line whcih i see on 125 db_res( "UPDATE `Profiles` SET `Status` = 'Approval' WHERE `ID` = '" . (int)$val . "'" ); beacause its not workin still. and to clarify im talkin about the member's which affiliates brought in the community. or u can say which they recurited. |