irastr
Forum Replies Created
-
If anyone will have the same problem: we found the solution in a completely different place. Here – on a WPML support page the problem was explained and after using the given workaround we were able to get rid of the problem:
https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/
In certain cases, the .htacess may get overwritten with the language folder. However, this issue is not caused by WPML.
The problem actually comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess. However, in some cases, this happens so often, sometimes even on every page request, that it’s called while browsing the front-end in another language.
When this happens, WPML goes ahead and adds the language folder to home_url as usual. This, however, results with an incorrect RewriteBase in .htaccess and ends up breaking the front-end.
- This reply was modified 1 year, 1 month ago by irastr.
Hi Nebu John,
yes, I confirm that https://www.ads-software.com/plugins/cf-geoplugin/ is the correct plugin that I mentioned.
I checked the debug.log file after enabling WP_DEBUG_LOG but I only see some PHP Warnings there, no PHP Error.
The message we got in the browser (on a white screen) when the error occurs is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at xxxx@xxxxxxx.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Any ideas how we can proceed investigating? What and where to look for?
Best,
Irina