Mautic Community Forums

You are not authorized to use filemanager

When editing a landing page (in v2.0), content tab, click to Insert Image, then the file browse icon: a new window opens (to access server files)



I get the message: “You’re not authorized to use filemanager”



No issues reported in the logs.

It’s not a folder permission issue (open to web user)




When editing a landing page (in v2.0), content tab, click to Insert Image, then the file browse icon: a new window opens (to access server files)

I get the message: “You’re not authorized to use filemanager”

No issues reported in the logs.
It’s not a folder permission issue (open to web user)

Got it working. It was not authenticating successfully. My temp fix was to force return a true in the auth function:

Edit:
CoreBundle/Assets/js/libraries/ckeditor/filemanager/connectors/php/user.config.php

function auth() {
global $authenticated;
// You can insert your own code over here to check if the user is authorized.
// If you use a session variable, you’ve got to start the session first (session_start())

// return $authenticated; <<commented out
return true;
}

Remember to clear the cache to test.

Actually, above change is not the correct way to resolve this… After that change, file manager listed folders but was pointing to a top level folder instead of the /media/images … and if I opened any folder, it displayed “No Way”…

Here’s the true solution to this issue:
Edit:
etc/php.ini

Add:
extension=pdo.so
date.timezone=“America/New_York”

I’ve undone the previous change (not forcing a true return) , no code change needed, and filemanager now works as it should.