PHP Fatal error
-
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
So I reinstalled your plugin and emptied my cart as @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.
- The topic ‘PHP Fatal error’ is closed to new replies.