agenceplay
Forum Replies Created
-
Hi,
I have the same problem as Alex, on my website.
I’ve been able to track it down to the the flush_rewrite_rules call too, and that led me on this support page.To reproduce the issu :
– WordPress 4.3.1 with permalink set to “post name” and default theme
– Wpml 3.2.7 with english as default language and another language ( FR for my case )
Language URL format set to “directories” in languages settings
– Json Rest API 1.2.3
– And of course WP OAuth Server 3.1.7 ( but it was the same with 3.1.8 )If all of that is set, then the htaccess keeps being written and overwritten.
For exemple, if i go the a translated page like test.com/fr/contact, the htaccess is overwritten with /fr/ for the RewriteBase.
Then every page of my website produce a 500 Internal Server Error until i load any admin page and then i can navigate the website again until i go to a translated page…The patch suggested by Alex is working for me except those 3 lines that i commented :
$wo_rw = new WO_Rewrites;
$wo_rw->create_rewrite_rules();
$wo_rw->flush_rewrite_rules();Don’t hesitate if you have any question Justin i would be happy to help !
Take care
Thibaut