Background of the issue:
I am trying to use the front end automatic translation feature on my site hidden link. I followed the documentation for automatic translation using the new automatic translation feature.
Symptoms:
I started getting a fatal error when I switch the language from English to Arabic.
Before your ticket is assigned to one of my colleagues, I'd like to guide you through some initial debugging steps to speed up the support process.
1. I tried to visit your site and it seems the site is in coming soon mode. Are you facing this issue in particular products or do all Arabic pages/products have the same issue?
2. Could you please enable error reporting on your site as we need to see the details of the latest error log to understand the cause of the issue better. To enable it, open your ‘wp-config.php’ file and look for ‘define(‘WP_DEBUG’, false);’. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define( 'SCRIPT_DEBUG', true );
After adding the above code, please try reloading the backend/frontend again, and if this process creates a debug.log file in your site's wp-content directory. Please send us its contents.
i have tried to find find the culprit string or strings but couldn't. can you please help and show me the proper way to format the Arabic translation for these kind of strings.
I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
I will try to see if I can find the problematic string.
Thank you for your patience. We do our best here to see if we can find the reason the issue is happening.
What we have found for now is that a file called elementor-pro-ar.mo had problems and as soon as the file is removed the inner pages for the Arabic version of the website work ok:
hidden link
But the homepage AR version does not work correctly.
This will need more investigation and that means we can not do it on a live website.
We either need you to create a staging/copy version of the website so we can do an investigation or you give us permission to copy your website to our server to check.
the first line of action would be checking a minimal installation:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
If you decide to provide us a copy of the website please set the next reply as private.
Just for your information, this will take time as we need to do many tests and troubleshooting to be able to find out why the homepage specifically has the issue. But the other pages seems to be working ok
Thank you very much for the login information. Unfortunately, the server protection info is not working.
I understand that this is urgent and I want to do my best to speed up the process, Would you please check the information you share ot make sure you added them correctly?
If it will speed up the process we can copy your website to our server via cloudways if you give us permission.