Slim Application Error OJS

Ojs version: ojs-3.3.0-15

Problem: After migrating the ojs system to another server, when going from the admin page to the control panel of a specific journal, an error appears: Error An unexpected error has occurred. Please reload the page and try again.

There is an error in the php error logs:

Slim Application Error:
Type: League\Flysystem\Exception
Message: Impossible to create the root directory "/home/bsuedu/public_html/upload". mkdir(): Permission denied
File: /home/ojsbsuedu/public_html/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php
Line: 112

How can I solve this problem? I am sending you screenshots




Hi @zviadi_beradze,

This looks like a file permission problem. But is your files_dir (configured in config.inc.php) configured to point to something inside your web root? That appears to be the case looking at the error message. Beware that this is a dangerous configuration and your website may get hacked! Review the notes on the files_dir setting inside config.inc.php, and the admin guide.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello,

We moved ojs to another server and the files_dir path in config.inc.php was incorrect,

Thanks for the help!

Problem solved