bludit-plugins / media-plus

MIT License
0 stars 1 forks source link

Site is empty after install #3

Open arikurumo opened 1 year ago

arikurumo commented 1 year ago

Hi, when I installed plugin then site cannot start.

I found solution: In media-plus\system\admin.php I modified

56 public function __construct() { 57 if(!Session::started()) { 58 Session::start(); 59 }

to

56 public function __construct() { 57 global $site; 58 if(!Session::started()) { 59 Session::start($site->urlPath(), $site->isHTTPS()); 60 }

2nd problem: Changing plugin settings->advanced->Root Settings to other option as default plugin cannot access selected path I change in media-plus\system\manager.php

216 $root = str_replace("root", PATH_UPLOADS, $media_plugin->getValue("root_directory"));

to

216 $root = str_replace("root", rtrim(PATH_UPLOADS, "/"), $media_plugin->getValue("root_directory"));

maybe it help

arakel2 commented 2 months ago

Thanks for the solutions, that helps me a lot. It's a pity that the obvious errors are not fixed. So everyone who downloads the plugin will be confronted with these bugs.