I’ve got a pretty weird behavior on my site that I’d like to resolve.
From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 error shows on the front pages, the admin pages are still usable.
I’ve found by chance a way to fix this: by going to the Permalinks settings page (
/wp-admin/options-permalink.php) without submitting anything! The simple fact of going to this page resolves the error.
I’ve noticed that
options-permalink.php is calling this url:
with this response:
But I don’t know how there could be a relationship between the 2...
FYI, I’ve recently migrated from one hosting provider to another so it may be a configuration problem on the server because there wasn't any error back then.
Thanks for your time! Any help appreciated :-)
Update after @vancoder suggestion: I made a diff between the 2 versions of .htaccess file before and after the problem occurs:
RewriteBase / RewriteRule . /index.php [L]
Non working site:
RewriteBase /fr/ RewriteRule . /fr/index.php [L]
My site is multilingual based, but with only the french language set for now. Do you know which plugin could be the culprit (WPML? Really Simple SSL?) ? Have any of you encountered the same problem before?
FYI, here's the list of all my activated plugins:
- Contact Form 7
- Contact Form 7 to Hubspot
- Cookie Notice & Compliance for GDPR / CCPA
- Facebook for WooCommerce
- HubSpot All-In-One Marketing - Forms, Popups, Live Chat
- HubSpot for WooCommerce
- ImageMagick Engine
- Porto Theme
- Really Simple SSL
- Site Kit by Google
- WooCommerce Google Analytics Integration
- WooCommerce Multilingual
- WooCommerce Shipping & Tax
- WooCommerce Stripe Gateway
- WordPress Zero Spam
- WPML Media
- WPML Multilingual CMS
- WPML String Translation
- WPML Translation Management
- WP Super Cache
- WPvivid Backup Plugin
- Yoast SEO
- Yoast SEO Multilingual
Thanks again for your help!