Fatal error when changing order status
-
Hi,
I’m experiencing a critical error on my WooCommerce site when manually changing an order status from “Processing” to “Completed”. The customer sees the generic message:
“There has been a critical error on this website.”
After refreshing the page, everything works normally, but the process is interrupted momentarily.Checking the server error logs, I found this fatal error:
[01-Aug-2025 09:51:59 UTC] PHP Fatal error: Uncaught Error: Call to undefined method ObjectCacheDisk::decrement() in /home/jydpelyy/public_html/wp-content/object-cache.php on line 653It seems that Object Cache 4 Everyone is calling the method
decrement()on an instance ofObjectCacheDisk, but this method is not defined in that class.
That causes a fatal error when certain actions trigger that method—possibly during the customer notification process when completing an order.Could you confirm if Object Cache 4 Everyone is expected to support
decrement(), or if this is a bug or compatibility issue?
Also, is there any recommended fix or workaround, short of disabling object caching?As a temporary fix, I’ve disabled
object-cache.phpto disable persistent object caching, which prevents the error.Thanks in advance for your support.
The topic ‘Fatal error when changing order status’ is closed to new replies.