Title: : Uncaught Error: Cannot unset string offsets
Last modified: July 22, 2019

---

# : Uncaught Error: Cannot unset string offsets

 *  Resolved [bowenjia](https://wordpress.org/support/users/bowenjia/)
 * (@bowenjia)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-3/)
 * 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

Viewing 1 replies (of 1 total)

 *  [Ray Abella](https://wordpress.org/support/users/supportray/)
 * (@supportray)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-3/#post-11757416)
 * Hi [@bowenjia](https://wordpress.org/support/users/bowenjia/),
 * I’m sorry to hear that you’re having an issue there.
 * If the Wholesale Price field is not showing on the product page, it’s possible
   that the value of wwp_options_registered_custom_roles on your /wp-admin/options.
   php contains the wrong value.
 * In order to verify and investigate the issue further, could you please submit
   a temporary admin credential to our support form below? Also please address the
   issue to me so I can pick up the ticket from our system.
    [https://wholesalesuiteplugin.com/support/support-request-form/](https://wholesalesuiteplugin.com/support/support-request-form/)
 * Thanks in advance and I’m looking forward to your response.

Viewing 1 replies (of 1 total)

The topic ‘: Uncaught Error: Cannot unset string offsets’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-wholesale-prices/assets/icon-256x256.jpg?rev
   =2547870)
 * [Wholesale Suite – B2B, Dynamic Pricing & WooCommerce Wholesale Prices](https://wordpress.org/plugins/woocommerce-wholesale-prices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-wholesale-prices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ray Abella](https://wordpress.org/support/users/supportray/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-3/#post-11757416)
 * Status: resolved