Home›Support›English Support›[Resolved] update from December 19th - issue with a 500 Internal Server Error
[Resolved] update from December 19th - issue with a 500 Internal Server Error
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a 500 Internal Server Error and had to change the file permissions of your .htaccess file to 444 to prevent it from being modified, it might be due to third-party plugins. Solution: We recommend checking if any third-party plugins are frequently calling the
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 at WPML support forum.
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.
Earlier, I had an issue with a 500 Internal Server Error. I had to change the file permissions for the .htaccess file to 444 to prevent it from modifying the redirects from:
# 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.
# 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.
# END WordPress
I contacted B2B King because this issue occurred at the same time I was installing both your plugin and theirs. They told me it was interesting because they have many websites using WPML and their plugin, and they haven't heard of such an error. However, I sent them links to your forum discussing this issue, and they provided me with the following code:
I added it, and everything worked fine until today when I installed your update from December 19th, and the problem returned despite the active code from B2B King.
I had to restore the .htaccess file and set the file permissions to 444 again — it's really annoying.
How can I fix this?
Symptoms:
I encountered a 500 Internal Server Error. After installing the update from December 19th, the problem returned despite the active code from B2B King. I had to restore the .htaccess file and set the file permissions to 444 again.
Questions:
How can I fix the 500 Internal Server Error after the update?
Why did the problem return despite the active code from B2B King?
Some third-party plugins occasionally call the flush_rewrite_rules(true) function too frequently. This can result in changes to the rewrite rules in your .htaccess file, leading to potential issues on your WordPress site.
Hi, thanks for your message. I’ve actually seen this post before and tried implementing the code—it seemed to work, but when the language was different from the default, there was still an error when logging in and out of the store. However, I can’t reproduce the issue now. Maybe with the code from B2BKing, it’s fine now and working as it should.
For now, it’s working, and I hope it stays that way, so I’ll consider the matter resolved. If needed, can I reopen the topic if I manage to reproduce the error, or should I create a new one then?