Skip to content Skip to sidebar

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

Problem:
You are setting up WPML for the first time and encounter issues where the translation management does not display existing pages, the status remains on 'loading pages...', and you cannot select a translation language from the language switcher.
Solution:
If you're experiencing this issue and are unable to upgrade your PHP version, we recommend you try the following steps:
1. Navigate to the file at

wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/Port/Hook/PostsFilter.php

2. Locate the line:

private TranslationEditorMode $translationEditorMode;

3. Change it to:

private $translationEditorMode;

This modification might resolve the issue with loading pages and the inability to select translation languages. However, this solution could become irrelevant due to updates or it might not apply to your specific case. If the problem persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket at WPML support forum 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 0 reply, has 0 voices.

Last updated by procurementT 9 months, 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
March 6, 2025 at 10:29 am

procurementT

Background of the issue:
I am trying to set up WPML for the first time on my site hidden link. I have installed the WPML Multi MS plugin 4.7.1 and string translation 3.3.1 on WordPress 6.7.2 with PHP 7.3.33. I have selected two Chinese translation languages and met all minimum requirements of WPML. I have our own translation text ready and am not relying on auto translation.

Symptoms:
Under translation management, it does not show any existing pages, and the status is 'loading pages...'. I can't see any translation status, and it seems it's not even started yet. The language switcher is added to the website, but there is no translation language I can choose from.

Questions:
Why are existing pages not showing under translation management?
Why is the translation status not starting?
Why can't I choose a translation language from the language switcher?

March 6, 2025 at 1:31 pm #16783629

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

It looks like you're using PHP 7.3.3, while some parts of our code might require at least PHP 7.4. This could be causing the issue. Would you be able to update PHP and see if that helps?

March 6, 2025 at 1:49 pm #16783740

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

If you are not able to raise PHP version, can you try this:

1. Navigate to:

wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/Port/Hook/PostsFilter.php

2. Locate this line:

  private TranslationEditorMode $translationEditorMode;

3. Change it to:

   private $translationEditorMode;
March 6, 2025 at 4:32 pm #16784689

procurementT

upgraded to php 7.4 and the list is coming up and no longer it was loading.