Fatal error: Using $this when not in object contex

Discussion in 'General' started by Max12, Sep 1, 2010.

  1. Max12

    Joined:
    Sep 1, 2010
    Messages:
    13
    Likes Received:
    0
    Hi everybody,

    I am trying to configure elastix2.0 with sqlite3,so This is what i did :
    I modified the file /etc/amportal.conf

    AMPDBENGINE = sqlite3
    AMPDBFILE=/var/lib/freepbx.db
    #AMPDBUSER=asteriskuser
    #AMPDBPASS=
    #AMPDBHOST=localhost

    I have the folowing mistake:
    Fatal error: Using $this when not in object context in
    /var/html/libs/paloSantoTrunk.class.php on line 223

    this is the line : $this->errMsg = $this->_DB->errMsg;
    What is wrong ?
    What should I modified to make elastix work with sqlite3 only.

    Can Somebody help me please ?
    I don't know what to do

    Thanks in advance
     
  2. trislo

    Joined:
    Jul 2, 2010
    Messages:
    5
    Likes Received:
    0
    I fix it commented this line

    $this->errMsg = $this->_DB->errMsg;


    This is bug because the funtions is outside of class.
     

Share This Page