Skip Navigation

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

Problem:
You are trying to manually translate English pages to Arabic using Elementor, but encounter an issue where the preview does not load, even in safe mode. The only workaround seems to be starting the Arabic page from scratch.
Solution:
We have identified that the presence of an '/ar' folder in the root WordPress directory is causing the issue with WPML. To resolve this, you should remove the '/ar' folder from the root directory. This adjustment should allow the WPML to function correctly without needing to start your Arabic page from scratch.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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 15 replies, has 2 voices.

Last updated by Bruno Kos 7 months, 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
September 5, 2024 at 8:41 am

Ahmed Sabbour

Background of the issue:
I am trying to manually translate English pages to Arabic using Elementor on my site hidden link. I have followed the documentation provided by WPML.

Symptoms:
When I try to manually translate English pages to Arabic using Elementor, it shows 'preview could not be loading' even if activating the safe mode. The only way it works is when I start the Arabic page from scratch.

Questions:
Why does the manual translation with Elementor show 'preview could not be loading'?
How can I fix the issue without starting the Arabic page from scratch?

September 5, 2024 at 9:28 am
September 6, 2024 at 7:12 am #16147438

Bruno Kos
WPML Supporter since 12/2018

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

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

Can you please try the following:

1. Temporarily rename the `wp-content/languages` folder to something like `languages2` to bypass the `.mo` files.
2. Ensure you have tested with a minimal setup (e.g., default theme and no plugins) to rule out any conflicts.

Let me know if these steps help resolve the issue.

September 6, 2024 at 12:54 pm #16149124

Ahmed Sabbour

Hello, both requests done without any new results., please advice

September 7, 2024 at 12:12 am #16150579

Ahmed Sabbour

i found something, all pages translated fine only the home page has the problem, i even created new page and translated fine but once i made it home page elementor stop working again in the translated page.

September 9, 2024 at 5:56 am #16153519

Bruno Kos
WPML Supporter since 12/2018

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

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

Does the Home page work if you try another theme and disable all the other plugins apart from Elementor and WPML? Maybe something withing the theme or plugins overwrites this.

September 10, 2024 at 10:55 pm #16163836

Ahmed Sabbour

at any theme without plugins home page not work, i have to finish page translation then assign it as home page this is a temp solution until found solution.

September 11, 2024 at 6:19 am #16164326

Bruno Kos
WPML Supporter since 12/2018

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

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

The Homepage has the "WPML Translation Editor" set as the translation method". Can you switch the setting to "WordPress Editor" and test again?

wpml translation editor.jpg
September 11, 2024 at 9:00 am #16165267

Ahmed Sabbour

yes i tried this, the translation editor is working and i filled all the translations but when load the home page in Arabic it show white screen hidden link

September 11, 2024 at 9:16 am #16165384

Bruno Kos
WPML Supporter since 12/2018

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

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

Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced.

1. Edit wp-config.php and insert the following lines (just before /* That's all, stop editing! Happy publishing. */ part)

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', false);

2. Reproduce the issue - open hidden link

3. Locate the debug log in: /wp-content/debug.log

4. Paste the latest lines here. No need to paste the entire log file, just 20 lines or so will do. Please censor any sensitive information.

September 11, 2024 at 9:32 am #16165486

Ahmed Sabbour

debugging already active, but no error appeared, here is the log content:
[08-Sep-2024 10:48:14 UTC] Cron reschedule event error for hook: nfd_data_sync_cron, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":"minutely","args":[],"interval":60}
[08-Sep-2024 10:48:14 UTC] Cron unschedule event error for hook: nfd_data_sync_cron, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":"minutely","args":[],"interval":60}
[08-Sep-2024 10:48:15 UTC] Cron reschedule event error for hook: nfd_data_sync_cron, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":"minutely","args":[],"interval":60}
[08-Sep-2024 22:04:09 UTC] Automatic updates starting...
[08-Sep-2024 22:04:09 UTC] Automatic updates complete.
[09-Sep-2024 09:36:15 UTC] Automatic updates starting...
[09-Sep-2024 09:36:15 UTC] Automatic updates complete.
[09-Sep-2024 22:27:21 UTC] Automatic updates starting...
[09-Sep-2024 22:27:21 UTC] Automatic updates complete.
[10-Sep-2024 10:20:15 UTC] Automatic updates starting...
[10-Sep-2024 10:20:15 UTC] Automatic updates complete.
[10-Sep-2024 21:35:30 UTC] Automatic updates starting...
[10-Sep-2024 21:35:30 UTC] Automatic plugin updates starting...
[10-Sep-2024 21:35:30 UTC] Upgrading plugin 'elementor'...
[10-Sep-2024 21:35:33 UTC] Plugin 'elementor' has been upgraded.
[10-Sep-2024 21:35:35 UTC] Scraping home page...
[10-Sep-2024 21:35:35 UTC] '###### wp_scraping_result_start:88463ab82d66259b8c5802d4c9afecd8 ######
true
###### wp_scraping_result_end:88463ab82d66259b8c5802d4c9afecd8 ######
'
[10-Sep-2024 21:35:35 UTC] The update for 'elementor' has no fatal errors.
[10-Sep-2024 21:35:35 UTC] Automatic plugin updates complete.
[10-Sep-2024 21:35:35 UTC] Automatic updates complete.

Screenshot 2024-09-11 123736.png
September 11, 2024 at 10:39 am #16165926

Bruno Kos
WPML Supporter since 12/2018

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

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

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.

September 11, 2024 at 11:13 am #16166062

Ahmed Sabbour

Sure, Duplicator is already installed feel free to do

September 11, 2024 at 12:03 pm #16166309

Bruno Kos
WPML Supporter since 12/2018

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

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

This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

September 11, 2024 at 1:04 pm #16166564

Bruno Kos
WPML Supporter since 12/2018

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

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

We found that you have /ar folder and this will not work with WPML. You have to remove it.

There should be no folder in root WordPress folder with the language code.

ar.png