While iam calling ojs submissions API got Class 'Application' not found error

While i am calling OJS submissions API the following Class ‘Application’ not found error throwing.

I am using POSTMAN to call submissions API. But its throwing following error.

Fatal error : Uncaught Error: Class ‘Application’ not found in D:\xampp\htdocs\openjournal\api\v1\submissions\index.php:19 Stack trace: #0 {main} thrown in D:\xampp\htdocs\openjournal\api\v1\submissions\index.php on line 19

OJS 3.3.0-4

Please give me suggestions.

Thanks & Regards.

Hi @indurumahesh

Have you tested if running the most recent version of OJS (3.3.0-13) this error still shows up?

Best,
Israel

Hi!
Did you find the solution? Im getting the exact same error on the version 3.3.0.14

Im using the url “hostname/ojs/api/v1/submissions” with POSTMAN and setted the autorithation key

Thank you!

Hi all,

I suspect you’re trying to invoke the API wrapper directly, rather than calling it through the main OJS wrapper. The API URL should be something like this (with publicknowledge as the specific journal’s path, and https://server.tld/path/to/ojs as the base URL):

https://server.tld/path/to/ojs/index.php/publicknowledge/api/v1/submissions

…rather than…

https://server.tld/path/to/ojs/api/v1/submissions

Are you using URL rewriting? If so, there’s a possibility that there is a conflict in the rules.

Regards,
Alec Smecher
Public Knowledge Project Team