Call to undefined method DB_Error::escapeSimple

Max12

Joined
Sep 1, 2010
Messages
13
Likes
0
Points
0
#1
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
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top