Hello, can someone help and guide me to fix unable to view my dashboard after migration. Below is the link for screen recording of error. Thank you
https://www.awesomescreenshot.com/video/29029316?key=a63ddf392c33afe510883f76199ae61c
Hello, can someone help and guide me to fix unable to view my dashboard after migration. Below is the link for screen recording of error. Thank you
https://www.awesomescreenshot.com/video/29029316?key=a63ddf392c33afe510883f76199ae61c
Hello @kawuwa !
That error can be caused by multiple factors. To determine the one affecting you, you should check your PHP’s error log.
There should be a line in that file stating what is causing that “Fatal error”
Thank you for the reply. This is the error showing
[28-Jun-2024 00:45:24 UTC] Server host "voyagesjournalgsu.ng.zakahwaqfgm.org.ng not allowed!
[28-Jun-2024 00:45:24 UTC] ojs2: 400 Bad Request
[28-Jun-2024 02:16:00 UTC] PHP Fatal error: Uncaught League\Flysystem\Exception: Impossible to create the root directory “/home/voyagesj/public_html/files”. mkdir(): Permission denied in /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php:112
Stack trace:
#0 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php(78): League\Flysystem\Adapter\Local->ensureDirectory(‘/home/voyagesj/…’)
#1 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/services/PKPFileService.inc.php(46): League\Flysystem\Adapter\Local->__construct(‘/home/voyagesj/…’, 2, 2, Array)
#2 /home1/gombeacr/public_html/voyagesjournalgsu.ng/classes/services/OJSServiceProvider.inc.php(51): PKP\Services\PKPFileService->__construct()
#3 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/lib/vendor/pimple/pimple/src/Pimple/Container.php(118): APP\Services\OJSServiceProvider->APP\Services{closure}(Object(Pimple\Container))
#4 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/PKPServices.inc.php(69): Pimple\Container->offsetGet(‘file’)
#5 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/PKPServices.inc.php(50): PKPServices->_getFromContainer(‘file’)
#6 /home1/gombeacr/public_html/voyagesjournalgsu.ng/pages/article/ArticleHandler.inc.php(429): PKPServices::get(‘file’)
#7 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/PKPRouter.inc.php(395): ArticleHandler->download(Array, Object(Request))
#8 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#9 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))
#10 /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#11 /home1/gombeacr/public_html/voyagesjournalgsu.ng/index.php(68): PKPApplication->execute()
#12 {main}
thrown in /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php on line 112
[28-Jun-2024 03:35:19 UTC] PHP Warning: mkdir(): Permission denied in /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/file/FileManager.inc.php on line 312
[28-Jun-2024 04:50:40 UTC] PHP Warning: mkdir(): Permission denied in /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/classes/file/FileManager.inc.php on line 312
[28-Jun-2024 08:25:44 UTC] PHP Fatal error: Uncaught League\Flysystem\Exception: Impossible to create the root directory “/home/voyagesj/public_html/files”. mkdir(): Permission denied in /home1/gombeacr/public_html/voyagesjournalgsu.ng/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php:112
Hi @kawuwa,
A warning: it’s not safe to put your files directory (files_dir
in config.inc.php
) inside your web root (public_html
)! If you do this you will get hacked. See config.inc.php
(and the installation form) for a warning about this.
Fortunately, you also have a permissions problem, which is possibly saving you from getting hacked. Once you’ve moved the files
directory somewhere outside public_html
, update the path to it in config.inc.php
and set the file permissions so that OJS can administer its contents.
You also need to update the allowed_hosts
setting in your config.inc.php
.
Regards,
Alec Smecher
Public Knowledge Project Team
This topic was automatically closed after 9 days. New replies are no longer allowed.