OMP 3.3.0.11: Error in setting Cover Image Max size

Hello. If I try to change Cover Image Max Width and Cover Image Max Height (Settings > Website > Advanced) I get an Unexpected Error warning and it doesn’t save the changes (now the covers are too small: 106 x 100). How can this be corrected? In which configuration file can this be done? Can someone please help me? Thank you!

Hi @Fulvio_Delle_Donne,

Can you share a screenshot of the error message?

-Roger
PKP Team

Thank you for your kind reply. Unfortunately the site crashed, by installing the GoogleAnalytics plugin (HTTP ERROR 500). I hope to restore it by installing OMP once again. The Public and Plugins folders were not fully rewritable (I have to wait for advanced privileges from the system administrator, to make them rewritable).
Fulvio

Hi, Roger. I restored the OMP 3.3.0.11. Here is a screenshot of the error. Public and Plugins directories are rewritable.
Thank You.
Fulvio
Screenshot

Now OMP doesn’t apply my stylesheet.css.
Fulvio

Hi @Fulvio_Delle_Donne,

Hmm… not sure what is going on here. Are you able to access your PHP error logs and can provide any relevant error log messages from there?

-Roger
PKP team

Here is the log. Thank You.

[Tue Jul 26 15:29:00.473052 2022] [php7:notice] [pid 345410] [client 10.6.64.29:40082] Slim Application Error:\nType: Error\nMessage: Call to undefined method Submission::setCoverImage()\nFile: /var/www/html/bup/omp-last/classes/services/ContextService.inc.php\nLine: 247\nTrace: #0 /var/www/html/bup/omp-last/classes/services/ContextService.inc.php(71): APP\Services\ContextService->resizeCoverThumbnails()\n#1 /var/www/html/bup/omp-last/lib/pkp/classes/plugins/HookRegistry.inc.php(107): APP\Services\ContextService->afterEditContext()\n#2 /var/www/html/bup/omp-last/lib/pkp/classes/services/PKPContextService.inc.php(491): HookRegistry::call()\n#3 /var/www/html/bup/omp-last/lib/pkp/api/v1/contexts/PKPContextHandler.inc.php(353): PKP\Services\PKPContextService->edit()\n#4 [internal function]: PKPContextHandler->edit()\n#5 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()\n#6 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()\n#7 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#8 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()\n#9 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()\n#10 /var/www/html/bup/omp-last/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke()\n#11 [internal function]: ApiAuthorizationMiddleware->__invoke()\n#12 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#13 [internal function]: Slim\DeferredCallable->__invoke()\n#14 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#15 /var/www/html/bup/omp-last/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim\{closure}()\n#16 [internal function]: ApiCsrfMiddleware->__invoke()\n#17 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#18 [internal function]: Slim\DeferredCallable->__invoke()\n#19 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#20 /var/www/html/bup/omp-last/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(131): Slim\App->Slim\{closure}()\n#21 [internal function]: ApiTokenDecodingMiddleware->__invoke()\n#22 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#23 [internal function]: Slim\DeferredCallable->__invoke()\n#24 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#25 /var/www/html/bup/omp-last/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim\{closure}()\n#26 [internal function]: APIHandler->{closure}()\n#27 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#28 [internal function]: Slim\DeferredCallable->__invoke()\n#29 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#30 /var/www/html/bup/omp-last/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim\{closure}()\n#31 [internal function]: APIHandler->{closure}()\n#32 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#33 [internal function]: Slim\DeferredCallable->__invoke()\n#34 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#35 /var/www/html/bup/omp-last/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#36 [internal function]: APIHandler->{closure}()\n#37 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#38 [internal function]: Slim\DeferredCallable->__invoke()\n#39 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#40 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#41 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#42 /var/www/html/bup/omp-last/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process()\n#43 [internal function]: APIHandler->{closure}()\n#44 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#45 [internal function]: Slim\DeferredCallable->__invoke()\n#46 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#47 /var/www/html/bup/omp-last/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#48 [internal function]: APIHandler->{closure}()\n#49 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#50 [internal function]: Slim\DeferredCallable->__invoke()\n#51 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#52 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#53 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#54 /var/www/html/bup/omp-last/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process()\n#55 /var/www/html/bup/omp-last/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()\n#56 /var/www/html/bup/omp-last/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route()\n#57 /var/www/html/bup/omp-last/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#58 /var/www/html/bup/omp-last/index.php(64): PKPApplication->execute()\n#59 {main}\nView in rendered output by enabling the “displayErrorDetails” setting.\n, referer: https://web.unibas.it/bup/omp-last/index.php/bup/management/settings/website

Thanks, @Fulvio_Delle_Donne! I’ll see if another one of our team members can have a look at this when they get a chance.

-Roger
PKP Team

Thank you, Roger. I only need to know in which configuration file the size of the covers can be corrected. When fixed correctly, I have no need to change it.
Best wishes
Fulvio

Hi, Roger. I put correct values (sizes) manually in DB: table press_settings > coverThumbnailsMaxHeight and coverThumbnailsMaxWidt. It works.
How can I share italian translations?
Thank You

Hi @Fulvio_Delle_Donne,

Thanks for sharing your solution. Related to translations, please see our translation guide here: https://docs.pkp.sfu.ca/translating-guide/en/

Best regards,

Roger
PKP Team