Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /usr/local/src/concretecms-core-versions/941/concrete/src/Config/Repository/Repository.php on line 405

Deprecated: Creation of dynamic property Concrete\Package\MailchimpV2\Block\Mailchimp\Controller::$subscribe_action is deprecated in /usr/local/src/concretecms-core-versions/941/concrete/src/Block/BlockController.php on line 419

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Creation of dynamic property Concrete\Package\MailchimpV2\Block\Mailchimp\Controller::$subscribe_action is deprecated in /usr/local/src/concretecms-core-versions/941/concrete/src/Block/BlockController.php on line 419

Deprecated: Creation of dynamic property Concrete\Package\MailchimpV2\Block\Mailchimp\Controller::$subscribe_action is deprecated in /usr/local/src/concretecms-core-versions/941/concrete/src/Block/BlockController.php on line 419

Deprecated: Creation of dynamic property Concrete\Package\MailchimpV2\Block\Mailchimp\Controller::$subscribe_action is deprecated in /usr/local/src/concretecms-core-versions/941/concrete/src/Block/BlockController.php on line 419

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 100
Failed to start the session because headers have already been sent by "/usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php" at line 100. (500 Internal Server Error)

RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php" at line 100.

Exception

RuntimeException

  1. if (\PHP_SESSION_ACTIVE === session_status()) {
  2. throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3. }
  4. if (filter_var(\ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
  5. throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
  6. }
  7. $sessionId = $_COOKIE[session_name()] ?? null;
  8. /*
  9. * Explanation of the session ID regular expression: `/^[a-zA-Z0-9,-]{22,250}$/`.
  1. }
  2. if (!$this->started && $this->saveHandler->isActive()) {
  3. $this->loadSession();
  4. } elseif (!$this->started) {
  5. $this->start();
  6. }
  7. return $this->bags[$name];
  8. }
  1. *
  2. * @throws \InvalidArgumentException If the bag does not exist
  3. */
  4. public function getBag($name)
  5. {
  6. return $this->wrappedStorage->getBag($name);
  7. }
  8. /**
  9. * Registers a SessionBagInterface for use.
  10. */
  1. /**
  2. * {@inheritdoc}
  3. */
  4. public function getBag(string $name)
  5. {
  6. $bag = $this->storage->getBag($name);
  7. return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
  8. }
  9. /**
  1. *
  2. * Note that this method was added to help with IDE autocompletion.
  3. */
  4. private function getAttributeBag(): AttributeBagInterface
  5. {
  6. return $this->getBag($this->attributeName);
  7. }
  8. }
  1. /**
  2. * {@inheritdoc}
  3. */
  4. public function has(string $name)
  5. {
  6. return $this->getAttributeBag()->has($name);
  7. }
  8. /**
  9. * {@inheritdoc}
  10. */
  1. $section = null;
  2. $default_locale = null;
  3. if ($section === null) {
  4. $locale = false;
  5. // Detect locale by value stored in session or cookie
  6. if ($this->canSetSessionValue() && $session->has('multilingual_default_locale')) {
  7. $locale = $session->get('multilingual_default_locale');
  8. } else {
  9. $cookie = $this->app->make('cookie');
  10. if ($cookie->has('multilingual_default_locale')) {
  11. $locale = $cookie->get('multilingual_default_locale');
  1. $locale = $u->getUserLanguageToDisplay();
  2. } else {
  3. if ($this->isEnabled()) {
  4. $ms = Section::getBySectionOfSite($c);
  5. if (!$ms) {
  6. $ms = $this->getPreferredSection();
  7. }
  8. if ($ms) {
  9. $locale = $ms->getLocale();
  10. if ($this->canSetSessionValue()) {
Detector->setupSiteInterfaceLocalization() in /usr/local/src/concretecms-core-versions/941/concrete/src/Http/ResponseFactory.php (line 91)
  1. $c = Page::getByPath($item);
  2. if (is_object($c) && !$c->isError()) {
  3. // Display not found
  4. $dl = $this->app->make('multilingual/detector');
  5. $dl->setupSiteInterfaceLocalization($c);
  6. $this->request->setCurrentPage($c);
  7. return $this->controller($c->getPageController(), $code, $headers);
  8. }
  1. if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
  2. return $response;
  3. } elseif ($response === true) {
  4. return $this->controller($homeController);
  5. } else {
  6. return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
  7. }
  8. }
  9. }
  1. $dl = $this->app->make('multilingual/detector');
  2. $request = $this->request;
  3. if ($collection->isError() && $collection->getError() == COLLECTION_NOT_FOUND) {
  4. if ($response = $this->collectionNotFound($collection, $request, $headers)) {
  5. return $response;
  6. }
  7. }
  8. if ($collection->getCollectionPath() != '/page_not_found') {
  1. return $stack->process($request);
  2. } catch (ResourceNotFoundException $e) {
  3. } catch (MethodNotAllowedException $e) {
  4. }
  5. $c = \Page::getFromRequest($request);
  6. $response = $this->app->make(ResponseFactoryInterface::class)->collection($c);
  7. return $response;
  8. }
  9. /**
  1. $response = null;
  2. if ($this->app->isInstalled()) {
  3. $response = $this->getEarlyDispatchResponse();
  4. }
  5. if ($response === null) {
  6. $response = $this->handleDispatch($request);
  7. }
  8. return $response;
  9. }
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. return $this->dispatcher->dispatch($request);
  7. }
  8. }
  1. ], 401);
  2. }
  3. }
  4. /** @var Response $response */
  5. $response = $frame->next($request);
  6. return $response;
  7. }
  8. /**
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. ], 405);
  2. }
  3. }
  4. /** @var Response $response */
  5. $response = $frame->next($request);
  6. return $response;
  7. }
  8. /**
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. * @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
  2. * @return Response
  3. */
  4. public function process(Request $request, DelegateInterface $frame)
  5. {
  6. $response = $frame->next($request);
  7. if ($response->headers->has('X-Frame-Options') === false) {
  8. $x_frame_options = $this->config->get('concrete.security.misc.x_frame_options');
  9. if ($this->stringValidator->notempty($x_frame_options)) {
  10. $response->headers->set('X-Frame-Options', $x_frame_options);
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. *
  2. * @return Response
  3. */
  4. public function process(Request $request, DelegateInterface $frame)
  5. {
  6. $response = $frame->next($request);
  7. if ($response->headers->has('Strict-Transport-Security') === false) {
  8. $strict_transport_security = $this->config->get('concrete.security.misc.strict_transport_security');
  9. if ($this->stringValidator->notempty($strict_transport_security)) {
  10. $response->headers->set('Strict-Transport-Security', $strict_transport_security);
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. *
  2. * @return Response
  3. */
  4. public function process(Request $request, DelegateInterface $frame)
  5. {
  6. $response = $frame->next($request);
  7. if ($response->headers->has('Content-Security-Policy') === false) {
  8. $csp = $this->config->get('concrete.security.misc.content_security_policy');
  9. if ((is_array($csp) && count($csp) > 0) || $this->stringValidator->notempty($csp)) {
  10. $response->headers->set('Content-Security-Policy', $csp);
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. *
  2. * @see \Concrete\Core\Http\Middleware\MiddlewareInterface::process()
  3. */
  4. public function process(Request $request, DelegateInterface $frame)
  5. {
  6. $response = $frame->next($request);
  7. $cleared = $this->responseCookieJar->getClearedCookies();
  8. foreach ($cleared as $cookie) {
  9. $response->headers->clearCookie($cookie, DIR_REL . '/');
  10. }
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. public function process(Request $request, DelegateInterface $frame)
  2. {
  3. \Concrete\Core\Http\Request::setInstance($request);
  4. $this->app->instance('Concrete\Core\Http\Request', $request);
  5. return $frame->next($request);
  6. }
  7. }
  1. * @param Request $request
  2. * @return Response
  3. */
  4. public function next(Request $request)
  5. {
  6. $response = $this->middleware->process($request, $this->nextDelegate);
  7. // Negotiate PSR7 responses
  8. if ($response instanceof ResponseInterface) {
  9. return $this->foundationFactory->createResponse($response);
  10. }
  1. * @inheritdoc
  2. */
  3. public function process(Request $request)
  4. {
  5. $stack = $this->getStack();
  6. return $stack->next($request);
  7. }
  8. /**
  9. * Reduce middleware into a stack of functions that each call the next
  10. * @return callable
  1. $stack = $this->stack;
  2. if ($stack instanceof MiddlewareStack) {
  3. $stack = $stack->withDispatcher($this->app->make(DispatcherDelegate::class, ['dispatcher' => $this->dispatcher]));
  4. }
  5. return $stack->process($request);
  6. }
  7. }
  1. if (!$response) {
  2. if ($this->shouldProcessRequest($request) === false) {
  3. return null;
  4. }
  5. $response = $this->server->handleRequest($request);
  6. }
  7. // Prepare and return the response
  8. return $response->prepare($request);
  9. }
  1. case self::STATUS_INACTIVE:
  2. throw new \RuntimeException('Runtime has not yet booted.');
  3. }
  4. $runner = $this->getRunner();
  5. $response = $runner->run();
  6. if ($response) {
  7. $this->sendResponse($response);
  8. }
  1. * ----------------------------------------------------------------------------
  2. * Run the runtime.
  3. * ----------------------------------------------------------------------------
  4. */
  5. $runtime = $app->getRuntime();
  6. if ($response = $runtime->run()) {
  7. /*
  8. * ------------------------------------------------------------------------
  9. * Shut it down.
  10. * ------------------------------------------------------------------------
require('/usr/local/src/concretecms-core-versions/941/concrete/dispatcher.php') in /var/www/calhetaboutiquehouses.com/index.php (line 3)
  1. <?php
  2. require 'concrete/dispatcher.php';

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/usr/local/src/concretecms-core-versions/941/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php" at line 100.

  at /usr/local/src/concretecms-core-versions/941/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:145
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/usr/local/src/concretecms-core-versions/941/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:352)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Session/Storage/LoggedStorage.php:248)
  at Concrete\Core\Session\Storage\LoggedStorage->getBag()
     (/usr/local/src/concretecms-core-versions/941/concrete/vendor/symfony/http-foundation/Session/Session.php:261)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/usr/local/src/concretecms-core-versions/941/concrete/vendor/symfony/http-foundation/Session/Session.php:283)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/usr/local/src/concretecms-core-versions/941/concrete/vendor/symfony/http-foundation/Session/Session.php:69)
  at Symfony\Component\HttpFoundation\Session\Session->has()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Multilingual/Service/Detector.php:243)
  at Concrete\Core\Multilingual\Service\Detector->getPreferredSection()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Multilingual/Service/Detector.php:342)
  at Concrete\Core\Multilingual\Service\Detector->setupSiteInterfaceLocalization()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/ResponseFactory.php:91)
  at Concrete\Core\Http\ResponseFactory->notFound()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/ResponseFactory.php:395)
  at Concrete\Core\Http\ResponseFactory->collectionNotFound()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/ResponseFactory.php:239)
  at Concrete\Core\Http\ResponseFactory->collection()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/DefaultDispatcher.php:132)
  at Concrete\Core\Http\DefaultDispatcher->handleDispatch()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/DefaultDispatcher.php:60)
  at Concrete\Core\Http\DefaultDispatcher->dispatch()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/DispatcherDelegate.php:39)
  at Concrete\Core\Http\Middleware\DispatcherDelegate->next()
     (/usr/local/src/concretecms-packages/n53_watcher/src/Watcher/Http/Middleware/WatcherApiTokenMiddleware.php:31)
  at Watcher\Http\Middleware\WatcherApiTokenMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-packages/n53_watcher/src/Watcher/Http/Middleware/WatcherEnabledMiddleware.php:31)
  at Watcher\Http\Middleware\WatcherEnabledMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/FrameOptionsMiddleware.php:39)
  at Concrete\Core\Http\Middleware\FrameOptionsMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/StrictTransportSecurityMiddleware.php:36)
  at Concrete\Core\Http\Middleware\StrictTransportSecurityMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/ContentSecurityPolicyMiddleware.php:36)
  at Concrete\Core\Http\Middleware\ContentSecurityPolicyMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/CookieMiddleware.php:35)
  at Concrete\Core\Http\Middleware\CookieMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/ApplicationMiddleware.php:29)
  at Concrete\Core\Http\Middleware\ApplicationMiddleware->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareDelegate.php:50)
  at Concrete\Core\Http\Middleware\MiddlewareDelegate->next()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/Middleware/MiddlewareStack.php:86)
  at Concrete\Core\Http\Middleware\MiddlewareStack->process()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Http/DefaultServer.php:85)
  at Concrete\Core\Http\DefaultServer->handleRequest()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Foundation/Runtime/Run/DefaultRunner.php:128)
  at Concrete\Core\Foundation\Runtime\Run\DefaultRunner->run()
     (/usr/local/src/concretecms-core-versions/941/concrete/src/Foundation/Runtime/DefaultRuntime.php:102)
  at Concrete\Core\Foundation\Runtime\DefaultRuntime->run()
     (/usr/local/src/concretecms-core-versions/941/concrete/dispatcher.php:45)
  at require('/usr/local/src/concretecms-core-versions/941/concrete/dispatcher.php')
     (/var/www/calhetaboutiquehouses.com/index.php:3)