Access denied, file manager

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
precedent
New Member
New Member
Posts: 2
Joined: Thu Jan 14, 2021 6:35 am

Access denied, file manager

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Access denied, file manager

Post 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
Not getting the answer you need? CMSMS support options
precedent
New Member
New Member
Posts: 2
Joined: Thu Jan 14, 2021 6:35 am

Re: Access denied, file manager

Post by precedent »

It didn't help, the error remained
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Access denied, file manager

Post 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.
Not getting the answer you need? CMSMS support options
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: Access denied, file manager

Post by musicscore »

Hey.
Did you find a solution for this problem.
I disabled mod-security but problems remain.
Only for TinyMCE.

Please help
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: Access denied, file manager

Post 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$
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Access denied, file manager

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Access denied, file manager

Post by DIGI3 »

It was also in my first reply to your post.
Not getting the answer you need? CMSMS support options
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: Access denied, file manager

Post by musicscore »

Sorry DIGID3. Did not see your post before I answered.
Thank you for your answer and sorry again.

Musicsore
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: Access denied, file manager

Post 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.
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: Access denied, file manager

Post by musicscore »

Soory, It IS working.

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

Return to “Modules/Add-Ons”