if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
}
// ok to try and start the session
if (!session_start()) {
throw new \RuntimeException('Failed to start the session');
}
if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
];
// if update is not working we still want to return article to the customer
// so we don't care the outcome of operation
$connector->execute('getknowledgebase', $data);
}
$catid = $request->getSession()->get('selected_category');
$selectedCategory = NULL;
foreach($article->getCategories() as $category){
if($selectedCategory == NULL || ( $catid && $category->getId() === $catid)){
$selectedCategory = $category;
}
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
ErrorException |
---|
ErrorException: Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:101 at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc(172800) (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:83) at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc(172800) at session_start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:149) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:313) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes') (vendor/symfony/http-foundation/Session/Session.php:256) at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes') (vendor/symfony/http-foundation/Session/Session.php:278) at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag() (vendor/symfony/http-foundation/Session/Session.php:73) at Symfony\Component\HttpFoundation\Session\Session->get('selected_category') (src/Controller/PublicController.php:233) at App\Controller\PublicController->showHelpAction('2223', object(Request), object(HelpRepository), object(Whmcs), object(AuthorizationChecker), object(User)) (vendor/symfony/http-kernel/HttpKernel.php:150) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:67) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:198) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (www/index.php:25) |