Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client's website isn't loading translated Elementor loops after updating to the latest versions. The 'load more' button does not work, and the console shows a 'TypeError: Cannot read properties of null (reading 'getAttribute')' error.

Solution:
We noticed that the pagination page number is appending after the language parameter in the URL, which should ideally appear before the language parameter. This is likely causing the pagination malfunction in different languages.

1. We recommend changing the "Language URL format" by navigating to "WPML > Languages" in the WordPress dashboard and selecting "Different languages in directories".

2. If using the Yoast SEO plugin, ensure it is updated to the latest version, specifically later than 20.3, to avoid similar issues. For more information, please refer to the Errata page.

If this solution doesn't seem relevant or if you continue to experience issues, please open a new support ticket with us for further assistance.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 3 months ago.

Assisted by: Prosenjit Barman.

Author Posts
January 17, 2024 at 7:48 pm #15197024

aleksandraJ

My site hidden link isn't loading translated elementor loops, after updating to the latest versions.

January 18, 2024 at 11:02 am #15199350

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. Upon reviewing your site, I noticed a critical aspect related to the URL structure. As shown in the attached screenshot, the pagination page number is currently appending after the language parameter. Ideally, it should appear before the language parameter, which is likely the root cause of the pagination malfunction in different languages.

To address this, I recommend a specific adjustment in your WPML settings. Could you please visit "WPML > Languages" in your WordPress dashboard and try changing the "Language URL format" to "Different languages in directories"? This modification might resolve the pagination inconsistency.

Additionally, if you are utilizing the Yoast SEO plugin, it's important to ensure it's updated to the latest version. This is crucial because there was a similar issue identified in the past, which has been resolved in versions of Yoast SEO later than 20.3. For more detailed information on this, please refer to the Errata page provided.

- https://wpml.org/errata/yoast-seo-canonical-link-is-incorrect-on-paginated-pages-in-second-language-when-using-language-as-a-parameter/

I hope this guidance helps in rectifying the issue. If you encounter any difficulties or if the problem persists, please do not hesitate to get in touch for further assistance.

Best regards,
Prosenjit

Screenshot 2024-01-18 165102.png
January 19, 2024 at 10:30 am #15204128

aleksandraJ

This is exactly what the issue was. It worked fine before the latest Elementor update though.

I changed the formad to different languages in directories and it works just as it should.

Thank you for your help Prosenjit!