Results 1 to 5 of 5

Thread: member function query()

  1. Join Date
    Aug 2004
    Posts
    3

    member function query()

    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

    Code:
    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
    Code:
    $this->DB->query("SELECT e107_value FROM ".$this->DB->prefix."core WHERE e107_name='pref'");

    thanks! tony

  2. Join Date
    Aug 2004
    Posts
    18

    member function query()

    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:
    Code:
    $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)
    .

  3. Join Date
    Aug 2004
    Posts
    3

    member function query()

    Code:
    takin from cms_forum_hack.php
    $CMS_FORUMS_HACK['cms']['prefix'] = "e107_";
    Code:
    takin from e107_config.php
    $mySQLprefix = "e107_";
    dosnt look like a prefix problem to me...

  4. Join Date
    Aug 2004
    Posts
    781

    member function query()

    For some reason DB hasn't been declared as an object for you. I will check my code.

    What PHP version are you running?:
    Code:
    phpinfo();

  5. Join Date
    Aug 2004
    Posts
    3

    member function query()

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts