Issue on the upgrade from OJS to


I’m testing the upgrade from OJS to And the upgrade fails with the following error:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Illuminate\Database\Query\Builder::cleanBindings() must be of the type array, null given, called in \lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php on line 919 and defined in \lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:3088
Stack trace:
#0 \lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(919): Illuminate\Database\Query\Builder->cleanBindings(NULL)
#1 \lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(946): Illuminate\Database\Query\Builder->whereIn('js.locale', NULL, 'and', true)
#2 \lib\pkp\classes\migration\upgrade\ Illuminate\Database\Query\Builder->whereNotIn('js.locale' in \lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php on line 3088

Thank you very much.

Exactly the same for me…

We also find the same exact problem on upgrading OJS to 3.3.02.
Maybe @NateWr or @asmecher can give some guidance regarding this error.

Hi everyone,

Thanks for reporting! I think I’ve discovered the source of this. I filed an issue (#6710). Can you please look at the PR that is linked in the second comment there, apply the change, and let me know if that fixes the problem for you?

No such line in the specified file

Hi @Serega_SWorld you may have confused the file: at \classes\migration\upgrade
vs file: at lib\pkp\classes\migration\upgrade
As far as I understand, the changes indicated in the post by respected @NateWr affect the 2nd file.
I’m new to this community and could be wrong.

1 Like

Who can help with the upgrade issue?

[Wed Feb 03 08:49:26.024616 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to a member function getConnection() on null in /var/www/www-root/data/www/
[Wed Feb 03 08:49:26.024656 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: Stack trace:
[Wed Feb 03 08:49:26.024661 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #0 /var/www/www-root/data/www/ Illuminate\\Database\\Capsule\\Manager::connection()
[Wed Feb 03 08:49:26.024664 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #1 /var/www/www-root/data/www/ Illuminate\\Database\\Capsule\\Manager::__callStatic('raw', Array)
[Wed Feb 03 08:49:26.024667 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #2 /var/www/www-root/data/www/ DAO->retrieve('SELECT * FROM j...', Array)
[Wed Feb 03 08:49:26.024670 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #3 /var/www/www-root/data/www/ ContextDAO->getByPath('en')
[Wed Feb 03 08:49:26.024673 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #4 /var/www/www-root/data/www/ PKPRouter->getContext(Object(Request), 1)
[Wed Feb 03 08:49:26.024676 2021] [fcgid:warn] [pid 23030] [client] mod_fcgid: stderr: #5 /var/www/www-root/data/www/ PK in /var/www/www-root/data/www/ on line 74

Hi Nate,

The change to fix the bug works fine, now the upgrade finishes successfully!!!

Thank you very much.

Hi @Serega_SWorld,

I see you’ve already posted this elsewhere; please see the response on that thread. (It’s best not to post the same question in several places – it clutters the forum.)

Alec Smecher
Public Knowledge Project Team

There is no solution in that branch. Please explain what to do

I have 3.2.1-4 and need to update and it will display an error, is there a solution ? please help me.
Thank you for earlier!