OJS 3.5 error when change the language

Describe the issue or problem
When change the language the ojs 3.5 give the error → Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /lib/pkp/classes/core/PKPPageRouter.php:568

Hi, can you check the config.inc.php file’s config named allowed_hosts under the general section to see if that is enable (not commented out) with proper value set . if not , enabling and setting it should resolve this .

However , I think it’s acceptable that the allowed_hosts can be disable and code need handle that case . Hopefully a fix will be introduced in next release .