OJS 33010 - Error: PHP message: Array to string conversion in ../core/PKPString.inc.php

Description of issue or problem I’m having:
On submissions panel page, ojs shows ‘: Array’ after the description of Archived Submissions. As shown in the picture below.

Steps I took leading up to the issue:
I upgraded with success from 3.1.2-1 to 3.3.0-10. (going through the version 3.2.1-4)

What I tried to resolve the issue:
a) Found this help request probably for the same problem, in the same file, requested by @geniusdesign : https://forum.pkp.sfu.ca/t/ojs-3307-an-unexpected-error-has-occurred-array-to-string-conversion-in-core-pkpstring-inc-php-on-line-421/69243/2
He said that resolved setting a locale not null at submissions table.
I couldn’t try it because all my data on column locale is NULL. So I haven’t a example for seeing how is the standard.
This topic is already closed.

b) I also tried run php tools/rebuildSearchIndex.php, but after 12 hours it didn’t finished. So I stopped it.

Application Version - e.g., OJS 3.1.2:
OJS 3.3.0-10

Additional information: screenshots and error log message:

2022/04/05 12:12:35 [error] 12154#12154: *1 FastCGI sent in stderr: "PHP message: PHP Notice: Array to string conversion in ./lib/pkp/classes/core/PKPString.inc.php on line 436PHP mess>

2 Likes

It really can be solved just to updating locale collumn from NULL to a valid locale, how was informed in https://forum.pkp.sfu.ca/t/ojs-3307-an-unexpected-error-has-occurred-array-to-string-conversion-in-core-pkpstring-inc-php-on-line-421/69243

For example: (for my country)
UPDATE submissions s SET s.locale = 'pt_BR' WHERE locale IS NULL

1 Like

This topic was automatically closed after 6 days. New replies are no longer allowed.