Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I’m currently using OJS for my journal, but I’m encountering several issues. First, I’m unable to upload any images or files to the server; it keeps showing an error.

When I try to upload a cover image, I get the following error message: “Failed to load resource: the server responded with a status of 500 (Internal Server Error)” The error details are: “{“status”:false,“content”:“The file could not be uploaded or revised.”,“elementId”:“0”,“events”:null}”

also when i am trying to submit logo getting an error
POST https://new.pjms.in/index.php/pjms/api/v1/temporaryFiles 500 (Internal Server Error)
message: “Slim Application Error”

my files direcly is : files_dir = /home1/pjms/public_html/files

Hi @openaccessjournals,

It looks like you may have installed OJS unsafely! The files_dir (in config.inc.php) should not be placed somewhere web-accessible, as noted in the installation form, configuration file, and documentation. You should move this immediately outside of the web root and check your server for signs of attack.

After you do that, please post the complete error message; there should be more specific details in the PHP error log in addition to what you’ve quoted.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.