Undefined Variable Problems...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry if this has been covered before.  I just joined this list.

My host just upgraded PHP to 4.3.10 from 4.1.2.  A couple of my clients are
using systems such as PHP-NUKE or various message boards.  I hadn't been
paying attention to my log files, but all of a sudden they got huge,
especially the error logs.  They're filled mostly with undefined variable
errors, but also a couple others, for example:

[Sun Mar  6 00:35:50 2005] [error] PHP Notice:  Undefined variable:
forum_admin in /home/scott/XXXX.org/html/mainfile.php on line 79
[Sun Mar  6 00:35:51 2005] [error] PHP Notice:  Undefined offset:  1 in
/home/scott/XXXX.org/html/mainfile.php on line 486
[Sun Mar  6 00:35:51 2005] [error] PHP Notice:  Undefined index:  2 in
/home/scott/XXXX.org/html/mainfile.php on line 216

line 79, if ($forum_admin == 1) {
line 486, $uname = $cookie[1];
line 216, $pwd = "$user[2]";

Line 79 is not part of a function or class.  It is the first reference to
$forum_admin in the script.  The other two are within functions and the
first call within those functions.  What's being assigned to both of them
are either in the function call itself or globals.

I do have globals turned on.

Should I worry about any of this?  The pages seem to be working fine?  Is
this going to slow things down?  Should I just turn off the logging of such
errors, if I can?

Thanks for any help.  My log files are in the gigabytes with 90% of that
over the last month.

Nick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux