I have a new OJS installation of version 3.3.0.3. I get a blank section when I click on “journal” under settings. Masthead and Contact tabs are blank but Sections and Categories show their content.
The error I am seeing in the browser console is TypeError: e.availableLocales is null
in the file build.js
Why is availableLocales
coming up empty?
I have the setting locale = en_US
in the config file and English is set as the primary locale in site settings
The error log has the following lines repeated severally.
[Thu Feb 11 16:59:35.354615 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: array_merge(): Expected parameter 2 to be an array, null given in ...\\ojs\\lib\\pkp\\classes\\template\\PKPTemplateManager.inc.php on line 702 [Thu Feb 11 16:59:35.354615 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: array_unique() expects parameter 1 to be array, null given in ...\\ojs\\lib\\pkp\\classes\\template\\PKPTemplateManager.inc.php on line 707 [Thu Feb 11 16:59:35.354615 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: array_filter() expects parameter 1 to be array, null given in ...\\ojs\\lib\\pkp\\classes\\template\\PKPTemplateManager.inc.php on line 710 [Thu Feb 11 16:59:35.354615 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: array_values() expects parameter 1 to be array, null given in ...\\ojs\\lib\\pkp\\classes\\template\\PKPTemplateManager.inc.php on line 711 [Thu Feb 11 16:59:35.508305 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: Invalid argument supplied for foreach() in ...\\ojs\\lib\\pkp\\classes\\services\\PKPSchemaService.inc.php on line 573 [Thu Feb 11 16:59:35.508305 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: Invalid argument supplied for foreach() in ...\\ojs\\lib\\pkp\\classes\\services\\PKPSchemaService.inc.php on line 573 [Thu Feb 11 16:59:35.508305 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: Invalid argument supplied for foreach() in ...\\ojs\\lib\\pkp\\classes\\services\\PKPSchemaService.inc.php on line 573 [Thu Feb 11 16:59:35.508305 2021] [php7:warn] [pid 16964:tid 1912] [client 127.0.0.1:54145] PHP Warning: Invalid argument supplied for foreach() in ...\\ojs\\lib\\pkp\\classes\\services\\PKPSchemaService.inc.php on line 573
It is definite locales are not being set correctly.
NB: Opened an issue here [OJS] 3.3.0.3 TypeError: e.availableLocales is null · Issue #6749 · pkp/pkp-lib · GitHub