PDA

View Full Version : member function query()



Tony
08-17-2004, 12:25 AM
hey i just tryed to install your great script for my e107 cms but everytime i run the install.php script i get this error


Fatal error: Call to a member function query() on a non-object in /home/tony/public_html/classes/cms-e107-0.616.php on line 197


can someone please help me

btw line 197 points to

$this->DB->query("SELECT e107_value FROM ".$this->DB->prefix."core WHERE e107_name='pref'");


thanks! tony :(

lalo
08-17-2004, 05:12 AM
not sure about this, bit it could be that you misspelled your e107 Database prefix at the hack installation screen, take a look at your "e107_config.php" file to see what you have. It should be something like this:

$mySQLprefix = "e107_";

so then you should write "e107_" as the database prefix. Note that the default value at the hack installation file is "nuke_" (or something like that) so remember to put "e107_" instead (or whatever you've chosen when installing yout CMS)
.

Tony
08-17-2004, 05:51 AM
takin from cms_forum_hack.php
$CMS_FORUMS_HACK['cms']['prefix'] = "e107_";


takin from e107_config.php
$mySQLprefix = "e107_";

dosnt look like a prefix problem to me...

Patrick
08-17-2004, 12:29 PM
For some reason DB hasn't been declared as an object for you. I will check my code.

What PHP version are you running?:


phpinfo();

Tony
08-17-2004, 06:54 PM
oh dw i found the problem... i got a bug tho when i try to go the the "My Constrols" link ipb or "Settings" in e107 it gose to the forums "My Controle" link but it dosnt load up it just leaves a blank (white) page with nothing on it....

EDIT:: btw this is my site http://www.km.nbhosting.org/news.php