Page 1 of 1

<Solved>vicidail web pages giving warning

PostPosted: Wed Jul 24, 2013 4:13 am
by paruchurup
Hi

I have installed apache server and php from rpm. Now I get below errors. When Install them from source in anotehr server, there were no issues. I would like to know why I am getting below errors when I am accessing vicidial.php.

Code: Select all
Notice: Undefined variable: use_slave_server in /var/www/html/vicidial/dbconnect.php on line 54

Notice: Undefined index: PHP_AUTH_USER in /var/www/html/vicidial/admin.php on line 107

Notice: Undefined index: PHP_AUTH_PW in /var/www/html/vicidial/admin.php on line 108

Notice: Undefined variable: dial_status in /var/www/html/vicidial/admin.php on line 1810

Notice: Undefined variable: download_max_system_stats_metric_name in /var/www/html/vicidial/admin.php on line 1816

Notice: Undefined variable: DB in /var/www/html/vicidial/admin.php on line 1872

Notice: Undefined variable: adaptive_latest_server_time in /var/www/html/vicidial/admin.php on line 1928

Notice: Undefined variable: admin_hangup_enabled in /var/www/html/vicidial/admin.php on line 1929

Notice: Undefined variable: admin_hijack_enabled in /var/www/html/vicidial/admin.php on line 1930

Notice: Undefined variable: admin_monitor_enabled in /var/www/html/vicidial/admin.php on line 1931

Notice: Undefined variable: AFLogging_enabled in /var/www/html/vicidial/admin.php on line 1932


Re: vicidail web pages giving warning

PostPosted: Wed Jul 24, 2013 4:19 am
by paruchurup
If I look at the corresponding php files, I see that those variables(use_slave_server , dial_status..)which it is saying undefined variable, are not seen defined anywhere in the PHP files. How come it is possible.....

they are defined globally in some php ....?

Can anyone tell me how it is coded.

Re: vicidail web pages giving warning

PostPosted: Fri Jul 26, 2013 2:49 am
by paruchurup
It is solved. There was small syntax error which I made while editing php.ini file. After correcting that it worked.
I was able to fidn out this by typing $php -v then it displayed the error.

But still I need to understand where these (use_slave_server , dial_status..) variables are defined in the admin.php, I see that they are directly using these vairable, I hope these are not PHP system environment variable....I am not sure...