: Uncaught Error: Cannot unset string offsets
-
Hi:
I have installed the plugin, it has the following error occurred. The product page does not have a wholesale price input field. Only have wholesale price heading.Error Details
=============
An error of type E_ERROR was caused in line 146 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-wholesale-roles.php. Error message: Uncaught Error: Cannot unset string offsets in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-wholesale-roles.php:146
Stack trace:
#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-bootstrap.php(242): WWP_Wholesale_Roles->unregisterCustomRole(‘wholesale_custo…’)
#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-bootstrap.php(225): WWP_Bootstrap->_deactivate(0)
#2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): WWP_Bootstrap->deactivate(false)
#3 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/plugin.php(792): do_action(‘deactivate_wooc…’, false)
#6 /opt/bitnami/apps/wordpress/htdocs/wp-admin/plugins.php(192): deactiv
- The topic ‘: Uncaught Error: Cannot unset string offsets’ is closed to new replies.