Error 3.4.0-8 to 3.5.0.0

hello I made the update in a subdirectory of my work, using a copy of the db clearly on another table than the production site.
everything went well, I only then have this error that I report

what does it depend on?

Fatal error : Uncaught Illuminate\Encryption\MissingAppKeyException: No application encryption key has been specified. in /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:83 Stack trace: #0 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/helpers.php(399): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}() #1 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(81): tap() #2 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(64): Illuminate\Encryption\EncryptionServiceProvider->key() #3 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(32): Illuminate\Encryption\EncryptionServiceProvider->parseKey() #4 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(952): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}() #5 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(832): Illuminate\Container\Container->build() #6 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(763): Illuminate\Container\Container->resolve() #7 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(1133): Illuminate\Container\Container->make() #8 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(1043): Illuminate\Container\Container->resolveClass() #9 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(994): Illuminate\Container\Container->resolveDependencies() #10 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(832): Illuminate\Container\Container->build() #11 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Container/Container.php(763): Illuminate\Container\Container->resolve() #12 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(198): Illuminate\Container\Container->make() #13 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() #14 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/classes/core/Dispatcher.php(179): Illuminate\Pipeline\Pipeline->then() #15 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/classes/core/Dispatcher.php(114): PKP\core\Dispatcher->initSession() #16 /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/classes/core/PKPApplication.php(426): PKP\core\Dispatcher->dispatch() #17 /web/htdocs/amq.aiqua.it/home/ojs350/index.php(21): PKP\core\PKPApplication->execute() #18 {main} thrown in /web/htdocs/amq.aiqua.it/home/ojs350/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php on line 83

Hi @simgiallorosso,

The upgrade script should’ve introduced an application key into your config.inc.php file during upgrade; do you see an app_key setting in the [general] section? If not, did you see anything during upgrade about it? If I remember right, in cases where the upgrade script doesn’t have permission to add that entry, it’ll tell you during upgrade.

Regards,
Alec Smecher
Public Knowledge Project Team

no it was not inserted in config.inc.php and it did not report anything strange to me during the update

Hi @simgiallorosso,

You can generate an application key after the upgrade using the lib/pkp/tools/appKey.php tool.

Regards,
Alec Smecher
Public Knowledge Project Team

I launched a cron on aruba where I have the site, not having a panel.
it was executed.

in general section there isnt the line

can i manually insert the string in config.inc.php?

Hi @simgiallorosso,

Yes, you can manually add it to config.inc.php. (If you are running OJS on your own machine, for example, you could generate an API key there, then add it to the config.inc.php of your production install. As long as you don’t re-use the same API key for multiple installs, that’s fine.)

Regards,
Alec Smecher
Public Knowledge Project Team

hi @asmecher


How Fix This Problem sir when upgrade form ojs 3.4 to ojs 3.5

You may try to fix the issue by referring to: Fix strim quotes by thuanhuynhh · Pull Request #11530 · pkp/pkp-lib · GitHub

1 Like


Why is the code different?

incorrect dir
true dir :
lib/pkp/classes/migration/upgrade/v3_5_0/I9425_SeparateUIAndSubmissionLocales.php

2 Likes

it works!
thanks!!!

1 Like

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