Turning Off PHP Notice Messages
(1220 views. Last Updated: 2007-08-10 3:53 PM)
FORMfields Lib 3.0 turns on full error reporting and even reports notices. This is true even when you have turned off notice reporting via php.ini. Some forms and conventions that were used with earlier versions of the FORMfields Lib generate notice errors. You can turn off notice reporting globally by editing src/FfGlobals.php and replacing:
error_reporting(E_ALL);
with:
error_reporting(E_ALL & ~E_NOTICE);
Or, you can turn off notice reporting on a per form basis by adding:
error_reporting(E_ALL & ~E_NOTICE);
right after the require command that includes FORMfields.php.
|