Following a server migration and shortly after a move to https, I am having trouble getting the filemanager to work correctly. The rest of the admin seems to be working just fine. A colleague says that it was working before the move to https but I am not entirely certain of that but it might be of some help.
When accessing the file manager it says “You are not authorized to use filemanager.”
I have looked at the called script:
https://[mydomain.com]/app/bundles/CoreBundle/Assets/js/libraries/ckeditor/filemanager/connectors/php/filemanager.php?path=%2F&mode=getfolder&showThumbs=true&time=557&type=Images
which returns: {“Error”:“You are not authorized to use filemanager.”,“Code”:"-1",“Properties”:{“Date Created”:null,“Date Modified”:null,“Height”:null,“Width”:null,“Size”:null}}
However, with some analysis I see that the problem occurs because the try-catch fails in the connectors/php/user.config.php file, specifically at the point of
$kernel->boot();
If I do a a die(“KIA”) before that point we get there. After and the page errors before the die().
I have taken the latest code from github.
$kernel->boot(); // <--------------- ERROR HAPPENS AT THIS POINT
$container = $kernel->getContainer();
$request = Request::createFromGlobals();
$container->enterScope('request');
$container->set('request', $request, 'request');
// Dispatch REQUEST event to setup authentication
$httpKernel = $container->get('http_kernel');
$event = new GetResponseEvent($httpKernel, $request, HttpKernelInterface::MASTER_REQUEST);
$container->get('event_dispatcher')->dispatch(KernelEvents::REQUEST, $event);
$session = $container->get('session');
$securityToken = $container->get('security.token_storage');
$token = $securityToken->getToken();
$authenticated = ($token instanceof TokenInterface) ? count($token->getRoles()) : false;
} catch (Exception $exception) {
error_log($exception);
$authenticated = false;
}
?>
I am web developer but have never used mautic or symfony before so could so with some pointers. Any help would be appreciated - been struggling with this for a while. Thanks in advance.