After OJS2 upgrade to OJS3 we are having some problem with language.
Can’t add new Article, because Submission Language drop-down menu is empty and the field is required:
[16-Apr-2018 11:42:58 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 126
[16-Apr-2018 11:42:58 UTC] PHP Warning: array_shift() expects parameter 1 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 126
[16-Apr-2018 11:42:58 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 130
[16-Apr-2018 11:42:58 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 130
[16-Apr-2018 11:42:58 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 130
[16-Apr-2018 11:42:58 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /webpages/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 130
Hmmm… That is strange…
Did you upgrade to the latest 3.1.1 version? What OJS 2 version did you have?
Did you have any warnings/error during the upgrade?
What do you have in your OJS 2 and OJS 3 database table site, columns primary_locale, installed_locales, supported_locales, as well in your table journal_settings where setting_name = ‘supportedFormLocales’, ‘supportedLocales’, ‘supportedSubmissionLocales’?
OJS2 and OJS3 database in journal_settings only ‘supportedLocales’ exists, no setting_names like ‘supportedFormLocales’ or ‘supportedSubmissionLocales’. Should I add manually these settings?
Hmmm… Strange… I have no idea at the moment what is happening…
Could you maybe try to clear cache and try the submit form again and see in the error log file if the warning are the same?
I deleted post bcs. i realized language was not set for “Submissions” and “Forms” in Settings → Website → Languages. After i set it, it was ok. However “Submission Requirements” are gone in other language. I have them only in english. Not sure why.