Title: PHP Error within WooCommerce – fixed after clearing object cache
Last modified: August 6, 2025

---

# PHP Error within WooCommerce – fixed after clearing object cache

 *  Resolved [kersavond](https://wordpress.org/support/users/kersavond/)
 * (@kersavond)
 * [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/)
 * Hi everyone,
 * Thanks for the amazing plugin – we’ve been using it with WooCommerce since April,
   and it really improved our website performance.
 * Today, for the first time, we encountered a PHP error:
 *     ```wp-block-code
       Uncaught TypeError: current(): Argument #1 ($array) must be of type array, false given in /wp-html-mail-woocommerce/includes/class-wphtmlmail-woocommerce.php:1083
       ```
   
 * It only happened with one specific order and was caused by a broken product image
   assigned to a product variation. Re-assigning the image didn’t work – the issue
   remained.
 * The fix was simple: **clearing the object cache** solved the problem.
 * Is there a way to prevent these kinds of issues in the future? I’m guessing some
   outdated or corrupted data got stuck in the cache.
 * Thanks!
 * Hosting: cPanel-based shared hosting
   PHP: 8.4Redis: 6.2.16Page Cache Plugin: 
   AccelerateWP Version 3.19.0.1-1.1-27

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/#post-18588277)
 * Hey! That would be an issue inside the `wp-html-mail-woocommerce` plugin. Have
   you reached out to their support team?
 *  Thread Starter [kersavond](https://wordpress.org/support/users/kersavond/)
 * (@kersavond)
 * [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/#post-18588294)
 * Thanks for your feedback!
 * You’re right — the error was triggered by the `wp-html-mail-woocommerce` plugin,
   but the root cause turned out to be corrupted or missing metadata in a product
   image.
 * I tried re-selecting the image via the media manager, but the image information
   was clearly missing. After flushing the object cache, the image became visible
   again and everything worked as expected.
 * So while the plugin surfaced the error, the underlying issue was related to cached
   data.
 * I’ve done some more research and noticed that the Pro version of the object cache
   plugin seems to offer better stability — including features like asynchronous
   flushing and health checks for WooCommerce. Would you say it’s worth the upgrade
   in this context?
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/#post-18588362)
 * If you run a WooCommerce site, I’d always use Object Cache Pro over the free 
   version, just for reliability and stability.
 *  Thread Starter [kersavond](https://wordpress.org/support/users/kersavond/)
 * (@kersavond)
 * [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/#post-18588368)
 * ok thanks, will check this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Error within WooCommerce – fixed after clearing object cache’ is 
closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [kersavond](https://wordpress.org/support/users/kersavond/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/php-error-within-woocommerce-fixed-after-clearing-object-cache/#post-18588368)
 * Status: resolved