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