Symfony Exception

ContextErrorException

HTTP 500 Internal Server Error

Warning: Invalid argument supplied for foreach()

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  1.     private function getProductUrl(\Kiwi\EshopBundle\Entity\Product $product null$product_id 0$lang) {
  2.         $url $this->controller->get('page_twig_extension')->kpathFunction(3$lang);
  3.         $category null;
  4.         foreach($this->controller->get('eshop_categories_handle')->getProductCategories($product) as $product_category) {
  5.             if($product_category->getCategory()->getParentRow()) {
  6.                 $category $product_category->getCategory();
  7.                 break;
  8.             }
  9.         }
EshopProductsHandle->getProductUrl() in src/Kiwi/EshopBundle/Service/EshopProductsHandle.php (line 1547)
  1.                     'params_full' => $this->eshopParamsHandle->getParamsCollection($lang$producttruefalse),
  2.                     'attachments' => $attachments,
  3.                     'stock' => ($product->getStockShow()) ? $stockObj->getStock($product->getId())['stock'] : false,
  4.                     'siblings' => $siblings,
  5.                     'similars' => $similars,
  6.                     'detail_url' => $this->getProductUrl($product0$lang),
  7.                     //'detail_url' => $this->getHolderUrl($product->getHolder(),$lang).'/'.$product->getCode(),
  8.                     'master_category' => $master_category,
  9.                     'holder' => $product->getHolder(),
  10.                     'is_holder' => $product->getIsHolder()
  11.                 );
EshopProductsHandle->getProductReturnArrayBlock() in src/Farline/InspirationBundle/Service/InspirationsHandle.php (line 51)
  1.         foreach ($data as $e) {
  2.             $e->products = [];
  3.             $inspirationProducts $this->em->getRepository($this->repo_co)->findBy(array('inspiration_id' => $e->getId()),array('sort_num' => 'ASC'));
  4.             foreach ($inspirationProducts as $inspirationProduct) {
  5.                 $e->products[] = $this->eshopProductsHandle->getProductReturnArrayBlock($inspirationProduct->getProduct(),'cz',array());
  6.             }
  7.         }
  8.         return $data;
  9.     }
InspirationsHandle->getInspirations() in src/Kiwi/PageBundle/Service/PageModuleTemplate.php (line 90)
  1.                     $serviceObj->setController($this->controller);
  2.                 if($method_params)
  3.                     $config['method_params'] = $method_params;
  4.                 $data $serviceObj->$method($config$this->request);
  5.             }
  6.             //variables dynamic content
  7.             $v_to_replace = array();
  8.             $v_with_replace = array();
PageModuleTemplate->getKiwiFrontendModuleBox() in src/Kiwi/PageBundle/Service/PageFrontendHandle.php (line 129)
  1.                             if($this->config['lang'] == $module->getLanguage()->GetCode())
  2.                                 $append_module true;
  3.                         }
  4.                         if($append_module) {
  5.                             $module_html $this->page_modules_handle->getKiwiModule(md5($module->getNamespace()))->getKiwiFrontendModuleBox($module,$this->config);
  6.                             if($this->getIsKewee()) {
  7.                                 $placeholder_html .= $this->kiweePageFrontendHandle->getModuleHtml(
  8.                                     $module->getNamespace(),
  9.                                     $module,
PageFrontendHandle->getPageData() in src/Kiwi/PageBundle/Service/PageFrontendHandle.php (line 171)
  1.             $this->page_modules_handle->setResponse($response);
  2.             $twig = clone $this->controller->get('twig');
  3.             $page_html $twig->render($this->controller->get('BL')->cacheStringTemplate(
  4.                 '{% autoescape false %}'.$this->page->getLayout()->getTpl().'{% endautoescape %}'),
  5.                 $this->getPageData()
  6.             );
  7.             $response->setContent($page_html);
  8.             $response->setStatusCode(Response::HTTP_OK);
  9.             $response->headers->set('Content-Type''text/html');
PageFrontendHandle->getPageHtml() in src/Kiwi/FrontPageBundle/Controller/DefaultController.php (line 53)
  1.         if($redir_url) {
  2.             $suffix $pageObj->getRedirectSuffix();
  3.             return $this->redirect($redir_url.$suffix);
  4.         } else {
  5.             return $pageObj->getPageHtml();
  6.         }
  7.     }
  8.     private function prerouter(Request $request) {
  9.         //$path = $request->getPathInfo();
DefaultController->pageAction() in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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.     {
  2.         if (false === $this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     /**
  8.      * Gets a HTTP kernel from the container.
  9.      *
Kernel->handle() in web/app_dev.php (line 30)
  1. $kernel = new AppKernel('dev'true);
  2. if (PHP_VERSION_ID 70000) {
  3.     $kernel->loadClassCache();
  4. }
  5. $request Request::createFromGlobals();
  6. $response $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request$response);

Logs 1

Level Channel Message
INFO 05:29:54 request Matched route "kiwi_front_page_homepage_page_cz".
INFO 05:29:54 security Populated the TokenStorage with an anonymous Token.
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\EventListener\FirewallListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
INFO 05:29:54 php User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
DEBUG 05:29:54 doctrine SELECT k0_.id AS id_0, k0_.project_name AS project_name_1, k0_.domains AS domains_2, k0_.user_id AS user_id_3, k0_.eshop_id AS eshop_id_4, k0_.user_id AS user_id_5, k0_.eshop_id AS eshop_id_6 FROM kw_web k0_ WHERE k0_.domains LIKE ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT k0_.id AS id_0, k0_.name AS name_1, k0_.page_name AS page_name_2, k0_.parent_row_id AS parent_row_id_3, k0_.prevent_changes AS prevent_changes_4, k0_.sort_num AS sort_num_5, k0_.layout_id AS layout_id_6, k0_.in_menu_display AS in_menu_display_7, k0_.image_id AS image_id_8, k0_.gallery_id AS gallery_id_9, k0_.redirect_id AS redirect_id_10, k0_.redirect_suffix AS redirect_suffix_11, k0_.is_templates_root AS is_templates_root_12, k0_.system_folder AS system_folder_13, k0_.opt_one AS opt_one_14, k0_.opt_two AS opt_two_15, k0_.opt_three AS opt_three_16, k0_.web_id AS web_id_17, k0_.parent_row_id AS parent_row_id_18, k0_.layout_id AS layout_id_19, k0_.image_id AS image_id_20, k0_.gallery_id AS gallery_id_21, k0_.redirect_id AS redirect_id_22, k0_.web_id AS web_id_23 FROM kw_tree_page k0_ WHERE k0_.page_name LIKE '%<![CDATA[koupelna-pro-dve-slecny]]>%' AND k0_.web_id = 1
DEBUG 05:29:54 doctrine SELECT k0_.id AS id_0, k0_.name AS name_1, k0_.page_name AS page_name_2, k0_.parent_row_id AS parent_row_id_3, k0_.prevent_changes AS prevent_changes_4, k0_.sort_num AS sort_num_5, k0_.layout_id AS layout_id_6, k0_.in_menu_display AS in_menu_display_7, k0_.image_id AS image_id_8, k0_.gallery_id AS gallery_id_9, k0_.redirect_id AS redirect_id_10, k0_.redirect_suffix AS redirect_suffix_11, k0_.is_templates_root AS is_templates_root_12, k0_.system_folder AS system_folder_13, k0_.opt_one AS opt_one_14, k0_.opt_two AS opt_two_15, k0_.opt_three AS opt_three_16, k0_.web_id AS web_id_17, k0_.parent_row_id AS parent_row_id_18, k0_.layout_id AS layout_id_19, k0_.image_id AS image_id_20, k0_.gallery_id AS gallery_id_21, k0_.redirect_id AS redirect_id_22, k0_.web_id AS web_id_23 FROM kw_tree_page k0_ WHERE k0_.page_name LIKE '%<![CDATA[7]]>%' AND k0_.web_id = 1
DEBUG 05:29:54 doctrine SELECT k0_.id AS id_0, k0_.name AS name_1, k0_.page_name AS page_name_2, k0_.parent_row_id AS parent_row_id_3, k0_.prevent_changes AS prevent_changes_4, k0_.sort_num AS sort_num_5, k0_.layout_id AS layout_id_6, k0_.in_menu_display AS in_menu_display_7, k0_.image_id AS image_id_8, k0_.gallery_id AS gallery_id_9, k0_.redirect_id AS redirect_id_10, k0_.redirect_suffix AS redirect_suffix_11, k0_.is_templates_root AS is_templates_root_12, k0_.system_folder AS system_folder_13, k0_.opt_one AS opt_one_14, k0_.opt_two AS opt_two_15, k0_.opt_three AS opt_three_16, k0_.web_id AS web_id_17, k0_.parent_row_id AS parent_row_id_18, k0_.layout_id AS layout_id_19, k0_.image_id AS image_id_20, k0_.gallery_id AS gallery_id_21, k0_.redirect_id AS redirect_id_22, k0_.web_id AS web_id_23 FROM kw_tree_page k0_ WHERE k0_.page_name LIKE '%<![CDATA[inspirace]]>%' AND k0_.web_id = 1
INFO 05:29:54 php User Deprecated: The "Symfony\Bridge\Twig\Extension\FormExtension" class implements "Twig\Extension\InitRuntimeInterface" that is deprecated since Twig 2.7, to be removed in 3.0
INFO 05:29:54 php User Deprecated: Using the "Twig_Extension_GlobalsInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\GlobalsInterface" instead.
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.group_id AS group_id_3, t0.tpl AS tpl_4, t0.kiwi_tpl AS kiwi_tpl_5, t0.group_id AS group_id_6 FROM kw_templates_templates_groups_templates t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.web_id AS web_id_4, t0.web_id AS web_id_5 FROM kw_languages t0 WHERE t0.code = ? AND t0.web_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ? AND t0.language_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.web_id AS web_id_4, t0.web_id AS web_id_5 FROM kw_languages t0 WHERE t0.code = ? AND t0.web_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ? AND t0.language_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.web_id AS web_id_4, t0.web_id AS web_id_5 FROM kw_languages t0 WHERE t0.code = ? AND t0.web_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.phrase AS phrase_3, t0.language_id AS language_id_4, t0.language_id AS language_id_5 FROM kw_phrases t0 WHERE t0.name = ? AND t0.language_id = ? LIMIT 1
DEBUG 05:29:54 doctrine "START TRANSACTION"
DEBUG 05:29:54 doctrine INSERT INTO kw_eshop_logger (log_key, message, created_time, is_error, is_sent) VALUES (?, ?, ?, ?, ?)
DEBUG 05:29:54 doctrine "COMMIT"
DEBUG 05:29:54 doctrine "START TRANSACTION"
DEBUG 05:29:54 doctrine INSERT INTO kw_eshop_logger (log_key, message, created_time, is_error, is_sent) VALUES (?, ?, ?, ?, ?)
DEBUG 05:29:54 doctrine "COMMIT"
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.template_id AS template_id_3, t0.template_id AS template_id_4 FROM kw_templates_templates_groups_templates_placeholders t0 WHERE t0.template_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.namespace AS namespace_2, t0.page_id AS page_id_3, t0.placeholder_id AS placeholder_id_4, t0.template_id AS template_id_5, t0.template_dso_service AS template_dso_service_6, t0.template_dso_method AS template_dso_method_7, t0.article_id AS article_id_8, t0.gallery_id AS gallery_id_9, t0.database_namespace AS database_namespace_10, t0.database_query AS database_query_11, t0.map_id AS map_id_12, t0.mirror_id AS mirror_id_13, t0.language_id AS language_id_14, t0.prevent_changes AS prevent_changes_15, t0.calendar_id AS calendar_id_16, t0.is_active AS is_active_17, t0.sort_num AS sort_num_18, t0.page_id AS page_id_19, t0.placeholder_id AS placeholder_id_20, t0.template AS template_21, t0.article_id AS article_id_22, t0.gallery_id AS gallery_id_23, t0.map_id AS map_id_24, t0.mirror_id AS mirror_id_25, t0.language_id AS language_id_26, t0.calendar_id AS calendar_id_27 FROM kw_tree_page_modules t0 WHERE t0.page_id = ? AND t0.placeholder_id = ? AND t0.is_active = ? ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.article_id AS article_id_2, t0.type AS type_3, t0.sort_num AS sort_num_4, t0.article_id AS article_id_5 FROM farline_inspirations t0 ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.inspiration_id AS inspiration_id_2, t0.product_id AS product_id_3, t0.sort_num AS sort_num_4, t0.inspiration_id AS inspiration_id_5, t0.product_id AS product_id_6 FROM farline_inspiration_products t0 WHERE t0.inspiration_id = ? ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt_1 AS name_alt_1_3, t0.name_alt_2 AS name_alt_2_4, t0.name_letter AS name_letter_5, t0.code AS code_6, t0.created_time AS created_time_7, t0.updated_time AS updated_time_8, t0.description_fast AS description_fast_9, t0.description AS description_10, t0.action_text AS action_text_11, t0.quantity AS quantity_12, t0.quantity_in_package AS quantity_in_package_13, t0.weight_g AS weight_g_14, t0.price_purchase AS price_purchase_15, t0.price_sale AS price_sale_16, t0.price_action AS price_action_17, t0.price_without_vat AS price_without_vat_18, t0.price_package_with_vat AS price_package_with_vat_19, t0.stock_show AS stock_show_20, t0.stock_alt AS stock_alt_21, t0.vat_id AS vat_id_22, t0.is_action AS is_action_23, t0.is_new AS is_new_24, t0.is_tip AS is_tip_25, t0.currency_id AS currency_id_26, t0.unit_id AS unit_id_27, t0.gallery_id AS gallery_id_28, t0.producer_id AS producer_id_29, t0.eshop_id AS eshop_id_30, t0.holder_id AS holder_id_31, t0.is_deleted AS is_deleted_32, t0.is_hidden AS is_hidden_33, t0.is_holder AS is_holder_34, t0.sort_num AS sort_num_35, t0.vat_id AS vat_id_36, t0.currency_id AS currency_id_37, t0.unit_id AS unit_id_38, t0.gallery_id AS gallery_id_39, t0.producer_id AS producer_id_40, t0.eshop_id AS eshop_id_41, t0.holder_id AS holder_id_42 FROM kw_eshop_product t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.folder_id = ? AND t0.type = ? ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.parent_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.parent_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.parent_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.parent_id = ? LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.version_num AS version_num_2, t0.last_update AS last_update_3 FROM kw_images_cache_version t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.attachment_id AS attachment_id_3, t0.file_id AS file_id_4, t0.product_id AS product_id_5, t0.attachment_id AS attachment_id_6, t0.file_id AS file_id_7 FROM kw_eshop_co_product_attachment t0 WHERE t0.product_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.eshop_id AS eshop_id_4, t0.sort_num AS sort_num_5, t0.eshop_id AS eshop_id_6 FROM kw_eshop_attachment t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.hash_name AS hash_name_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.extension AS extension_6, t0.size AS size_7, t0.sort_num AS sort_num_8, t0.folder_id AS folder_id_9 FROM kw_tree_souborovnik_soubory t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.eshop_id AS eshop_id_4, t0.sort_num AS sort_num_5, t0.eshop_id AS eshop_id_6 FROM kw_eshop_unit t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.image_id AS image_id_4, t0.image_2_id AS image_2_id_5, t0.eshop_id AS eshop_id_6, t0.article_id AS article_id_7, t0.sort_num AS sort_num_8, t0.image_id AS image_id_9, t0.image_2_id AS image_2_id_10, t0.eshop_id AS eshop_id_11, t0.article_id AS article_id_12 FROM kw_eshop_producers t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.name_alt AS name_alt_3, t0.folder_id AS folder_id_4, t0.prevent_changes AS prevent_changes_5, t0.width AS width_6, t0.height AS height_7, t0.extension AS extension_8, t0.alt_name AS alt_name_9, t0.alt_desc_1 AS alt_desc_1_10, t0.alt_desc_2 AS alt_desc_2_11, t0.parent_id AS parent_id_12, t0.type AS type_13, t0.sort_num AS sort_num_14, t0.folder_id AS folder_id_15, t0.parent_id AS parent_id_16 FROM kw_tree_image_gallery_images t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.page_name AS page_name_3, t0.parent_row_id AS parent_row_id_4, t0.prevent_changes AS prevent_changes_5, t0.sort_num AS sort_num_6, t0.layout_id AS layout_id_7, t0.in_menu_display AS in_menu_display_8, t0.image_id AS image_id_9, t0.gallery_id AS gallery_id_10, t0.redirect_id AS redirect_id_11, t0.redirect_suffix AS redirect_suffix_12, t0.is_templates_root AS is_templates_root_13, t0.system_folder AS system_folder_14, t0.opt_one AS opt_one_15, t0.opt_two AS opt_two_16, t0.opt_three AS opt_three_17, t0.web_id AS web_id_18, t0.parent_row_id AS parent_row_id_19, t0.layout_id AS layout_id_20, t0.image_id AS image_id_21, t0.gallery_id AS gallery_id_22, t0.redirect_id AS redirect_id_23, t0.web_id AS web_id_24 FROM kw_tree_page t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT k0_.id AS id_0, k0_.product_id AS product_id_1, k0_.category_id AS category_id_2, k0_.product_id AS product_id_3, k0_.category_id AS category_id_4 FROM kw_eshop_co_product_category k0_ INNER JOIN kw_eshop_kategorie k1_ ON k0_.category_id = k1_.id WHERE k0_.product_id = 623 AND k1_.parent_row_id IS NULL LIMIT 1
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.vat_value AS vat_value_3, t0.eshop_id AS eshop_id_4, t0.sort_num AS sort_num_5, t0.eshop_id AS eshop_id_6 FROM kw_eshop_vat t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.code_suffix AS code_suffix_4, t0.type AS type_5, t0.is_visible AS is_visible_6, t0.eshop_id AS eshop_id_7, t0.article_id AS article_id_8, t0.sort_num AS sort_num_9, t0.eshop_id AS eshop_id_10, t0.article_id AS article_id_11 FROM kw_eshop_custom_params t0 WHERE t0.eshop_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.param_id AS param_id_3, t0.param_value AS param_value_4, t0.product_id AS product_id_5, t0.param_id AS param_id_6 FROM kw_eshop_co_product_params t0 WHERE t0.product_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.custom_param_id AS custom_param_id_4, t0.article_id AS article_id_5, t0.sort_num AS sort_num_6, t0.custom_param_id AS custom_param_id_7, t0.article_id AS article_id_8 FROM kw_eshop_custom_params_list t0 ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.code_suffix AS code_suffix_4, t0.type AS type_5, t0.is_visible AS is_visible_6, t0.eshop_id AS eshop_id_7, t0.article_id AS article_id_8, t0.sort_num AS sort_num_9, t0.eshop_id AS eshop_id_10, t0.article_id AS article_id_11 FROM kw_eshop_custom_params t0 WHERE t0.eshop_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.param_id AS param_id_3, t0.param_value AS param_value_4, t0.product_id AS product_id_5, t0.param_id AS param_id_6 FROM kw_eshop_co_product_params t0 WHERE t0.product_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.custom_param_id AS custom_param_id_4, t0.article_id AS article_id_5, t0.sort_num AS sort_num_6, t0.custom_param_id AS custom_param_id_7, t0.article_id AS article_id_8 FROM kw_eshop_custom_params_list t0 ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.code_suffix AS code_suffix_4, t0.type AS type_5, t0.is_visible AS is_visible_6, t0.eshop_id AS eshop_id_7, t0.article_id AS article_id_8, t0.sort_num AS sort_num_9, t0.eshop_id AS eshop_id_10, t0.article_id AS article_id_11 FROM kw_eshop_custom_params t0 WHERE t0.eshop_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.param_id AS param_id_3, t0.param_value AS param_value_4, t0.product_id AS product_id_5, t0.param_id AS param_id_6 FROM kw_eshop_co_product_params t0 WHERE t0.product_id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.custom_param_id AS custom_param_id_4, t0.article_id AS article_id_5, t0.sort_num AS sort_num_6, t0.custom_param_id AS custom_param_id_7, t0.article_id AS article_id_8 FROM kw_eshop_custom_params_list t0 ORDER BY t0.sort_num ASC
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.page_name AS page_name_3, t0.parent_row_id AS parent_row_id_4, t0.prevent_changes AS prevent_changes_5, t0.sort_num AS sort_num_6, t0.layout_id AS layout_id_7, t0.in_menu_display AS in_menu_display_8, t0.image_id AS image_id_9, t0.gallery_id AS gallery_id_10, t0.redirect_id AS redirect_id_11, t0.redirect_suffix AS redirect_suffix_12, t0.is_templates_root AS is_templates_root_13, t0.system_folder AS system_folder_14, t0.opt_one AS opt_one_15, t0.opt_two AS opt_two_16, t0.opt_three AS opt_three_17, t0.web_id AS web_id_18, t0.parent_row_id AS parent_row_id_19, t0.layout_id AS layout_id_20, t0.image_id AS image_id_21, t0.gallery_id AS gallery_id_22, t0.redirect_id AS redirect_id_23, t0.web_id AS web_id_24 FROM kw_tree_page t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.name AS name_2, t0.page_name AS page_name_3, t0.parent_row_id AS parent_row_id_4, t0.prevent_changes AS prevent_changes_5, t0.sort_num AS sort_num_6, t0.layout_id AS layout_id_7, t0.in_menu_display AS in_menu_display_8, t0.image_id AS image_id_9, t0.gallery_id AS gallery_id_10, t0.redirect_id AS redirect_id_11, t0.redirect_suffix AS redirect_suffix_12, t0.is_templates_root AS is_templates_root_13, t0.system_folder AS system_folder_14, t0.opt_one AS opt_one_15, t0.opt_two AS opt_two_16, t0.opt_three AS opt_three_17, t0.web_id AS web_id_18, t0.parent_row_id AS parent_row_id_19, t0.layout_id AS layout_id_20, t0.image_id AS image_id_21, t0.gallery_id AS gallery_id_22, t0.redirect_id AS redirect_id_23, t0.web_id AS web_id_24 FROM kw_tree_page t0 WHERE t0.id = ?
DEBUG 05:29:54 doctrine SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.category_id AS category_id_3, t0.product_id AS product_id_4, t0.category_id AS category_id_5 FROM kw_eshop_co_product_category t0 WHERE t0.product_id = ?
CRITICAL 05:29:54 request Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Invalid argument supplied for foreach()" at /data/farline/src/Kiwi/EshopBundle/Service/EshopProductsHandle.php line 1916
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\EventListener\FirewallListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG 05:29:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".

Stack Trace

ContextErrorException

Symfony\Component\Debug\Exception\ContextErrorException:
Warning: Invalid argument supplied for foreach()

  at src/Kiwi/EshopBundle/Service/EshopProductsHandle.php:1916
  at Kiwi\EshopBundle\Service\EshopProductsHandle->getProductUrl()
     (src/Kiwi/EshopBundle/Service/EshopProductsHandle.php:1547)
  at Kiwi\EshopBundle\Service\EshopProductsHandle->getProductReturnArrayBlock()
     (src/Farline/InspirationBundle/Service/InspirationsHandle.php:51)
  at Farline\InspirationBundle\Service\InspirationsHandle->getInspirations()
     (src/Kiwi/PageBundle/Service/PageModuleTemplate.php:90)
  at Kiwi\PageBundle\Service\PageModuleTemplate->getKiwiFrontendModuleBox()
     (src/Kiwi/PageBundle/Service/PageFrontendHandle.php:129)
  at Kiwi\PageBundle\Service\PageFrontendHandle->getPageData()
     (src/Kiwi/PageBundle/Service/PageFrontendHandle.php:171)
  at Kiwi\PageBundle\Service\PageFrontendHandle->getPageHtml()
     (src/Kiwi/FrontPageBundle/Controller/DefaultController.php:53)
  at Kiwi\FrontPageBundle\Controller\DefaultController->pageAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:169)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (web/app_dev.php:30)