Toda vez que tentamos inserir a imagem aparece essa mensagem.
Olá Leonel,
Essa versão que está utilizando do OMP é bem antiga. Sugerimos atualizar a versão que provavelmente a falha será corrigida.
Estou com o mesmo problema, mas a versão instalada é a 3.3.0.14.
tente ver com o responsável pela hospedagem o log de erro do apache.
Lá terá mais informações sobre o problema.
Olá, Diego!
Finalmente o responsável pela hospedagem enviou o log de erro.
“Segue abaixo mensagem de erro que capturei no log:”
[Mon May 15 14:42:18.484536 2023] [php:notice] [pid 114162] [client 10.33.102.128:52938] Slim Application Error:\nType: Error\nMessage: Call to undefined function APP\Services\imagecreatefromjpeg()\nFile: /var/www/omp/classes/services/PublicationService.inc.php\nLine: 514\nTrace: #0 /var/www/omp/classes/services/PublicationService.inc.php(227): APP\Services\PublicationService->makeThumbnail()\n#1 /var/www/omp/lib/pkp/classes/plugins/HookRegistry.inc.php(107): APP\Services\PublicationService->editPublication()\n#2 /var/www/omp/lib/pkp/classes/services/PKPPublicationService.inc.php(524): HookRegistry::call()\n#3 /var/www/omp/lib/pkp/api/v1/submissions/PKPSubmissionHandler.inc.php(728): PKP\Services\PKPPublicationService->edit()\n#4 [internal function]: PKPSubmissionHandler->editPublication()\n#5 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()\n#6 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()\n#7 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#8 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()\n#9 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()\n#10 /var/www/omp/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke()\n#11 [internal function]: ApiAuthorizationMiddleware->__invoke()\n#12 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#15 /var/www/omp/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim\{closure}()\n#16 [internal function]: ApiCsrfMiddleware->__invoke()\n#17 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#20 /var/www/omp/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(131): Slim\App->Slim\{closure}()\n#21 [internal function]: ApiTokenDecodingMiddleware->__invoke()\n#22 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#25 /var/www/omp/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim\{closure}()\n#26 [internal function]: APIHandler->{closure}()\n#27 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#30 /var/www/omp/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim\{closure}()\n#31 [internal function]: APIHandler->{closure}()\n#32 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#35 /var/www/omp/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#36 [internal function]: APIHandler->{closure}()\n#37 /var/www/omp/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/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#40 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#41 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#42 /var/www/omp/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process()\n#43 /var/www/omp/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()\n#44 /var/www/omp/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route()\n#45 /var/www/omp/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#46 /var/www/omp/index.php(64): PKPApplication->execute()\n#47 {main}\nView in rendered output by enabling the “displayErrorDetails” setting.\n, referer: https://publicacoes.maua.br/portaldelivrosIMT/workflow/index/2/5
teoricamente o problema não está diretamente relacionado ao OMP, aparentemente pela mensagem de erro está faltando a biblioteca GD ou a PHP-GD no servidor.
PHP-GD é uma extensão do PHP que permite que o PHP interaja com a biblioteca de gráficos GD, que é uma biblioteca para criar e manipular imagens em vários formatos, como GIF, JPEG e PNG.
Desse modo, a hospedagem tem que instalar essa biblioteca/ extensão no servidor.
Se o servidor for um Debian/Ubuntu , o link abaixo pode ajudar a hospedagem a resolver esse problema:
https://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/
qualquer questão, favor nos informar