Discussion Forums  >  Self Hosted Control Panels

Replies: 2    Views: 96

Nick Langley
Apple Fan
Profile
Posts: 288
Reg: May 08, 2012
Birmingham, Uni...
11,580
03/25/13 07:55 AM (12 years ago)

oops, BT-Server: Usercontrol modification 1.0.2 Error

So I downloaded the BT-Server: Usercontrol modification 1.0.2 from Buzztouch Mods and I simple pasted the files into FileZilla and Bam! An error ocurred in the fnDbGetResult() method in utilityFunctions.php (4) Any Ideas? EDIT: This error comes after I login, I presume its something in the "class.User.php" file that replaced the original, it's stopping the fnDbGetResult function from retrieving a query and fetching the array from the mySQL database? // return query. function fnDbGetResult($theSql, $host, $db, $user, $pass){ $conn = db_connect($host, $db, $user, $pass); if(!$conn ){ if(APP_ERROR_REPORTING > 0){ die("fnDbGetResult, connection.<br>" . fnSqlError()); }else{ die("An error ocurred in the fnDbGetResult() method in utilityFunctions.php (3)"); } }else{ // fetch array $result = mysql_query($theSql, $conn); if($result){ return $result; }else{ if(APP_ERROR_REPORTING > 0){ die("<hr>" . $theSql . "<hr>" . fnSqlError()); }else{ die("An error ocurred in the fnDbGetResult() method in utilityFunctions.php (4)"); } } } // end if connected }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/25/13 12:45 PM (12 years ago)
This always seemed to happen when there was an authentication issue. Where are the files located? You're logged into your BT Control panel 'before' accessing the page? Cheers! -- Smug
 
Nick Langley
Apple Fan
Profile
Posts: 288
Reg: May 08, 2012
Birmingham, Uni...
11,580
like
03/26/13 11:57 AM (12 years ago)
Hi smug yeah it's as soon as I log in, it doesn't get me as far as the control panel before the error pops up. By the files I take it you mean the BT-server files... They are just in the main root. Cheers Nick
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.