I am trying to resolve an issue where the main WooCommerce shop page randomly stops displaying content, leaving only the header and footer visible (resulting in an empty shop page). It appears that something is preventing, interrupting, or deleting the 'post_content' of this page, a problem that does not occur with other pages.
The problem was noticeable after installing WPML, where we translated the webshop to English and German (by default Dutch).
As a developer myself, I can imagine that WPML might be running background tasks that could cause issues like these.
The shop page where the issue could be seen: hidden link.
The temporary fix is by updating the shop page manually. After this update, the 'post_content' returns to normal.
I thought I'd find a pattern when editing a WC product or category, and added a hook that updates the shop page after a WC product or category changed; unfortunately, this did not fix the problem.
There are no PHP errors that provide any clues as to the origin of the problem.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
As I can see, the issue occurs on the shop page in the default language Dutch. So I think it doesn't relate to WPML in this case. You can try to deactivate WPML in a while and recheck this issue.
Note: Please backup your database and website before proceeding.
Thank you for your response. I am currently logging all the cron jobs to determine if there's a connection between a cron job and the issue of the empty page.
I will contact you again once I have found a result.