Issue on the upgrade from OJS 3.2.1.2 to 3.3.0.2

Hi,

I’m testing the upgrade from OJS 3.2.1.2 to 3.3.0.2. 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\PKPv3_3_0UpgradeMigration.inc.php(191): 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.
Regards

Exactly the same for me…

We also find the same exact problem on upgrading OJS 3.2.1.3 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:
OJSv3_3_0UpgradeMigration.inc at \classes\migration\upgrade
vs file:
PKPv3_3_0UpgradeMigration.inc 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 144.76.3.131:52974] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to a member function getConnection() on null in /var/www/www-root/data/www/sworldjournal.com/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74
[Wed Feb 03 08:49:26.024656 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: Stack trace:
[Wed Feb 03 08:49:26.024661 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #0 /var/www/www-root/data/www/sworldjournal.com/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(200): Illuminate\\Database\\Capsule\\Manager::connection()
[Wed Feb 03 08:49:26.024664 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #1 /var/www/www-root/data/www/sworldjournal.com/lib/pkp/classes/db/DAO.inc.php(65): Illuminate\\Database\\Capsule\\Manager::__callStatic('raw', Array)
[Wed Feb 03 08:49:26.024667 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #2 /var/www/www-root/data/www/sworldjournal.com/lib/pkp/classes/context/ContextDAO.inc.php(63): DAO->retrieve('SELECT * FROM j...', Array)
[Wed Feb 03 08:49:26.024670 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #3 /var/www/www-root/data/www/sworldjournal.com/lib/pkp/classes/core/PKPRouter.inc.php(252): ContextDAO->getByPath('en')
[Wed Feb 03 08:49:26.024673 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #4 /var/www/www-root/data/www/sworldjournal.com/lib/pkp/classes/core/PKPRequest.inc.php(760): PKPRouter->getContext(Object(Request), 1)
[Wed Feb 03 08:49:26.024676 2021] [fcgid:warn] [pid 23030] [client 144.76.3.131:52974] mod_fcgid: stderr: #5 /var/www/www-root/data/www/sworldjournal.com/classes/core/Request.inc.php(64): PK in /var/www/www-root/data/www/sworldjournal.com/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 74

Hi Nate,

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

Thank you very much.
Regards

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.)

Regards,
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 3.3.0.2 and it will display an error, is there a solution ? please help me.
Thank you for earlier!