Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
November 30, 2023 at 2:17 pm #14963621

juriaanD

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.

I found several tickets related to this issue, but none offer a specific solution:
- https://wpml.org/forums/topic/main-shop-page-becomes-empty-from-time-to-time/
- https://wpml.org/forums/topic/empty-shop-pages/
- https://wpml.org/forums/topic/dutch-shop-page-is-empty/

when-empty.jpeg
normal.jpeg
December 4, 2023 at 7:32 am #14982449

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Juriaan,

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.

Let me know how it goes.

Collectie - Amersfoort Art 2023-12-04 14-16-41.png
December 4, 2023 at 9:52 am #14984235

juriaanD

Hi Long,

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.

December 5, 2023 at 1:08 am #14992075

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I'm waiting for your feedback.

Thanks.

The topic ‘[Closed] Empty WooCommerce shop page after random period’ is closed to new replies.