Description of issue or problem I’m having:
I have various categories defined in the OJS backend, and am in the process of uploading thumbnail images, however every time I try the server returns an internal error (500).
Steps I took leading up to the issue:
just uploading images in the OJS backend, for categories.
What I tried to resolve the issue:
Looked at the forums - nothing relevant, and also checked the log files.
Application Version - e.g., OJS 3.1.2:
OJS 3.3.0.11
Additional information, such as screenshots and error log messages if applicable:
The very last line in apache’s error log is:-
[Fri Jun 17 13:09:08.988606 2022] [php7:error] [pid 79269] [client 92.13.214.246:61427] PHP Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in /var/www/html/lib/pkp/controllers/grid/settings/category/form/CategoryForm.inc.php:284\nStack trace:\n#0 /var/www/html/lib/pkp/controllers/grid/settings/category/CategoryCategoryGridHandler.inc.php(227): CategoryForm->execute()\n#1 /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php(395): CategoryCategoryGridHandler->updateCategory()\n#2 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()\n#3 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()\n#4 /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#5 /var/www/html/index.php(68): PKPApplication->execute()\n#6 {main}\n thrown in /var/www/html/lib/pkp/controllers/grid/settings/category/form/CategoryForm.inc.php on line 284, referer: http://mywebsite.org/index.php/ve/management/settings/context
I attempted to upload jpg images instead of png, but that returned a similar error, but for jpg files instead.
[Fri Jun 17 13:31:28.133682 2022] [php7:error] [pid 100303] [client 92.13.214.246:63063] PHP Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() in /var/www/html/lib/pkp/controllers/grid/settings/category/form/CategoryForm.inc.php:283\nStack trace:\n#0 /var/www/html/lib/pkp/controllers/grid/settings/category/CategoryCategoryGridHandler.inc.php(227): CategoryForm->execute()\n#1 /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php(395): CategoryCategoryGridHandler->updateCategory()\n#2 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()\n#3 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()\n#4 /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#5 /var/www/html/index.php(68): PKPApplication->execute()\n#6 {main}\n thrown in /var/www/html/lib/pkp/controllers/grid/settings/category/form/CategoryForm.inc.php on line 283, referer: http://mywebsite.org/index.php/ve/management/settings/context
Has anyone else had problems uploading images in this manner?