Problem: The client is experiencing an Internal Server Error on their multilingual WordPress site when clicking any menu items, with logs indicating excessive internal redirects.
1
AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion'to increase the limit ifnecessary. Use 'LogLevel debug'to get a backtrace., referer:...
Solution: We recommend checking the .htaccess file to ensure it follows the default WordPress configuration. If necessary, delete the .htaccess file, save the permalinks to generate a new .htaccess file, and then add the workaround provided in our documentation to the theme's functions.php file.
Here are the steps to follow: 1. Verify the .htaccess file against the default WordPress configuration found here: WordPress .htaccess documentation. 2. If the .htaccess file is incorrect, delete it and save the permalinks in WordPress to create a new one. 3. Add the workaround from our errata page to your theme's functions.php file: WPML .htaccess workaround.
Additionally, increase the WP Memory Limit by adding the following code to your wp-config.php file:
1
2
define( 'WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');
Make sure to place these lines before the 'That's all, stop editing! Happy publishing.' comment.
Also, ensure that WPML is updated to the latest version.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.