I have been trying to debug a site for hours, with the problem being content sorting returning results in the default site language. It all comes down to WPML ignoring the browsing language when I am performing the content sorting.
It seems like the language filtering for AJAX operations, which stores a language cookie to support language filtering for AJAX is broken. I’ve tested it on a staging site, with all the languages that there are available in the production installation. I’ve disabled all plugins but the 3 WPML ones (WPML Multilingual CMS, WPML String Translation, and WPML Widgets), the WP Bakery Builder and the theme core plugin extension. I’ve tried switching to a default WP theme, and the installation throws a critical error, even on health check mode. I tried both with Twenty-Twentyfour which came with the installation I got involved with, and with the Twenty-Twentythree which I installed on my own to test with an older default theme ad hoc. I’ve verified that both the WP Checksums are okay, and I’ve re-installed the WP Core just in case. None of that has helped any in activating any other theme than the one the site came with. I don’t know what could be blocking me from doing so.
I’ve tried with all PHP versions available on the server. I am now working with 8.1. I’ve checked everything again and again, both before and after updating WPML Multilingual CMS (originally noticed the error on version 4.6.6 and then updated to 4.6.9) and before and after updating WPML String Translation (originally noticed the error on version 3.2.8, and then updated to 3.2.9). WPML Widgets was and is on 1.0.6. I’ve also tried this on Chrome Version 121.0.6167.184 (Official Build) (64-bit) and on Firefox 123.0 (64-bit).
I don’t know if I have overlooked something critical. Any help would be much appreciated.
​
[ad_2]
Have you tried contacting WPML support?