This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where all links on the translated version of their site lead to an error 500, although these links work fine when opened in a new tab. There are no PHP or WordPress errors showing in the debug logs.
Solution:
First, we recommend ensuring that debugging is properly enabled in WordPress. To do this, open your
wp-config.php
file and locate the line
define('WP_DEBUG', false);
. Change it to:
define('WP_DEBUG', true);
Additionally, to log these errors to a file, add:
define('WP_DEBUG_LOG', true);
This will save the errors to a debug.log file inside the /wp-content/ directory. For more details on debugging WPML, visit https://wpml.org/documentation/support/debugging-wpml/.
If after enabling detailed logging you still do not see any errors, the issue might be related to .htaccess being overwritten by WPML settings for language directories. You can find more information and a potential workaround here: https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/.
Please ensure to back up your database before making any changes.
If this solution does not resolve your issue or seems irrelevant, 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 the problem persists, 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.
This topic contains 1 reply, has 0 voices.
Last updated by 3 months, 1 week ago.
Assisted by: Andrey.