This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues when switching your site's language from German to English, particularly on the homepage, and encountering a timeout error, the problem might be related to your theme settings. Additionally, if your header and footer translations are sometimes not working, this could also be linked to the same issue.
Solution:
We found that the issue occurs only when both the Child Theme and Elementor Pro are active. Switching to the parent theme resolves the issue, indicating a problematic function in your Child Theme's code. We recommend commenting out the following code in your Child Theme:
function custom_shop_footer_output() {<br /> if (!function_exists('elementor_theme_do_location') || !elementor_theme_do_location('footer')) {<br /> get_footer('shop');<br /> }<br />}<br />add_action('wp_footer', 'custom_shop_footer_output');
This function likely causes an endless recursion leading to a timeout because it repeatedly calls itself. We suggest that you or your developer revise this function to prevent further errors.
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket.
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 4 replies, has 0 voices.
Last updated by 1 month, 2 weeks ago.
Assisted by: Lucas Vidal de Andrade.