Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
in
vendor/sylius/resource-bundle/src/Bundle/ExpressionLanguage/NotNullExpressionFunctionProvider.php
(line 41)
*
* @return mixed
*/
function ($arguments, $result) {
if (null === $result) {
throw new NotFoundHttpException('Requested page is invalid.');
}
return $result;
},
),
in
vendor/symfony/expression-language/Node/FunctionNode.php
->
Sylius\Bundle\ResourceBundle\ExpressionLanguage\{closure}
(line 50)
$arguments = [$values];
foreach ($this->nodes['arguments']->nodes as $node) {
$arguments[] = $node->evaluate($functions, $values);
}
return $functions[$this->attributes['name']]['evaluator'](...$arguments);
}
public function toArray()
{
$array = [];
in
vendor/symfony/expression-language/ExpressionLanguage.php
->
evaluate
(line 67)
*
* @return mixed
*/
public function evaluate($expression, array $values = [])
{
return $this->parse($expression, array_keys($values))->getNodes()->evaluate($this->functions, $values);
}
/**
* Parses an expression.
*
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
->
evaluate
(line 103)
return is_string($variable) ? sprintf('"%s"', addslashes($variable)) : $variable;
},
$expression,
);
return $this->expression->evaluate($expression, ['container' => $this->container]);
}
/** @return mixed */
private function parseRequestValueTypecast(string $parameter, Request $request)
{
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
->
parseRequestValueExpression
(line 69)
if (0 === strpos($parameter, '$')) {
return RequestParameterProvider::provide($request, substr($parameter, 1));
}
if (0 === strpos($parameter, 'expr:')) {
return $this->parseRequestValueExpression(substr($parameter, 5), $request);
}
if (0 === strpos($parameter, '!!')) {
return $this->parseRequestValueTypecast($parameter, $request);
}
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
->
parseRequestValue
(line 47)
function ($parameter) use ($request) {
if (is_array($parameter)) {
return $this->parseRequestValues($parameter, $request);
}
return $this->parseRequestValue($parameter, $request);
},
$parameters,
);
}
ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}()
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
array_map
(line 36)
$this->expression = $expression;
}
public function parseRequestValues(array $parameters, Request $request): array
{
return array_map(
/**
* @param mixed $parameter
*
* @return mixed
*/
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
->
parseRequestValues
(line 44)
*
* @return mixed
*/
function ($parameter) use ($request) {
if (is_array($parameter)) {
return $this->parseRequestValues($parameter, $request);
}
return $this->parseRequestValue($parameter, $request);
},
$parameters,
ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}()
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
array_map
(line 36)
$this->expression = $expression;
}
public function parseRequestValues(array $parameters, Request $request): array
{
return array_map(
/**
* @param mixed $parameter
*
* @return mixed
*/
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
->
parseRequestValues
(line 44)
*
* @return mixed
*/
function ($parameter) use ($request) {
if (is_array($parameter)) {
return $this->parseRequestValues($parameter, $request);
}
return $this->parseRequestValue($parameter, $request);
},
$parameters,
ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}()
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php
array_map
(line 36)
$this->expression = $expression;
}
public function parseRequestValues(array $parameters, Request $request): array
{
return array_map(
/**
* @param mixed $parameter
*
* @return mixed
*/
in
vendor/sylius/resource-bundle/src/Bundle/Grid/View/ResourceGridViewFactory.php
->
parseRequestValues
(line 44)
RequestConfiguration $requestConfiguration,
): ResourceGridView {
$driverConfiguration = $grid->getDriverConfiguration();
$request = $requestConfiguration->getRequest();
$grid->setDriverConfiguration($this->parametersParser->parseRequestValues($driverConfiguration, $request));
return new ResourceGridView($this->dataProvider->getData($grid, $parameters), $grid, $parameters, $metadata, $requestConfiguration);
}
}
in
vendor/sylius/resource-bundle/src/Bundle/Grid/Controller/ResourcesResolver.php
->
create
(line 55)
$gridDefinition = $this->gridProvider->get($requestConfiguration->getGrid());
$request = $requestConfiguration->getRequest();
$parameters = new Parameters($request->query->all());
$gridView = $this->gridViewFactory->create($gridDefinition, $parameters, $requestConfiguration->getMetadata(), $requestConfiguration);
if ($requestConfiguration->isHtmlRequest()) {
return $gridView;
}
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ResourcesCollectionProvider.php
->
getResources
(line 39)
/**
* @psalm-suppress MissingReturnType
*/
public function get(RequestConfiguration $requestConfiguration, RepositoryInterface $repository)
{
$resources = $this->resourcesResolver->getResources($requestConfiguration, $repository);
$paginationLimits = [];
if ($resources instanceof ResourceGridView) {
$paginator = $resources->getData();
$paginationLimits = $resources->getDefinition()->getLimits();
in
vendor/sylius/resource-bundle/src/Bundle/Controller/ResourceController.php
->
get
(line 142)
public function indexAction(Request $request): Response
{
$configuration = $this->requestConfigurationFactory->create($this->metadata, $request);
$this->isGrantedOr403($configuration, ResourceActions::INDEX);
$resources = $this->resourcesCollectionProvider->get($configuration, $this->repository);
$event = $this->eventDispatcher->dispatchMultiple(ResourceActions::INDEX, $configuration, $resources);
$eventResponse = $event->getResponse();
if (null !== $eventResponse) {
return $eventResponse;
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
No log messages
Stack Trace
NotFoundHttpException
|
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Requested page is invalid. at vendor/sylius/resource-bundle/src/Bundle/ExpressionLanguage/NotNullExpressionFunctionProvider.php:41 at Sylius\Bundle\ResourceBundle\ExpressionLanguage\NotNullExpressionFunctionProvider->Sylius\Bundle\ResourceBundle\ExpressionLanguage\{closure}() (vendor/symfony/expression-language/Node/FunctionNode.php:50) at Symfony\Component\ExpressionLanguage\Node\FunctionNode->evaluate() (vendor/symfony/expression-language/ExpressionLanguage.php:67) at Symfony\Component\ExpressionLanguage\ExpressionLanguage->evaluate() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:103) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->parseRequestValueExpression() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:69) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->parseRequestValue() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:47) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}() at array_map() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:36) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->parseRequestValues() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:44) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}() at array_map() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:36) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->parseRequestValues() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:44) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->Sylius\Bundle\ResourceBundle\Controller\{closure}() at array_map() (vendor/sylius/resource-bundle/src/Bundle/Controller/ParametersParser.php:36) at Sylius\Bundle\ResourceBundle\Controller\ParametersParser->parseRequestValues() (vendor/sylius/resource-bundle/src/Bundle/Grid/View/ResourceGridViewFactory.php:44) at Sylius\Bundle\ResourceBundle\Grid\View\ResourceGridViewFactory->create() (vendor/sylius/resource-bundle/src/Bundle/Grid/Controller/ResourcesResolver.php:55) at Sylius\Bundle\ResourceBundle\Grid\Controller\ResourcesResolver->getResources() (vendor/sylius/resource-bundle/src/Bundle/Controller/ResourcesCollectionProvider.php:39) at Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProvider->get() (vendor/sylius/resource-bundle/src/Bundle/Controller/ResourceController.php:142) at Sylius\Bundle\ResourceBundle\Controller\ResourceController->indexAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |