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());
// this is to make sure that dependent repos actually have cart ref
// something that DI couldn't have fixed due to complexity
$tldRepo->setPromoContextBuilder($this);
$productRepo->setPromoContextBuilder($this);
if($this->session->get(self::$cartKey, NULL)){
$entity = $this->session->get(self::$cartKey, NULL);
try {
$this->setId($entity['id']);
$this->confirmed = $entity['confirmed'];
$this->invoicePaid = $entity['invoicepaid'];
return $this->privates['App\\Services\\Cart'];
}
$this->privates['App\\Services\\Cart'] = $instance = new \App\Services\Cart(new \App\Services\PromoConditions([0 => new \App\Entity\Promotions\RequireContext($this->parameters['require.qbmail.bundle'], '155.QBMAIL.BUNDLE'), 1 => new \App\Entity\Promotions\RequireContext($this->parameters['require.qbmail.bundle'], '180.QBMAIL.BUNDLE'), 2 => new \App\Entity\Promotions\RequireContext($this->parameters['require.qbmail.bundle'], '230.QBMAIL.BUNDLE'), 3 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.any.qbmail.hosting'], [0 => '180.QBMAIL.BUNDLE', 1 => '230.QBMAIL.BUNDLE', 2 => '465.QBMAIL.BUNDLE', 3 => '540.QBMAIL.BUNDLE', 4 => '690.QBMAIL.BUNDLE'], '155.QBMAIL.BUNDLE'), 4 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.any.qbmail.hosting'], [0 => '155.QBMAIL.BUNDLE', 1 => '230.QBMAIL.BUNDLE', 2 => '465.QBMAIL.BUNDLE', 3 => '540.QBMAIL.BUNDLE', 4 => '690.QBMAIL.BUNDLE'], '180.QBMAIL.BUNDLE'), 5 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.any.qbmail.hosting'], [0 => '155.QBMAIL.BUNDLE', 1 => '180.QBMAIL.BUNDLE', 2 => '465.QBMAIL.BUNDLE', 3 => '540.QBMAIL.BUNDLE', 4 => '690.QBMAIL.BUNDLE'], '230.QBMAIL.BUNDLE'), 6 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.3y.qbmail.hosting'], [0 => '155.QBMAIL.BUNDLE', 1 => '180.QBMAIL.BUNDLE', 2 => '230.QBMAIL.BUNDLE', 3 => '540.QBMAIL.BUNDLE', 4 => '690.QBMAIL.BUNDLE'], '465.QBMAIL.BUNDLE'), 7 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.3y.qbmail.hosting'], [0 => '155.QBMAIL.BUNDLE', 1 => '180.QBMAIL.BUNDLE', 2 => '230.QBMAIL.BUNDLE', 3 => '465.QBMAIL.BUNDLE', 4 => '690.QBMAIL.BUNDLE'], '540.QBMAIL.BUNDLE'), 8 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.3y.qbmail.hosting'], [0 => '155.QBMAIL.BUNDLE', 1 => '180.QBMAIL.BUNDLE', 2 => '230.QBMAIL.BUNDLE', 3 => '465.QBMAIL.BUNDLE', 4 => '540.QBMAIL.BUNDLE'], '690.QBMAIL.BUNDLE'), 9 => new \App\Entity\Promotions\RequireContext($this->parameters['require.starter.bundle'], 'COM.STARTER.BUNDLE'), 10 => new \App\Entity\Promotions\RequireContext($this->parameters['require.starter.bundle'], 'IIS.STARTER.BUNDLE'), 11 => new \App\Entity\Promotions\RequireContext($this->parameters['require.professional.bundle'], 'IIS.PROFESSIONAL.BUNDLE'), 12 => new \App\Entity\Promotions\RequireContext($this->parameters['require.professional.bundle'], 'COM.PROFESSIONAL.BUNDLE'), 13 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.starter.hosting'], [0 => 'IIS.STARTER.BUNDLE'], 'COM.STARTER.BUNDLE'), 14 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.starter.hosting'], [0 => 'COM.STARTER.BUNDLE'], 'IIS.STARTER.BUNDLE'), 15 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.professional.hosting'], [0 => 'COM.PROFESSIONAL.BUNDLE'], 'IIS.PROFESSIONAL.BUNDLE'), 16 => new \App\Entity\Promotions\RequireInCart($this->parameters['require.professional.hosting'], [0 => 'IIS.PROFESSIONAL.BUNDLE'], 'COM.PROFESSIONAL.BUNDLE'), 17 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.STARTER.BUNDLE.1Y'), 18 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.STARTER.BUNDLE.3Y'), 19 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.PROFESSIONAL.BUNDLE.1Y'), 20 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.PROFESSIONAL.BUNDLE.3Y'), 21 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.BUSINESS.BUNDLE.1Y'), 22 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting'], 'FREE.TO.BUSINESS.BUNDLE.3Y'), 23 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.STARTER.1Y'), 24 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.STARTER.1Y'), 25 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.STARTER.1Y'), 26 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.STARTER.3Y'), 27 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.STARTER.3Y'), 28 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.STARTER.3Y'), 29 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.PROFESSIONAL.1Y'), 30 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.PROFESSIONAL.1Y'), 31 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.PROFESSIONAL.1Y'), 32 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.PROFESSIONAL.3Y'), 33 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.PROFESSIONAL.3Y'), 34 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.PROFESSIONAL.3Y'), 35 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.BUSINESS.1Y'), 36 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.BUSINESS.1Y'), 37 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.BUSINESS.1Y'), 38 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.BUSINESS.3Y'), 39 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.pro'], 'WEEBLY.PRO.BUNDLE.BUSINESS.3Y'), 40 => new \App\Entity\Promotions\RequireContext($this->parameters['require.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.BUSINESS.3Y'), 41 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.STARTER.1Y'), 42 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.STARTER.1Y'), 43 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.STARTER.1Y'), 44 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.STARTER.3Y'), 45 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.STARTER.3Y'), 46 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.STARTER.3Y'), 47 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.PROFESSIONAL.1Y'), 48 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.PROFESSIONAL.1Y'), 49 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.PROFESSIONAL.1Y'), 50 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.PROFESSIONAL.3Y'), 51 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.PROFESSIONAL.3Y'), 52 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.PROFESSIONAL.3Y'), 53 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.BUSINESS.1Y'), 54 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.BUSINESS.1Y'), 55 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.BUSINESS.1Y'), 56 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.starter'], 'WEEBLY.STARTER.BUNDLE.FREE.TO.BUSINESS.3Y'), 57 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.pro'], 'WEEBLY.PRO.BUNDLE.FREE.TO.BUSINESS.3Y'), 58 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.free.hosting.with.weebly.business'], 'WEEBLY.BUSINESS.BUNDLE.FREE.TO.BUSINESS.3Y'), 59 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.old.with.weebly.1y.1m'], 'FREE.UPGRADE.WITH.WEEBLY.1Y.1M'), 60 => new \App\Entity\Promotions\RequireContext($this->parameters['require.upgrade.from.old.with.weebly.3y'], 'DISCOUNTED.UPGRADE.WITH.WEEBLY.3Y'), 61 => new \App\Entity\Promotions\RequireContext($this->parameters['require.affiliate.keepswedengoing'], 'STARTER.AFFILIATE.KEEPSWEDENGOING.1Y'), 62 => new \App\Entity\Promotions\RequireContext($this->parameters['require.affiliate.keepswedengoing'], 'PROFESSIONAL.AFFILIATE.KEEPSWEDENGOING.1Y')]), $a, ($this->privates['App\\Entity\\Repository\\ClientInvoiceRepository'] ?? $this->load('getClientInvoiceRepositoryService.php')), $b, ($this->privates['App\\Services\\Whmcs'] ?? $this->getWhmcsService()), ($this->services['session'] ?? $this->load('getSessionService.php')), ($this->privates['App\\Entity\\Repository\\UserRepository'] ?? $this->load('getUserRepositoryService.php')), ($this->privates['App\\Services\\DibsData'] ?? $this->load('getDibsDataService.php')), ($this->services['request_stack'] ?? ($this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), $c, ($this->services['router'] ?? $this->getRouterService()), ($this->privates['App\\Services\\Affiliates'] ?? $this->load('getAffiliatesService.php')));
$instance->load(($this->privates['App\\Entity\\Repository\\ProductRepository'] ?? $this->load('getProductRepositoryService.php')), ($this->privates['App\\Entity\\Repository\\TldRepository'] ?? $this->load('getTldRepositoryService.php')), ($this->privates['App\\Services\\DomainTool'] ?? $this->load('getDomainToolService.php')));
return $instance;
include_once $this->targetDirs[3].'/src/Entity/Repository/PromotionableRepository.php';
include_once $this->targetDirs[3].'/src/Entity/Repository/ProductRepository.php';
$this->privates['App\\Entity\\Repository\\ProductRepository'] = $instance = new \App\Entity\Repository\ProductRepository(($this->privates['App\\Services\\Whmcs'] ?? $this->getWhmcsService()), ($this->services['security.token_storage'] ?? ($this->services['security.token_storage'] = new \Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage())), ($this->services['translator'] ?? $this->getTranslatorService()), ($this->privates['App\\Entity\\Repository\\PeriodRepository'] ?? ($this->privates['App\\Entity\\Repository\\PeriodRepository'] = new \App\Entity\Repository\PeriodRepository())), ($this->privates['App\\Entity\\Repository\\PromotionRepository'] ?? $this->load('getPromotionRepositoryService.php')), ($this->privates['App\\Services\\Localizator'] ?? $this->getLocalizatorService()), $this->parameters['product.customfields']);
$instance->setPromoContextBuilder(($this->privates['App\\Services\\Cart'] ?? $this->load('getCartService.php')));
return $instance;
$i = strrpos($controller, ':');
$controller = substr($controller, 0, $i).strtolower(substr($controller, $i));
}
try {
yield $this->container->get($controller)->get($argument->getName());
} catch (RuntimeException $e) {
$what = sprintf('argument $%s of "%s()"', $argument->getName(), $controller);
$message = preg_replace('/service "\.service_locator\.[^"]++"/', $what, $e->getMessage());
if ($e->getMessage() === $message) {
$event = new FilterControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
$event = new FilterControllerArgumentsEvent($this, $controller, $arguments, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
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('_cart_data', null) (src/Services/Cart.php:413) at App\Services\Cart->load(object(ProductRepository), object(TldRepository), object(DomainTool)) (var/cache/prod/ContainerKLt0GoG/getCartService.php:35) at require('/home/svd/sites/var/cache/prod/ContainerKLt0GoG/getCartService.php') (var/cache/prod/ContainerKLt0GoG/srcApp_KernelProdDebugContainer.php:327) at ContainerKLt0GoG\srcApp_KernelProdDebugContainer->load('getCartService.php') (var/cache/prod/ContainerKLt0GoG/getProductRepositoryService.php:14) at require('/home/svd/sites/var/cache/prod/ContainerKLt0GoG/getProductRepositoryService.php') (var/cache/prod/ContainerKLt0GoG/srcApp_KernelProdDebugContainer.php:327) at ContainerKLt0GoG\srcApp_KernelProdDebugContainer->load('getProductRepositoryService.php') (vendor/symfony/dependency-injection/Container.php:433) at Symfony\Component\DependencyInjection\Container->getService('privates', 'App\\Entity\\Repository\\ProductRepository', 'getProductRepositoryService.php', true) (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:38) at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get('productRepo') (vendor/symfony/http-kernel/Controller/ArgumentResolver/ServiceValueResolver.php:77) at Symfony\Component\HttpKernel\Controller\ArgumentResolver\ServiceValueResolver->resolve(object(Request), object(ArgumentMetadata)) (vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:58) at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->resolve(object(Request), object(ArgumentMetadata)) (vendor/symfony/http-kernel/Controller/ArgumentResolver.php:62) at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments(object(Request), array(object(ServiceController), 'sslcertificatesAction')) (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:38) at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments(object(Request), array(object(ServiceController), 'sslcertificatesAction')) (vendor/symfony/http-kernel/HttpKernel.php:142) 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) |