Title: PHP Fatal error
Last modified: February 10, 2024

---

# PHP Fatal error

 *  [JapeNZ](https://wordpress.org/support/users/japenz/)
 * (@japenz)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-413/)
 * Hi there,
 * I’ve been doing some testing on a staging site and I’m seeing the following error
   after I deactivate your plugin and try to do anything ajax related, specficially
   ajax add to cart from the shop loop:
 * `https://mysite.com/?wc-ajax=add_to_cart 500 (Internal Server Error)`
 * I’ve spoken to my host and they found this error message:
 * `PHP 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 /wordpress/
   core/6.4.3/wp-includes/formatting.php:5148`
 * This happens when your plugin is deactivated and even completely deleted, with
   the plugin active everything works fine.
 * I found this other support question that seems to have been having the same problem:
   [Error when deleting Tier Pricing Table Plugin](https://wordpress.org/support/topic/error-when-deleting-tier-pricing-table-plugin/)
 * So I reinstalled your plugin and emptied my cart as [@jlnbtytkw](https://wordpress.org/support/users/jlnbtytkw/)(
   thank you for posting the fix!) mentioned in the support request.
   Once the cart
   was emptied I was able to deactivate and also delete your plugin without any 
   problem.
 * I want to continue using the plugin, but thought you should know about the error
   as it’s clearly a potential problem.
 * Please let me know if I need to change a setting or something to fix the issue.
    -  This topic was modified 2 years, 4 months ago by [JapeNZ](https://wordpress.org/support/users/japenz/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mykola Lukin](https://wordpress.org/support/users/bycrik/)
 * (@bycrik)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-413/#post-17419806)
 * Hello [@japenz](https://wordpress.org/support/users/japenz/)
 * Thanks for pointing this out! We will look into this issue for the next updates.

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/tier-pricing-table/assets/icon-256x256.gif?rev=3025448)
 * [Tiered Pricing Table for WooCommerce](https://wordpress.org/plugins/tier-pricing-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tier-pricing-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tier-pricing-table/)
 * [Active Topics](https://wordpress.org/support/plugin/tier-pricing-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tier-pricing-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tier-pricing-table/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mykola Lukin](https://wordpress.org/support/users/bycrik/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-413/#post-17419806)
 * Status: not resolved