I’m starting learning modx. I’ve used sample web site as a template for my site. I’ve decided to change folder’s names because of problems with safety.
manager->dir1, assets->dir2. I’ve used "Replace in files" for modx folder: manager/->dir1/, assets/->dir2/
In general, it works, but I have some problems.
1. With TinyMCE. When starting editing, while loading plugin
Here is log of events (modx 0.9.6.3).
Failed opening ’/users/i/m/mysite.ru/html/www/assets/plugins/tinymce3201/tinymce.functions.php’ for inclusion (include_path=’/users/i/m/mysite.ruhtml/www/dir1/includes/’)
Warning: Unknown(/users/i/m/mysite.ru/html/www/assets/plugins/tinymce3201/tinymce.lang.php): failed to open stream: No such file or directory in /users/i/m/mysite.ru/html/www/dir1/includes/document.parser.class.inc.php(745) : eval()’d code on line 15
Warning: (null)(): Failed opening ’/users/i/m/mysite.ru/html/www/assets/plugins/tinymce3201/tinymce.lang.php’ for inclusion (include_path=’/users/i/m/mysite.ru/html/www/dir1/includes/’) in /users/i/m/mysite.ru/html/www/dir1/includes/document.parser.class.inc.php(745) : eval()’d code on line 15
Warning: Unknown(/users/i/m/mysite.ru/html/www/assets/plugins/tinymce3201/tinymce.functions.php): failed to open stream: No such file or directory in /users/i/mysite.ru/html/www/dir1/includes/document.parser.class.inc.php(745) : eval()’d code on line 16
Warning: (null)(): Failed opening ’/users/i/m/mysite.ru/html/www/assets/plugins/tinymce3201/tinymce.functions.php’ for inclusion (include_path=’/users/i/m/mysite.ru/html/www/dir1/includes/’) in /users/i/m/mysite.ru/html/www/dir1/includes/document.parser.class.inc.php(745) : eval()’d code on line 16
2. Also I have problem with button "Save" on page "Configuration". CMS redirects me to folder manager instead of dir1 after pressing button "Save".
May there be some old strings in MySQL base? I haven’t change base yet.
-
MODX Staff
- 12,272 Posts
There are settings in your manager that are loaded from the database, including those dealing with the resource browser and RTEs. I’ve gotten this to work before but the problem you may run into is that third-party components rely on these directories to be named as originally outlined and break.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Under Tools > Configuration > Interface & Features tab make sure the "Resource Path" field has been correctly updated. Same for the "File Manager Path" under the File Manager tab. You could also query your database for all instances of "/manager" or "/assets" strings and replace them in there - should have the same effect.
I was running into this issue yesterday when copying a site into a new staging environment.