[OpenSIPS-Users] OpenSIPS-CP - Call to undefined method MDB2_Error::setFetchMode()
duane.larson at gmail.com
duane.larson at gmail.com
Tue Apr 12 15:49:45 CEST 2011
I did create the admin user in the opc_admin_privileges table. It was a DB
connection. In the db.inc.php I changed the
//database host
$config->db_host = "localhost";
to
//database host
$config->db_host = "127.0.0.1";
Can't believe I missed that. Thanks!!
On Apr 12, 2011 3:18am, Alex Ionescu <alex at opensips.org> wrote:
> Hi Duane,
> Have you created the initial user in the opc_admin_privileges table ?
> You have to insert an user - it is written in the INSTALL file.
> Anyway, if you did, please check again if the connection details
> in ../opensips-cp/config/db.inc.php are the correct ones.
> Unfortunatelly, MDB2 is not very "friendly" when reporting errors ... it
> may create confusion.
> Let me know if you succeeded!
> Regards,
> Alex
> Anton Zagorskiy wrote:
> Hi Duane.
> In most cases it means that it can't connect to DB.
> From: users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of
> duane.larson at gmail.com
> Sent: Tuesday, April 12, 2011 3:44 AM
> To: OpenSIPS users mailling list
> Subject: [OpenSIPS-Users] OpenSIPS-CP - Call to undefined method
> MDB2_Error::setFetchMode()
> I am getting this error with OpenSIPS-CP when I try to log in for the
> first
> time
> Fatal error: Call to undefined method MDB2_Error::setFetchMode() in
> /var/www/opensips-cp/web/db_connect.php on line 31
> I saw that someone else in the mailing list had the exact same error and
> it
> was mentioned that the db.ini.php wasn't configured. As far as I know I
> followed the installation instructions. I installed all the pear packages
> and edited any files that were supposed to be edited. Not sure what's
> causing this. I downloaded with svn.
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110412/87540b64/attachment.htm>
More information about the Users
mailing list