Describe the issue or problem:
I recently completed a successful upgrade from OJS 3.3.0.21 to 3.5.0.5. However, I am now encountering several strange issues related to locale routing. The system behaves completely differently depending on the locale path used in the URL, causing inconsistent frontend styling, locking me out of admin pages, and preventing me from saving system settings.
Steps I took leading up to the issue / Specific Symptoms:
- Inconsistent Frontend Styling: The site displays different themes and styles depending on the specific URL accessed.
https://ejournal.unma.ac.id/
https://ejournal.unma.ac.id/index.php/index/id/index
https://ejournal.unma.ac.id/index.php/index/en/index
- Locale-Specific Access Denied: When I attempt to access the Site Administration settings using the Indonesian path (
.../index/id/admin/settings), I am redirected and locked out with this error:
.../index/id/user/authorizationDenied?message=user.authorization.roleBasedAccessDenied
- However, if I access the exact same settings page using the English path (
.../index/en/admin/settings), it works perfectly and I can enter the settings.
- Cannot Save Settings on Base URL: If I access the admin settings via the English path (
.../index/en/admin/settings), I can successfully modify and save the theme. If I access the settings using the base URL without a locale (.../index/admin/settings), the page loads, but the system fails to save my changes when I submit the form.
What application are you using?
- Current version: OJS 3.5.0.5 (Upgraded from 3.3.0.21)
- OS: Linux
- Web Server: LiteSpeed (Apache)
- PHP Version: 8.3.33
- Database Driver: MySQL
- Database Version: 8.0.46
- Proxy/CDN: Cloudflare
I don’t know if this error related to this. but i got this error message
[26-Sep-2026 16:32:06 Asia/Jakarta] InvalidArgumentException: Invalid/unsupported locale "en", default locale restored in /home/ejournalunma/public_html/lib/pkp/classes/i18n/Locale.php:155
Stack trace:
#0 /home/ejournalunma/public_html/lib/pkp/classes/i18n/Locale.php(143): PKP\i18n\Locale->setLocale()
#1 /home/ejournalunma/public_html/lib/pkp/classes/i18n/Locale.php(475): PKP\i18n\Locale->getLocale()
#2 /home/ejournalunma/public_html/lib/pkp/classes/i18n/Locale.php(114): PKP\i18n\Locale->translate()
#3 /home/ejournalunma/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(996): PKP\i18n\Locale->get()
#4 /home/ejournalunma/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(1028): trans()
#5 /home/ejournalunma/public_html/plugins/themes/default/DefaultThemePlugin.php(45): __()
#6 /home/ejournalunma/public_html/lib/pkp/classes/plugins/ThemePlugin.php(131): APP\plugins\themes\default\DefaultThemePlugin->init()
#7 [internal function]: PKP\plugins\ThemePlugin->themeRegistered()
#8 /home/ejournalunma/public_html/lib/pkp/classes/plugins/Hook.php(164): call_user_func_array()
#9 /home/ejournalunma/public_html/lib/pkp/classes/plugins/Hook.php(132): PKP\plugins\Hook::run()
#10 /home/ejournalunma/public_html/lib/pkp/classes/plugins/PluginRegistry.php(143): PKP\plugins\Hook::call()
#11 /home/ejournalunma/public_html/lib/pkp/classes/template/PKPTemplateManager.php(1575): PKP\plugins\PluginRegistry::loadCategory()
#12 /home/ejournalunma/public_html/lib/pkp/classes/plugins/Plugin.php(396): PKP\template\PKPTemplateManager::getManager()
#13 /home/ejournalunma/public_html/lib/pkp/classes/plugins/Plugin.php(134): PKP\plugins\Plugin->_registerTemplateResource()
#14 /home/ejournalunma/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()
#15 /home/ejournalunma/public_html/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.php(93): PKP\plugins\LazyLoadPlugin->register()
#16 /home/ejournalunma/public_html/lib/pkp/classes/plugins/PluginRegistry.php(84): APP\plugins\generic\citationStyleLanguage\CitationStyleLanguagePlugin->register()
#17 /home/ejournalunma/public_html/lib/pkp/classes/plugins/PluginRegistry.php(136): PKP\plugins\PluginRegistry::register()
#18 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()
#19 /home/ejournalunma/public_html/lib/pkp/classes/plugins/PluginRegistry.php(136): array_walk_recursive()
#20 /home/ejournalunma/public_html/lib/pkp/classes/core/Dispatcher.php(147): PKP\plugins\PluginRegistry::loadCategory()
#21 /home/ejournalunma/public_html/lib/pkp/classes/core/PKPApplication.php(429): PKP\core\Dispatcher->dispatch()
#22 /home/ejournalunma/public_html/index.php(21): PKP\core\PKPApplication->execute()
#23 {main}
I have read from another thread about this error. but they just ignored it like in this 98787
Update: Previous Issue Resolved
I wanted to provide a quick update—I managed to solve the initial locale routing, styling, and permission issues. It turned out to be a Cloudflare caching conflict. I had a Page Rule set to “Cache Everything,” which was aggressively caching the localized paths and API endpoints. After disabling that rule and purging the Cloudflare cache, the system is running perfectly.
New Issue: Redirect Loop (ERR_TOO_MANY_REDIRECTS) on Base URL
While troubleshooting, I noticed a discrepancy in how locale redirects are handled between two different OJS installations I manage.
Case 1 (Working correctly):
When I access the base URL https://journals.eduped.org/, the system automatically and successfully redirects to the default locale path https://journals.eduped.org/index.php/index/en and displays the homepage normally.
Case 2 (Failing - Redirect Loop):
When I try the exact same thing on my other site, https://ejournal.unma.ac.id/, it attempts to redirect to the English locale but fails. It gets stuck in an infinite loop, constantly bouncing back and forth between https://ejournal.unma.ac.id/index.php/index/en and https://ejournal.unma.ac.id/index.php/index/. The browser eventually kills the request with this error:
ejournal.unma.ac.id redirected you too many times.
Try deleting your cookies.
ERR_TOO_MANY_REDIRECTS
I have checked setting on Cloudflare and config between the two. They are the same setting.