Undefined index: HTTP_PREFER
Moderators: Developers, Moderators
Undefined index: HTTP_PREFER
Hy,
i have a problem with cacti 0.8.3a. I get after the first login with user: admin, pwd: admin the following message:
Notice: Undefined index: HTTP_PREFER in /srv/www/htdocs/cacti/auth_login.php
on line 124
Warning: Cannot modify header information - headers already sent by (output
started at /srv/www/htdocs/cacti/auth_login.php:124) in
/srv/www/htdocs/cacti/auth_login.php on line 124
I use the following system:
Mysql 3.23.55
MyODBC 3.23.55
Apache 1.3 with mod_php4
What s wrong?
i have a problem with cacti 0.8.3a. I get after the first login with user: admin, pwd: admin the following message:
Notice: Undefined index: HTTP_PREFER in /srv/www/htdocs/cacti/auth_login.php
on line 124
Warning: Cannot modify header information - headers already sent by (output
started at /srv/www/htdocs/cacti/auth_login.php:124) in
/srv/www/htdocs/cacti/auth_login.php on line 124
I use the following system:
Mysql 3.23.55
MyODBC 3.23.55
Apache 1.3 with mod_php4
What s wrong?
Can you show me what line 124 of auth_login.php looks like for you? Mine reads:
-Ian
Code: Select all
header("Location: " . $_SERVER["HTTP_REFERER"]); break;
HTTP_REFERER
Hy, this is the syntax at Line 120
/* ok, at the point the user has been sucessfully authenticated; so we must
decide what to do next */
switch ($user["login_opts"]) {
case '1': /* referer */
header("Location: " . $_SERVER["HTTP_REFERER"]); break;
case '2': /* default console page */
header("Location: index.php"); break;
case '3': /* default graph page */
header("Location: graph_view.php"); break;
/* ok, at the point the user has been sucessfully authenticated; so we must
decide what to do next */
switch ($user["login_opts"]) {
case '1': /* referer */
header("Location: " . $_SERVER["HTTP_REFERER"]); break;
case '2': /* default console page */
header("Location: index.php"); break;
case '3': /* default graph page */
header("Location: graph_view.php"); break;
Re: HTTP_REFERER
c_kid wrote:Notice: Undefined index: HTTP_PREFER in /srv/www/htdocs/cacti/auth_login.php on line 124
If I compare your error message and the cooresponding line of code, it does not match up. Your error complains about a missing 'HTTP_PREFER', but the code clearly reads 'HTTP_REFERER'. Are you sure there is not a typo somewhere? Perhaps this is the problem.c_kid wrote:header("Location: " . $_SERVER["HTTP_REFERER"]);
-Ian
Hiho!
I am getting the same error, except it says
Notice: Undefined index: HTTP_REFERER in /var/www/cacti/auth_login.php on line 78
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cacti/auth_login.php:78) in /var/www/cacti/auth_login.php on line 78
for me.
Line78 from auth_login.php looks like this:
header("Location: " . $_SERVER["HTTP_REFERER"]); break;
I'm using cacti 0.8.4, mysql Ver 12.22 Distrib 4.0.16, php 4.3.1 and Apache 2.0.44. php4-snmp is installed.
Any help would be appreciated.
thEam
I am getting the same error, except it says
Notice: Undefined index: HTTP_REFERER in /var/www/cacti/auth_login.php on line 78
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cacti/auth_login.php:78) in /var/www/cacti/auth_login.php on line 78
for me.
Line78 from auth_login.php looks like this:
header("Location: " . $_SERVER["HTTP_REFERER"]); break;
I'm using cacti 0.8.4, mysql Ver 12.22 Distrib 4.0.16, php 4.3.1 and Apache 2.0.44. php4-snmp is installed.
Any help would be appreciated.
thEam
For those of you getting the error on line 78 of auth_login.php under Cacti 0.8.4, try out this patched file:
http://www.raxnet.net/downloads/patches ... in.php.txt
Let me know how it works.
-Ian
http://www.raxnet.net/downloads/patches ... in.php.txt
Let me know how it works.
-Ian
Who is online
Users browsing this forum: No registered users and 2 guests