I looked at my Apache Error Log today and saw thousands of lines with something like:
Undefined variable: var_name
Why is it complaining about variables I don't define? Is there a setting I have to change in the .ini I'm unaware of?
Generally that happens when you have an array index that isn't set and you try to use it ... same goes for variables that don't exist.
well this is a very vague post... the log should tell you what file was throwing the errors.. from there you should check the file with error reporting on and then fix the issues
I know where the error is coming from, but before I upgraded my server, I don't remember seeing these errors in the log. Is there a setting to ignore that?
if u know where the error is coming from, fix it...
Ignoring errors are never good. Errors indicte that there is something ... er ... wrong even if it seems to work ok. The best thing is to fix the errors, then you don't have to worry anymore.
if ($var_name) //line 69
Notice: Undefined variable: var_name in /var/www/vhosts/site.com/httpdocs/file.php on line 69
if (isset($var_name)) //line 69
im guessing will work... youd have to show us the rest of your code for me to be sure
That works now. Thanks.