Followed kick start video. opensip server works however I got stuck with problems getting the cp to work. This is a fedora system. I can access the cp login web page but after I enter admin/admin, I receive a blank page. Syslog shows the following error:
PHP Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31, referer: http://192.168.1.152/cp/
Anybody recognize what''s wrong here?
Thanks,
Perazim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Usually when you get this error and you have all the necessary stuff properly installed, means that your DB credentials are wrong. MDB2 is not smart enough to be able to send back a "connection failed" error message. Instead sends back the error you got there.
I am not 100% sure that you are experiencing this issue, but, to be sure, please check the opensips-cp/config/db.inc.php file and make sure that you can connect to DB using the credentials that you have placed there.
Let me know.
Regards,
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Followed kick start video. opensip server works however I got stuck with problems getting the cp to work. This is a fedora system. I can access the cp login web page but after I enter admin/admin, I receive a blank page. Syslog shows the following error:
PHP Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31, referer: http://192.168.1.152/cp/
Anybody recognize what''s wrong here?
Thanks,
Perazim
You need to install the PHP pear for MDB2 + mysql support.
Regards,
Bogdan
I installed php-pear-MDB2 and php-pear-MDB2-Driver-mysql.
There was a package php-pear-MDB2-Schema that I did not install.
I already had a package php-mysql install which I left installed.
Also I reinstalled and initialized msql to make sure it was a pristine installation.
Still no change, after login with admin//admin, a blank page is displayed.
Thanks for the help.
Perazim
I used menuconfig to build opensips. Is there any configuration required here to allow the cp to interact with opensips?
Hi Perazim,
Usually when you get this error and you have all the necessary stuff properly installed, means that your DB credentials are wrong. MDB2 is not smart enough to be able to send back a "connection failed" error message. Instead sends back the error you got there.
I am not 100% sure that you are experiencing this issue, but, to be sure, please check the opensips-cp/config/db.inc.php file and make sure that you can connect to DB using the credentials that you have placed there.
Let me know.
Regards,
Alex
Alex,
Yes this was the problem. Now I get the main web page.
Thanks