This is a discussion on Undefined variable error with new install of PHP-Nuke within the PHP Language forums, part of the PHP Programming Forums category; OpenBSD 3.2 Apache 1.3.26 PHP 4.3.4 PHP-Nuke 6.9 getting these in the apache ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
OpenBSD 3.2
Apache 1.3.26 PHP 4.3.4 PHP-Nuke 6.9 getting these in the apache error log: Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: HTTP_USER_AGENT in /htdocs/nuke/html/mainfile.php on line 16 [Sun Nov 16 20:20:16 2003] [error] PHP Notice: import_request_variables(): No prefix specified - possible security hazard in /htdocs/nuke/html/mainfile.php on line 39 [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: forum_admin in /htdocs/nuke/html/mainfile.php on line 69 [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: inside_mod in /htdocs/nuke/html/mainfile.php on line 72 [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: inside_mod in /htdocs/nuke/html/db/db.php on line 44 [Sun Nov 16 20:20:16 2003] [error] PHP Fatal error: Call to undefined function: message_die() in /htdocs/nuke/html/db/db.php on line 88 i know this is semi-ot but i think other people have had this problem before and it's been discussed here. i just couldn't find any solutions when searching groups.google.com. any help would be really appreciated. Thanks Dan |
|
|||
|
this has to do with the error reporting settings in your php configuration
file, (aka php.ini) error_reporting = E_ALL & ~E_NOTICE that should do it.. -Hector "Dan Finn" <dfinn@studentadvantage.com> wrote in message news:hrYtb.6846$Wy2.105115@typhoon.sonic.net... > OpenBSD 3.2 > Apache 1.3.26 > PHP 4.3.4 > PHP-Nuke 6.9 > > getting these in the apache error log: > Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > HTTP_USER_AGENT in /htdocs/nuke/html/mainfile.php on line 16 > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: import_request_variables(): > No prefix specified - possible security hazard in > /htdocs/nuke/html/mainfile.php on line 39 > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > forum_admin in /htdocs/nuke/html/mainfile.php on line 69 > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > inside_mod in /htdocs/nuke/html/mainfile.php on line 72 > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > inside_mod in /htdocs/nuke/html/db/db.php on line 44 > [Sun Nov 16 20:20:16 2003] [error] PHP Fatal error: Call to undefined > function: message_die() in /htdocs/nuke/html/db/db.php on line 88 > > i know this is semi-ot but i think other people have had this problem > before and it's been discussed here. i just couldn't find any solutions > when searching groups.google.com. any help would be really appreciated. > > Thanks > Dan > > |
|
|||
|
hmm...now I just get the following error:
Fatal error: Call to undefined function: message_die() in /htdocs/nuke/html/db/db.php on line 88 here's line 88 of that file: message_die(CRITICAL_ERROR, "Could not connect to the database"); and still a broken PHP-Nuke "Hector Gonzalez" <hgonzalez@quadgrafix.com> wrote in message news:p82dnQWC1e4nyCWiRVn-tw@comcast.com... > this has to do with the error reporting settings in your php configuration > file, (aka php.ini) > > error_reporting = E_ALL & ~E_NOTICE > > that should do it.. > > -Hector > > > "Dan Finn" <dfinn@studentadvantage.com> wrote in message > news:hrYtb.6846$Wy2.105115@typhoon.sonic.net... > > OpenBSD 3.2 > > Apache 1.3.26 > > PHP 4.3.4 > > PHP-Nuke 6.9 > > > > getting these in the apache error log: > > Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > HTTP_USER_AGENT in /htdocs/nuke/html/mainfile.php on line 16 > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: > import_request_variables(): > > No prefix specified - possible security hazard in > > /htdocs/nuke/html/mainfile.php on line 39 > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > forum_admin in /htdocs/nuke/html/mainfile.php on line 69 > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > inside_mod in /htdocs/nuke/html/mainfile.php on line 72 > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > inside_mod in /htdocs/nuke/html/db/db.php on line 44 > > [Sun Nov 16 20:20:16 2003] [error] PHP Fatal error: Call to undefined > > function: message_die() in /htdocs/nuke/html/db/db.php on line 88 > > > > i know this is semi-ot but i think other people have had this problem > > before and it's been discussed here. i just couldn't find any solutions > > when searching groups.google.com. any help would be really appreciated. > > > > Thanks > > Dan > > > > > > |
|
|||
|
that is not a php function, it could be a php-nuke function, I don't use
nuke, .. sorry, don't know about that one - try reinstalling nuke? -Hector "Dan Finn" <dfinn@studentadvantage.com> wrote in message news:bKYtb.6851$Wy2.105048@typhoon.sonic.net... > hmm...now I just get the following error: > > Fatal error: Call to undefined function: message_die() in > /htdocs/nuke/html/db/db.php on line 88 > > > here's line 88 of that file: > > message_die(CRITICAL_ERROR, "Could not connect to the database"); > > and still a broken PHP-Nuke > > > "Hector Gonzalez" <hgonzalez@quadgrafix.com> wrote in message > news:p82dnQWC1e4nyCWiRVn-tw@comcast.com... > > this has to do with the error reporting settings in your php configuration > > file, (aka php.ini) > > > > error_reporting = E_ALL & ~E_NOTICE > > > > that should do it.. > > > > -Hector > > > > > > "Dan Finn" <dfinn@studentadvantage.com> wrote in message > > news:hrYtb.6846$Wy2.105115@typhoon.sonic.net... > > > OpenBSD 3.2 > > > Apache 1.3.26 > > > PHP 4.3.4 > > > PHP-Nuke 6.9 > > > > > > getting these in the apache error log: > > > Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > > HTTP_USER_AGENT in /htdocs/nuke/html/mainfile.php on line 16 > > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: > > import_request_variables(): > > > No prefix specified - possible security hazard in > > > /htdocs/nuke/html/mainfile.php on line 39 > > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > > forum_admin in /htdocs/nuke/html/mainfile.php on line 69 > > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > > inside_mod in /htdocs/nuke/html/mainfile.php on line 72 > > > [Sun Nov 16 20:20:16 2003] [error] PHP Notice: Undefined variable: > > > inside_mod in /htdocs/nuke/html/db/db.php on line 44 > > > [Sun Nov 16 20:20:16 2003] [error] PHP Fatal error: Call to undefined > > > function: message_die() in /htdocs/nuke/html/db/db.php on line 88 > > > > > > i know this is semi-ot but i think other people have had this problem > > > before and it's been discussed here. i just couldn't find any solutions > > > when searching groups.google.com. any help would be really appreciated. > > > > > > Thanks > > > Dan > > > > > > > > > > > > |