https://meihan-sl.com/sitemap.xml

Exceptions

Warning: Undefined array key "product_types"

  • Exception
  • Logs
  • Stack Trace

ErrorException

  1.      * @param $queryKey
  2.      *
  3.      * @return WhereClause[]
  4.      */
  5.     protected function createStatements($params$queryKey){
  6.         if(!isset($params['product_types']) && $params['product_types']){
  7.             dd(WhereClause::in('p.product_type',':productTypes',['productTypes' => $params['product_types']]));
  8.             return [
  9.                 WhereClause::in('p.product_type',':productTypes',['productTypes' => $params['product_types']]),
  10.             ];
  11.         }
ProductCustomizer->createStatements(array('orderby' => object(ProductListOrderBy)), 'Product.getQueryBuilderBySearchData') in src/Eccube/Doctrine/Query/WhereCustomizer.php (line 27)
  1.      * @param array $params
  2.      * @param string $queryKey
  3.      */
  4.     final public function customize(QueryBuilder $builder$params$queryKey)
  5.     {
  6.         foreach ($this->createStatements($params$queryKey) as $whereClause) {
  7.             $whereClause->build($builder);
  8.         }
  9.     }
  10.     /**
WhereCustomizer->customize(object(QueryBuilder), array('orderby' => object(ProductListOrderBy)), 'Product.getQueryBuilderBySearchData') in src/Eccube/Doctrine/Query/Queries.php (line 36)
  1.     public function customize($queryKeyQueryBuilder $builder$params)
  2.     {
  3.         if (isset($this->customizers[$queryKey])) {
  4.             /* @var QueryCustomizer $customizer */
  5.             foreach ($this->customizers[$queryKey] as $customizer) {
  6.                 $customizer->customize($builder$params$queryKey);
  7.             }
  8.         }
  9.         return $builder;
  10.     }
Queries->customize('Product.getQueryBuilderBySearchData', object(QueryBuilder), array('orderby' => object(ProductListOrderBy))) in src/Eccube/Repository/ProductRepository.php (line 221)
  1.             }
  2.             $qb
  3.                 ->addOrderBy('p.id''DESC');
  4.         }
  5.         return $this->queries->customize(QueryKey::PRODUCT_SEARCH$qb$searchData);
  6.     }
  7.     /**
  8.      * get query builder.
  9.      *
ProductRepository->getQueryBuilderBySearchData(array('orderby' => object(ProductListOrderBy))) in src/Eccube/Controller/SitemapController.php (line 103)
  1.         $Product $this->productRepository->findOneBy(['Status' => 1], ['update_date' => 'DESC']);
  2.         // フロントの商品一覧の条件で商品情報を取得
  3.         $ProductListOrder $this->productListOrderByRepository->find($this->eccubeConfig['eccube_product_order_newer']);
  4.         $productQueryBuilder $this->productRepository->getQueryBuilderBySearchData(['orderby' => $ProductListOrder]);
  5.         /** @var SlidingPagination $pagination */
  6.         $pagination $paginator->paginate(
  7.             $productQueryBuilder,
  8.             1,
  9.             $this->eccubeConfig['eccube_sitemap_products_per_page']
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in index.php/ (line 83)
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);