Page 1 of 1

Access denied, file manager

Posted: Thu Jan 14, 2021 6:43 am
by precedent
Hello, I have a problem.
I gave the user access to insert pictures into tinymce, when the user opens the file manager, he says "Access denied"
If you reset the cache, the problem disappears, then it appears again. What can be connected with?
Image
Image

Re: Access denied, file manager

Posted: Thu Jan 14, 2021 3:36 pm
by DIGI3
It may be related this, from the help screen in TinyMCE:
Important: if you're using URL Rewriting, you must update your .htaccess file and replace:
RedirectMatch 403 ^.*/modules/(.*)\.php$ with:
RedirectMatch 403 ^.*/modules/(?!TinyMCE/responsive_filemanager/filemanager/).*\.php$
... in order to make the Responsive File Manager work - If you already did some changes on that line, please update the rule accordingly

Re: Access denied, file manager

Posted: Fri Jan 15, 2021 9:10 am
by precedent
It didn't help, the error remained

Re: Access denied, file manager

Posted: Sun Jan 17, 2021 3:36 pm
by DIGI3
The only other likely thing to cause this would be mod_security. There's no way to test if it's installed, so if it's not an option to disable in your hosting control panel, you would need to check with your host.

I would also double-check .htaccess - or rename it temporarily to test.

Re: Access denied, file manager

Posted: Wed Jan 27, 2021 12:31 pm
by musicscore
Hey.
Did you find a solution for this problem.
I disabled mod-security but problems remain.
Only for TinyMCE.

Please help

Re: Access denied, file manager

Posted: Wed Jan 27, 2021 1:30 pm
by musicscore
Have found resolution - maybe the default htaccess.txt which is shipped could be updated?

Important: if you're using URL Rewriting, you must update your .htaccess file and replace:
RedirectMatch 403 ^.*/modules/(.*)\.php$ with:
RedirectMatch 403 ^.*/modules/(?!TinyMCE/responsive_filemanager/filemanager/).*\.php$

Re: Access denied, file manager

Posted: Wed Jan 27, 2021 1:55 pm
by Rolf
musicscore wrote: Wed Jan 27, 2021 1:30 pmHave found resolution - maybe the default htaccess.txt which is shipped could be updated?
The TinyMCE module is not a part of the CMSMS core package, therefor these lines shouldn't be in the default htaccess.txt file...
But in the help text of TinyMCE is this problem and solution described!

Grtz. Rolf

Re: Access denied, file manager

Posted: Wed Jan 27, 2021 2:17 pm
by DIGI3
It was also in my first reply to your post.

Re: Access denied, file manager

Posted: Wed Jan 27, 2021 2:25 pm
by musicscore
Sorry DIGID3. Did not see your post before I answered.
Thank you for your answer and sorry again.

Musicsore

Re: Access denied, file manager

Posted: Sat Jun 12, 2021 10:32 am
by musicscore
The problem with TinyMCE is back again.
Access denied in file manager.

This is in my .htaccess

Code: Select all

RedirectMatch 403 ^/.*\.htaccess$
RedirectMatch 403 ^/.*\.log$
RedirectMatch 403 ^/.*\.ini$
RedirectMatch 403 ^/.*config\.php$
RedirectMatch 403 ^.*/doc/.*$
RedirectMatch 403 ^.*/lib/.*\.php$
RedirectMatch 403 ^.*/tmp/.*\.php$
RedirectMatch 403 ^.*/modules/(?!TinyMCE/responsive_filemanager/filemanager/).*\.php$
RedirectMatch 403 ^.*/uploads/.*\.php$
RedirectMatch 403 ^.*/assets/.*\.php$
RedirectMatch 403 ^.*/assets/.*\.tpl$
Please help.

Re: Access denied, file manager

Posted: Sat Jun 12, 2021 10:50 am
by musicscore
Soory, It IS working.

I edited the wrong .htacess (on my demo site).