OMP 3.4.0.4 cover image problem

Hello PKP community…

I am facing cover image issue. The uploaded cover image before publishing appears in admin dashboard view, but not in public catalog view.
Based on my search in forum, these approaches were recommended:

  1. to not provide series information (select nothing) while publishing
  2. Problem Loading Cover Image OMP-3.4.0-7 as specified here, i dont have access to php error logs.

i have tried the first method, but not fruitful result.
Also eliminating series information is not a good idea from publishing perspective, which can lead to confusion.

It would helpful to specify a proper workaround, from admin dashboard level to code level changes so that i can try one after another.

As you know supporting open access publishing in developing countries like India, is not yet fully supported. In this environment/situation, readers and funding agencies both visit the sit and cognitively expect such cover images. It adds good welcoming for presenting. Moreover, the cover designing team also expect such a simple feedback so that they can work with motivation.

Pls. help.

the cover image we are trying to upload (for example):

the error message in dashboard:

while i tried to inspect the page…

It says “Could not load the image”, while i hovered over the actual image URL that is supposed to be the path for the cover image.

Hi @ganesh,

For errors such as these it might be best to check your PHP error log, rather than using Browser tools. Could you do so and report back? If unsure of how to do it, please see this post here: How do I find my PHP error log?

-Roger
PKP Team

Hello PKP Team,
I have the same problem of not being able to load the images in OMP 3.4.0.8, The platform is
hosted on Linux Ubuntu Server 20.40, Apache PHP 8.0.30, MySQL. We host Open Journal System (OJS) on the same server and everything works without any problem.
According to the errors it identifies, it redirects us to a file called Repository.php.
Could you please help me solve this problem?

I share with you the error that appears in the log:

: Got error ‘PHP message: Slim Application Error:\nType: Error\nMessage: Call to undefined function APP\publication\ imagecreatefromjpeg()\nFile: /sftp/omp/classes/publication/ Repository.php\nLine: 435\nTrace: #0 /sftp/omp/classes/publication/ Repository.php(282): APP\publication\Repository-> makeThumbnail()\n#1 /sftp/omp/lib/pkp/api/v1/ submissions/ PKPSubmissionHandler.php(1123) : APP\publication\Repository-> edit()\n#2 [internal function]: PKP\API\v1\submissions\ PKPSubmissionHandler-> editPublication()\n#3 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Handlers/ Estrategias/RequestResponse. php(40): call_user_func()\n#4 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(281): Slim\Manejadores\Estrategias\ RequestResponse->__invoke()\n# 5 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/ MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#6 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(268): Slim\Route-> callMiddlewareStack()\n#7 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/App.php(503): Slim\Route->run()\n#8 /sftp/omp/lib/pkp/classe…’, referer: https://www.libros.ucol.mx/ index.php/dgp/workflow/index/ 1/5
[jue 30 ene 08:58:16.751367 2025] [proxy_fcgi:error] [pid 182076] [client 148.213.19.101:54012 ] AH01071: Se obtuvo el error ‘Mensaje PHP: Error de aplicación Slim:\nTipo: Error\nMensaje: Llamada a función indefinida APP\publication\ imagecreatefromjpeg()\nArchivo: /sftp/omp/classes/publication/ Repository.php\nLínea: 435\nRastro: #0 /sftp/omp/classes/publication/ Repository.php(282): APP\publication\Repository-> makeThumbnail()\n#1 /sftp/omp/lib/pkp/api/v1/ envios/ PKPSubmissionHandler.php(1123) : APP\publication\Repository-> edit()\n#2 [función interna]: PKP\API\v1\envios\ PKPSubmissionHandler-> editPublication()\n#3 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Handlers/ Strategies/RequestResponse. php(40): call_user_func()\n#4 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(281): Slim\Manejadores\Estrategias\ RequestResponse->__invoke()\n# 5 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/ MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#6 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(268): Slim\Route-> callMiddlewareStack()\n#7 /sftp/omp/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()\n#8 /sftp/omp/lib/pkp/classe…’, referer: https://www.libros.ucol.mx/ index.php/dgp/workflow/index/ 1/5
[jue ene 30 08:58:34.156053 2025] [proxy_fcgi:error] [pid 182096] [client 148.213.19.101:54018 ] AH01071: Se obtuvo el error ‘Mensaje PHP: Error de aplicación Slim:\nTipo: Error\nMensaje: Llamada a función indefinida APP\publication\ imagecreatefromjpeg()\nArchivo: /sftp/omp/classes/publication/ Repository.php\nLínea: 435\nRastro: #0 /sftp/omp/classes/publication/ Repository.php(282): APP\publication\Repository-> makeThumbnail()\n#1 /sftp/omp/lib/pkp/api/v1/ submissions/ PKPSubmissionHandler.php(1123) : APP\publication\Repository-> edit()\n#2 [función interna]: PKP\API\v1\submissions\ PKPSubmissionHandler-> editPublication()\n#3 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Handlers/ Strategies/RequestResponse. php(40): call_user_func()\n#4 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(281): Slim\Manejadores\Estrategias\ RequestResponse->__invoke()\n# 5 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/ MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#6 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/Route.php(268): Slim\Route-> callMiddlewareStack()\n#7 /sftp/omp/lib/pkp/lib/vendor/ slim/slim/Slim/App.php(503): Slim\Route->run()\n#8 /sftp/omp/lib/pkp/classe…’, referencia: https://www.libros.ucol.mx/ index.php/dgp/workflow/index/ 1/5

Hi @benjamincv,

Your PHP installation is missing the required gd extension. You should be able to enable/install this in your PHP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

It has already worked. Thank you very much, i am very grateful for your help.

1 Like