On PHP 8.0.20 cforms2 generates warnings
-
I have recently upgraded to PHP 8.0.20. WordPress version is 6.0, and cforms2 is 15.0.4.
When I access a page which uses cforms2, warnings are generated in the log:
2022-06-27 13:35:45 Warning nnn.nnn.nnn.nnn mod_fcgid: stderr: PHP Warning: Undefined variable $validation_result in /var/www/vhosts/huddscamra.org.uk/httpdocs/wordpress/wp-content/plugins/cforms2/lib_render.php on line 171, referer: https://huddscamra.org.uk/online-voting/ Apache error 2022-06-27 13:35:45 Warning nnn.nnn.nnn.nnn mod_fcgid: stderr: PHP Warning: Trying to access array offset on value of type null in /var/www/vhosts/huddscamra.org.uk/httpdocs/wordpress/wp-content/plugins/cforms2/lib_render.php on line 171, referer: https://huddscamra.org.uk/online-voting/ Apache error
Cforms2 appears to work correctly despite the warnings.
It works OK without warnings on PHP 7.4.30.
- The topic ‘On PHP 8.0.20 cforms2 generates warnings’ is closed to new replies.