User tries to create a new woocommerce account, and receives the following errors displayed on an otherwise empty html page:
Notice: Undefined offset: 2 in [my site folder]/wp-content/plugins/types-access/includes/Helper.php on line 3741
Warning: Cannot modify header information - headers already sent by (output started at [my site folder]/wp-content/plugins/types-access/includes/Helper.php:3741) in [my site folder]/wp-includes/pluggable.php on line 920
Warning: Cannot modify header information - headers already sent by (output started at [my site folder]/wp-content/plugins/types-access/includes/Helper.php:3741) in [my site folder]/wp-includes/pluggable.php on line 921
Warning: Cannot modify header information - headers already sent by (output started at [my site folder]/wp-content/plugins/types-access/includes/Helper.php:3741) in [my site folder]/wp-includes/pluggable.php on line 922
Warning: Cannot modify header information - headers already sent by (output started at [my site folder]/wp-content/plugins/types-access/includes/Helper.php:3741) in [my site folder]/wp-includes/pluggable.php on line 1219
Hello,
There is a PHP notice in your debug logs:
Notice: Undefined offset: 2 in [my site folder]/wp-content/plugins/types-access/includes/Helper.php on line 3741
You can suppress it by editing wp-config.php file, for example:
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
This will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.
More help:
https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging
Thanks for this solution. It seems to have successfully hidden the errors from the user.