This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an 'Internal Server Error' that occurs randomly when navigating their site. The error seems to be resolved when the 'WPML Multilingual CMS' plugin is deactivated.
Solution: We recommend the following steps to address the issue: 1. Ensure to back up the site for safety reasons. 2. Add the following code to the
3. Re-save the permalinks from the Settings >> Permalinks page by pressing the 'Save Changes' button. 4. Delete all types of caches including site/server cache, plugin cache, CDN cache, and clear the browser cache.
If the solution provided here is not relevant 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 the issue persists, please do not hesitate to open a new support ticket with us.
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.
Error message "internal server error" keeps popping up during navigation. It appears randomly, maybe 1 every 10 times that I enter a new page within my site.
After clearing caché, deactivating and reactivating plugins, etc. the problem is fixed only when I deactivate "WPML Multilingual CMS" plugin (4.6.9 installed). If deactivated, then everything is ok. When I reactivate, the problem happens again.
4. This issue might also be caused by incompatibility or not 100% compatibility between WPML and (at least) one of the active plugins or the active theme.
Can you please try to see if this issue happens even when only the WPML plugins are active and you are using a default WordPress theme?
Please try the following steps so that we can test for a compatibility-related issue:
- create a full website backup
- disable all plugins except WPML and its add-ons
- check if the issue is happening again
- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue
If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated
- switch to a default theme like TwentySeventeen
- try to recreate the issue now
If you have the chance, it would be best to do this in a staging (testing) environment.
I hope that you will find this information helpful.
I have gone through all the recommendations in your email and I am still having the same problem: “Internal server error” message appears as I navigate through my website.
- I have changed the “Salient” Theme to” Twenty twenty-four” and the problem persists aprox. 1 to 2 out of 10 times I open a new page while navigating.
- I have disabled all plugins, and the problem only appears when I activate “WPML Multilingual CMS”
- All plugins and theme updated
- I have checked everything mentioned in your email and all seems to be ok.
o WordPress 6.4.3
o PHP 8.3.2
o MariaDB 10.5
o WPML multilingual CMS 4.6.9
o Memory Limit 256M
o Memory limit: 256M
o REST Activated: yes
o SimpleXML extension loaded
o Multibyte String extension loaded
o All plug-ins are up to date
See screenshot attached (in Spanish)
- For some reason I couldn't’ create the debug.log after adding
the debug.log file would not show up in /wp-content/ directory.
- However, when the “internal server error” happens, on apache.error.log, I read the following:
[Sat Mar 09 18:05:00.946448 2024] [core:error] [pid 174729:tid 139668368615168] [client 77.224.184.59:0] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
- After doing a back-up of .htaccess and renaming the original file, the problem persists.
The new .htaccess says:
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I don’t know what else can I try. It appears that the problem is on the “ WPML Multilingual CMS” plugin, as the “internal server error” only comes up when this plugin is on.
Thank you for contacting WPML Support. Based on the details you provided, it appears that the issue may be related to specific plugins or themes on your site. To address this, could you please follow the below steps and see if this resolves your issue:
1. Please take a backup of your site first for safety reasons.
2. Please add the below code in the functions.php file of your theme:
3. Please re-save the permalinks from the Settings >> Permalinks page by pressing the Save Changes button and see if this resolves your issue.
4. Please delete all sorts of caches on your site/server cache if any / plugin cache / CDN cache, clear the browser cache, and then see if it resolves the issue afterward.
Apparently, your recommendation worked great. I can now navigate with no errors.
Thank you so much for your quick reply, especially on a Sunday 😄
Best regards,
Enrique
Manage Cookie Consent
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.