Page 1 of 1

mysql_num_rows() error

PostPosted: Tue Aug 07, 2012 3:59 am
by sayantandas
I have a new error suddenly on a multiserver setup. The vicidial,asterisk and webserver is on one machine and db server on another machine. Now while trying to connect, to admininstration pages, I get the following error:

Code: Select all
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/vicidial/admin.php on line 1819

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vicidial/admin.php:1819) in /var/www/vicidial/admin.php on line 3248

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vicidial/admin.php:1819) in /var/www/vicidial/admin.php on line 3249
Invalid Username/Password: |||

However, if I try to login as an agent , I can login just fine.

Re: mysql_num_rows() error

PostPosted: Tue Aug 07, 2012 6:33 am
by sayantandas
Ok. got it to work. Turned off the error displaying in php.ini file. All is good!

Re: mysql_num_rows() error

PostPosted: Tue Aug 07, 2012 10:59 am
by williamconley
yes, this would be related to the installation. version differences and apache/mysql/etc application configuration all make odd differences.