api.submissions.unknownError in submission

The “api.submissions.unknownError” error is appearing three times in the submission step. The version of PHP installed is 5.6. Any suggestions on what might be?

I disabled the path_info function. When it was active, the following message appeared: “No input file specified”.

; Use URL parameters instead of CGI PATH_INFO. This is useful for
; broken server setups that do not support the PATH_INFO environment
; variable.
disable_path_info = On

Is there a relationship?

Hi @filipekjp,

Are you using Apache, or nginx, or something else?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I am using Apache.

Hi @filipekjp,

The best way to run OJS is with disable_path_info turned Off, though it sounds like you may have to tweak your Apache configuration to get this working. The use of disable_path_info results in ugly URLs, and some parts of the system (e.g. the OAI interface) will operate out of specification.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks, @asmecher

I’ll try to do that.

@asmecher Hello there !

I have
disable_path_info=off also restful_urls = Off

When I login to my ojs profile I get this error

##api.submissions.UnknownError## However everything is working fine.

But When I go to settings->website->plugins nothing shows the lugins page keep on loading.

Please guide.

Hi @Haroon_Sattar,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

this is the error we are getting on browsers console when we go to submission section

build.js:6 Uncaught TypeError: Cannot read property ‘_constants’ of undefined
at Object.init (build.js:6)
at eval (eval at (jquery.js:339), :2:18)
at eval ()
at jquery.js:339
at Function.globalEval (jquery.js:340)
at jQuery.fn.init.domManip (jquery.js:5931)
at jQuery.fn.init.append (jquery.js:5704)
at jQuery.fn.init. (jquery.js:5830)
at jQuery.access (jquery.js:4108)
at jQuery.fn.init.html (jquery.js:5794)

Hi @Haroon_Sattar,

You’ll need to check your PHP error log, not your browser’s console.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher
Line: 353
Trace: #0 /home/demojpathology/public_html/pathojs/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(167): Slim\Http\Response->withJson(Array)
#1 [internal function]: PKPBackendSubmissionsHandler->getSubmissions(Object(Slim\Http\Request), Object(APIResponse), Array)
#2 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#3 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#4 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#5 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#6 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(513): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#7 /home/demojpathology/public_html/pathojs/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(74): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#8 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#9 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#10 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#11 /home/demojpathology/public_html/pathojs/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))
#12 /home/demojpathology/public_html/pathojs/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#13 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#14 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#15 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#16 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#17 /home/demojpathology/public_html/pathojs/lib/pkp/classes/handler/APIHandler.inc.php(67): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#18 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#19 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#20 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#21 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#22 /home/demojpathology/public_html/pathojs/lib/pkp/classes/handler/APIHandler.inc.php(89): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#23 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#24 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#25 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#27 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#28 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#29 /home/demojpathology/public_html/pathojs/lib/pkp/lib/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#30 /home/demojpathology/public_html/pathojs/lib/pkp/classes/core/APIRouter.inc.php(109): Slim\App->run()
#31 /home/demojpathology/public_html/pathojs/lib/pkp/classes/core/Dispatcher.inc.php(134): APIRouter->route(Object(Request))
#32 /home/demojpathology/public_html/pathojs/lib/pkp/classes/core/PKPApplication.inc.php(247): Dispatcher->dispatch(Object(Request))
#33 /home/demojpathology/public_html/pathojs/index.php(68): PKPApplication->execute()
#34 {main}
View in rendered output by enabling the “displayErrorDetails” setting.

Hi @Haroon_Sattar,

You’ve included the stack trace but not the error message itself – what are the few lines just before the section you quoted?

Regards,
Alec Smecher
Public Knowledge Project Team