• Resolved bowenjia

    (@bowenjia)


    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)
  • Hi @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/

    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.