Problem:
The client is experiencing 500 Internal Server Errors on translation pages (/ru and /en) when WPML Multilingual CMS is active. The issue persists despite disabling other plugins, updating permalinks, and checking .htaccess configurations.
Problem: You are experiencing issues where the formatting, including 'enters'/white spaces, is missing on your translated pages. Additionally, shortcodes that work on the original version of your site do not function on the translated pages. Solution: We recommend trying the workaround provided in the WPML errata for issues related to line breaks being ignored in the Advanced Translation Editor. You can find the specific steps and more details here: WPML Errata on Line Breaks. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, if you need further assistance, please open a new support ticket at WPML Support Forum.
Problem: The client is facing an issue where custom links in the menu are not translated correctly from German to English using ATE. The links appear as /?product_cat=vehicle-type-car instead of the expected translated format like https://www.valtron.de/en/c/rear-view-cameras/f/vehicle-type-car/.
Solution: We recommend adding the following code to the end of your
functions.php
file to address the issue:
// WPML Workaround for compsupp-7532
function wpml_compsupp7532_add_custom_blacklist_requests( $blacklist, $sitepress ) {
// Add your custom request to the blacklist array
// We can hardcode URL's, like:
//$blacklist[] = "c/rear-view-cameras/f/vehicle-type-truck";
// Or use REGEX. This regex should match slugs like "c/(any slug here)/f/(any slug here)" - we may need to adapt it if needed
$blacklist[] = '/^c\/[^\/]+\/f\/[^\/]+\/?$/';
return $blacklist;
}
add_filter( 'wpml_sl_blacklist_requests', 'wpml_compsupp7532_add_custom_blacklist_requests', 10, 2 );
After adding the code, save the file, make a small modification to the block content, and save. Then, update the translations. You may need to re-translate the links.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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. If further assistance is needed, please open a new support ticket at WPML support forum.