Call to undefined method DB_Error::escapeSimple

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: Call to undefined method DB_Error::escapeSimple() in /var/www/html/admin/functions.inc.php on line 1305

    When I click on the menu PBX of Elastix2.0

    this is the line :
    $sql = "SELECT username, password_sha1, extension_low, extension_high, deptname, sections FROM ampusers WHERE username = '".$db->escapeSimple($username)."'";

    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
     

Share This Page