• Resolved jlnbtytkw

    (@jlnbtytkw)


    I wanted to delete Tier Pricing Table Plugin because I don’t need it anymore. The problem is that even if I delete all the files related to this plugin, I got the following error message when I try to add an item to cart. I don’t know what to do to fix this. Can someone help me ?

    Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition “TierPricingTable\PricingRule” of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /var/www/html/wp-includes/formatting.php:5131 Stack trace: #0 /var/www/html/wp-includes/formatting.php(5126): map_deep(Object(__PHP_Incomplete_Class), ‘stripslashes_fr…’) #1 /var/www/html/wp-includes/formatting.php(5126): map_deep(Array, ‘stripslashes_fr…’) #2 /var/www/html/wp-includes/formatting.php(5126): map_deep(Array, ‘stripslashes_fr…’) #3 /var/www/html/wp-includes/formatting.php(2851): map_deep(Array, ‘stripslashes_fr…’) #4 /var/www/html/wp-includes/formatting.php(5784): stripslashes_deep(Array) #5 /var/www/html/wp-includes/meta.php(208): wp_unslash(Array) #6 /var/www/html/wp-includes/user.php(1198): update_metadata(‘user’, 1, ‘_woocommerce_pe…’, Array, ”) #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(301): update_user_meta(1, ‘_woocommerce_pe…’, Array) #8 /var/www/html/wp-includes/class-wp-hook.php(312): WC_Cart_Session->persistent_cart_update(‘693aaca9e8b1bf0…’) #9 /var/www/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #10 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1286): do_action(‘woocommerce_add…’, ‘693aaca9e8b1bf0…’, 113, 1, 116, Array, Array) #12 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(928): WC_Cart->add_to_cart(113, 1, 116, Array) #13 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(800): WC_Form_Handler::add_to_cart_handler_variable(113) #14 /var/www/html/wp-includes/class-wp-hook.php(310): WC_Form_Handler::add_to_cart_action(”) #15 /var/www/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #16 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #17 /var/www/html/wp-settings.php(654): do_action(‘wp_loaded’) #18 /var/www/html/wp-config.php(99): require_once(‘/var/www/html/w…’) #19 /var/www/html/wp-load.php(50): require_once(‘/var/www/html/w…’) #20 /var/www/html/wp-blog-header.php(13): require_once(‘/var/www/html/w…’) #21 /var/www/html/index.php(17): require(‘/var/www/html/w…’) #22 {main} thrown in /var/www/html/wp-includes/formatting.php on line 5131

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Developer

    (@bycrik)

    Hello,

    Sorry to hear that. So the error appears immediately after you deactivate the plugin or on the cart?

    It looks like the issue is related to the cart items containing tiered pricing information, but there is no code to handle that.

    Please try to clear your cart and then deactivate the plugin.

    Sorry about the inconveniece.

    Thread Starter jlnbtytkw

    (@jlnbtytkw)

    Yes, this error appears directly after I deactivated the plugin. I tried to clear my cart and it fixed my problem. I don’t have this error anymore and everything seems to work correctly.

    Thank you

    I ran into this support post through Google and can confirm it works. To help others: the tiered plugin has to be reactivated again to be able to remove the affected items from the shopping cart. To clarify: that’s substantially easier than trying to clear the cart through additional PHP code. After emptying the cart, the plugin can be deinstalled & removed, and everything works again as it should.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when deleting Tier Pricing Table Plugin’ is closed to new replies.