mysql_num_rows() error

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

mysql_num_rows() error

Postby sayantandas » Tue Aug 07, 2012 3:59 am

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.
Vicidial: VERSION: 2.6-370a BUILD: 120529-2112 | Asterisk 1.4.39.1 | PHP5 v5.3.6 | Ubuntu 10.10 x86_64| Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Pentium(R) Dual-Core CPU E5700 @ 3.00GHz | 1 TB Hard Drive
sayantandas
 
Posts: 30
Joined: Mon Jul 02, 2012 1:00 pm

Re: mysql_num_rows() error

Postby sayantandas » Tue Aug 07, 2012 6:33 am

Ok. got it to work. Turned off the error displaying in php.ini file. All is good!
Vicidial: VERSION: 2.6-370a BUILD: 120529-2112 | Asterisk 1.4.39.1 | PHP5 v5.3.6 | Ubuntu 10.10 x86_64| Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Pentium(R) Dual-Core CPU E5700 @ 3.00GHz | 1 TB Hard Drive
sayantandas
 
Posts: 30
Joined: Mon Jul 02, 2012 1:00 pm

Re: mysql_num_rows() error

Postby williamconley » Tue Aug 07, 2012 10:59 am

yes, this would be related to the installation. version differences and apache/mysql/etc application configuration all make odd differences.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 57 guests