circuitnederland / registrationform

0 stars 0 forks source link

Fix all PHP warnings, notices and deprecation warnings #18

Closed sandrab closed 5 years ago

sandrab commented 6 years ago

(From GDrive document point 12). If you change the PHP error_reporting, the code shows several PHP warnings, notices and deprecation warnings. On the test environment it would be good to show these - maybe change php.ini or else try adding this line in the registration_strings.php on test: error_reporting(E_ALL);

Make sure there are no warnings and notices anymore. The deprecation warnings are thrown when you run the registration form in PHP 7 and should be fixed as well.

sandrab commented 6 years ago

To test this, change the error_reporting on the test environment (either in php.ini or registration_strings.php), so php notices, warnings and deprecation errors show up. If possible, also look in the log file, because notices may not turn up on the screen but only in the log file.