Tuesday, January 17, 2012

How To Fix PHP Error Notice: Undefined variable: index

Notice: Undefined index:

Change php.ini

NOTE: you may have something different set for the error_reporting , just make sure you make the changes on the line without a semi-colon because a semi-colon at the begining of the line mean its a comment

So now change it to:

     Code:
error_reporting = E_ALL & ~E_NOTICE

Save your changes and then restart you Apache server for the changes to take affect witht his command:
     Code:
/etc/init.d/httpd restart


No comments: