problem with php

Discussion in 'PHP' started by saturn100, Sep 21, 2009.

  1. #1
    Php isnt my speciality
    I am trying to get some to work on a site I am making
    The script I am using I bought from someone and installed it correctly as far as i can tell but I am getting this error message

    Fatal error: Call to a member function getAll() on a non-object in /mounted-storage/home101c/sub005/sc62881-JLWT/findeneinhotel/payment.php on line 10


    this is line 10
    $data = $db->getAll( $sql, array( PAYMENT_MODULE_TABLE, 'Y' ) );

    what does it mean
     
    Last edited: Sep 21, 2009
    saturn100, Sep 21, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like the database object isn't created correctly. Perhaps you haven't edited the config file to add your db access credentials? If those db details are correct though, you should ask support from the guy you bought this off.
     
    premiumscripts, Sep 21, 2009 IP
  3. saturn100

    saturn100 Well-Known Member

    Messages:
    465
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #3
    Thanks
    I have contacted the guy still waiting on him to get back
    Its a plugin for a turnkey website
    The rest of the site works fine so I am reluctant to mess around too much
    I can operate the site without the plugin it just cuts down on time and makes it more "autopilot"
     
    saturn100, Sep 21, 2009 IP
  4. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #4
    Is $db assigned to anything earlier in the code?
     
    dweebsonduty, Sep 21, 2009 IP
  5. Martinoes

    Martinoes Peon

    Messages:
    110
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This mean that your $db object is simply NULL. You should initialize this object before using it.
     
    Martinoes, Sep 24, 2009 IP