Slim application error when submitting paper

Hello!
Anytime I try to submit an article on the submission page, I’m always having this “Slim Application Error”. Have tried many trucks and solutions online, but none of it was able to solve the issue.
Kindly help me out.
I use the latest version of the ojs.
That’s 3.14

Hi @Olabode_Adeleye,

Are there any relevant errors in your PHP error log? That often points to the issue.
Also: the most recent version is 3.3.0-14 - this is the version you’re running, correct?

-Roger
PKP Team

Yes you are coreect…

this are the error generated

[12-May-2023 18:46:53 UTC] Slim Application Error:
Type: Error
Message: Class "finfo" not found
File: /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php
Line: 322
Trace: #0 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/league/flysystem/src/Filesystem.php(285): League\Flysystem\Adapter\Local->getMimetype(‘journals/1/arti…’)
#1 /home/hpccomng/public_html/njhpca/lib/pkp/classes/services/PKPFileService.inc.php(88): League\Flysystem\Filesystem->getMimetype(‘journals/1/arti…’)
#2 /home/hpccomng/public_html/njhpca/lib/pkp/api/v1/submissions/PKPSubmissionFileHandler.inc.php(264): PKP\Services\PKPFileService->add(‘/tmp/phpAyST2i’, ‘journals/1/arti…’)
#3 [internal function]: PKPSubmissionFileHandler->add(Object(Slim\Http\Request), Object(APIResponse), Array)
#4 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#5 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#6 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#7 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#8 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#9 /home/hpccomng/public_html/njhpca/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(77): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#10 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#11 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#12 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#13 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#14 /home/hpccomng/public_html/njhpca/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#15 [internal function]: ApiCsrfMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#16 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiCsrfMiddleware), Array)
#17 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#18 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#19 /home/hpccomng/public_html/njhpca/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(131): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#20 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#21 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#22 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#23 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#24 /home/hpccomng/public_html/njhpca/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#25 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#27 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#28 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#29 /home/hpccomng/public_html/njhpca/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#30 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#31 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#32 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#33 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#34 /home/hpccomng/public_html/njhpca/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#35 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#36 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#37 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#38 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#39 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#40 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#41 /home/hpccomng/public_html/njhpca/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#42 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#43 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#44 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#45 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#46 /home/hpccomng/public_html/njhpca/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#47 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#48 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#49 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#50 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#51 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#52 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#53 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#54 /home/hpccomng/public_html/njhpca/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#55 /home/hpccomng/public_html/njhpca/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route(Object(Request))
#56 /home/hpccomng/public_html/njhpca/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#57 /home/hpccomng/public_html/njhpca/index.php(68): PKPApplication->execute()
#58 {main}
View in rendered output by enabling the “displayErrorDetails” setting.

[12-May-2023 18:47:16 UTC] Slim Application Error:
Type: Error
Message: Class "finfo" not found
File: /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php
Line: 322
Trace: #0 /home/hpccomng/public_html/njhpca/lib/pkp/lib/vendor/league/flysystem/src/Filesystem.php(285): League\Flysystem\Adapter\Local->getMimetype(‘journals/1/arti…’)

hi @Olabode_Adeleye
Message: Class "finfo" not found
May indicate that the “fileinfo” extension is probably not installed in PHP
Could you check if it is actually installed?


Is this image enough to show fileinfo is enabled in php?
Or i’m missing out on something…