Array offset on value of type null in wp-cache-phase2.php on line 2989
-
When I try to delete WooCommerce orders with the following CLI command:
last_saved_order_date=$(date --date="14 days ago" +"%Y-%m-%d")
for id in $(wp db query "SELECT id FROM $wp_posts WHERE post_date < '$last_saved_order_date' AND post_type='shop_order'" --skip-column-names); do wp wc shop_order delete $id --user=1 --force=1; done
I get such warning:
Warning: Trying to access array offset on value of type null in /data01/virt58713/domeenid/www.[domainname].ee/htdocs/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 2989
When I deactivate the plugin then this warning does not appear.
Using: WP Super Cache 1.12.1. WP 6.5.3. WooCommerce 8.9.1
- You must be logged in to reply to this topic.