LinuxLab.dk logo IT University of Copenhagen
HOME CALENDAR PROJECTS   SITEMAP / SEARCH

License ] [ Print friendly ] 

PHP error "Notice: Undefined variable"

Problem

After installing FC3 php gives error messages like "Notice: Undefined variable: Bla bla".

Reason

The default error setting in php.ini is set to E_ALL.

Solution

Edit /etc/php.ini with your favorite text editor. Replace the line
error_reporting  =  E_ALL
with
error_reporting = E_ALL & ~E_NOTICE

hm@itu.dk


Home         About LinuxLab Contact us