Skip Navigation

[Resolved] Woocommerce registering new account receives an Access Types Error

This thread is resolved. Here is a description of the problem and solution.

Problem:

There is a PHP notice message using Access plugin.

Solution:

You can suppress it by editing wp-config.php file, for example:
https://toolset.com/forums/topic/woocommerce-registering-new-account-receives-an-access-types-error/#post-1108141

Relevant Documentation:

https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by dirkR 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1107796

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

#1108141

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

#1108162

Thanks for this solution. It seems to have successfully hidden the errors from the user.