Cover Image max width and height

Good afternoon,

When trying to change the max width and height in OMP3.3.0.17 I get an error message, " An unexpected error has occurred. Please reload the page and try again." I see that there was a previous topic on this, but changing it in the db itself does not fix the problem.
I am using Ubuntu 22.04, PHP8.1, Herewith is the error message. Any help will be much appreciated.

Kind regards,
Daan

Slim Application Error:\nType: Error\nMessage: Call to undefined method Submission::setCoverImage()\nFile: /var/www/html/classes/services/ContextService.inc.php\nLine: 247\nTrace: #0 /var/www/html/classes/services/ContextService.inc.php(71): APP\Services\ContextService->resizeCoverThumbnails()\n#1 /var/www/html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): APP\Services\ContextService->afterEditContext()\n#2 /var/www/html/lib/pkp/classes/services/PKPContextService.inc.php(491): HookRegistry::call()\n#3 /var/www/html/lib/pkp/api/v1/contexts/PKPContextHandler.inc.php(353): PKP\Services\PKPContextService->edit()\n#4 [internal function]: PKPContextHandler->edit()\n#5 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()\n#6 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()\n#7 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#8 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()\n#9 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()\n#10 /var/www/html/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke()\n#11 [internal function]: ApiAuthorizationMiddleware->__invoke()\n#12 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#15 /var/www/html/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/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#20 /var/www/html/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/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#25 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim\{closure}()\n#26 [internal function]: APIHandler->{closure}()\n#27 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#30 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim\{closure}()\n#31 [internal function]: APIHandler->{closure}()\n#32 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#35 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#36 [internal function]: APIHandler->{closure}()\n#37 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#40 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#41 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#42 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process()\n#43 [internal function]: APIHandler->{closure}()\n#44 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#47 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#48 [internal function]: APIHandler->{closure}()\n#49 /var/www/html/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/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#52 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#53 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#54 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process()\n#55 /var/www/html/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()\n#56 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route()\n#57 /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch()\n#58 /var/www/html/index.php(64): PKPApplication->execute()\n#59 {main}\nView in rendered output by enabling the “displayErrorDetails” setting.\n, referer

Did you directly modify it in the database, or did you try another method (like CSS)?
Additionally, could you explain the steps you followed while attempting to make this change?
Providing this information will help me assist you more effectively.

Good morning,

I first tried on the Administration page (Website > Appearance > Advanced and this is where I got the error. I see that someone else had the same issue and changed it in the DB. I then modified the database directly, and although it then took the settings it does not change the height and width of the image.

I did not try CSS.

Hi all,

I’ve confirmed that this is a bug, and filed it for attention here:

Please watch that issue for an update.

Regards,
Alec Smecher
Public Knowledge Project Team

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