We have several contexts for multi language site. This worked on Modx 2.7 for a year and also on MODX3 & php8.1 since 1 Jan 2023 using Babel and Xrouter.
Suddenly all the pages in the contexts (apart from web) are showing as 404. I also get 404 when trying to access the context pages via index.php?id=xxx. There are no errors or warnings logged.
Each context has anonymous (member and load only) and administrator. Babel & Xrouter are providing the correct URLS.
Thanks, I’ve tried this, but it doesn’t work. Using the debug option in xrouting shows the right context (it) and the right page, but the page loading is the error page for ‘web’ context (not the error page for ‘it’). If I add $contextKey = ‘it’ just before initialize context in index.php, it works.
The pages are still working OK on localhost - the debug page is exactly the same as the online debug page. So are all the context settings and permissions…