Hi @kirstinv,
Sorry to hear this has been going on for months — let’s get it sorted!
These warnings are coming from WooCommerce’s REST API product categories controller, which tries to read the modification date of the most recent post in each category. When a product category has no products assigned to it, that query returns null and PHP 8.x throws these warnings rather than handling it silently.
Have you noticed any functionality issues alongside these warnings, or are they just appearing in the logs?
A few things to try:
- Go to Products → Categories and look for any categories with 0 products. Either assign products to them or delete them if they’re no longer needed.
- Go to WooCommerce → Status → Tools and run “Verify base database tables” and “Update database”. This can fix any missing or corrupted term/post associations.
- Could you paste your system report at https://pastebin.com and share the link? Go to WooCommerce → Status → Get system report. That will help us confirm whether there’s also a known bug in your specific version that’s already been patched.
Looking forward to your response!
Hi Frank,
Thank you for your quick response:)
I did the first two steps but the php warnings are still showing.
Can I paste the system report also here?
I forget to mention that we haven’t duplicated products into Dutch therefor all product categories in the second language are empty.. Does that matter?
Hi there!
Thank you for the update. The System Status Report contains a large amount of information, and forum moderators may remove messages that include too much content directly in the thread.
That is why we recommend sharing the System Status Report using Pastebin and then providing the generated link here.
I forget to mention that we haven’t duplicated products into Dutch therefor all product categories in the second language are empty.. Does that matter?
Yes, that could definitely be related.
If the Dutch product categories exist but do not contain any translated or assigned products, WooCommerce or a related multilingual plugin may still attempt to access linked product data through the REST API, which can sometimes result in warnings like the ones you shared when the expected post object is missing or empty.
To help confirm this, could you please let us know:
- Which multilingual plugin you are using (for example WPML, Polylang, etc.)
- Whether the warnings stop if the second language is temporarily disabled
- Whether all WooCommerce-related plugins are fully updated
You could also try creating or syncing a few translated products in Dutch and then check if the warnings continue appearing afterward.