Invalid product vars
at line 605 in file override/classes/Link.php
600. if (is_array($product) && isset($product['id_product'])) {
601. $params['id'] = $product['id_product'];
602. } elseif ((int) $product) {
603. $params['id'] = $product;
604. } else {
605. throw new PrestaShopException('Invalid product vars');
606. }
607. } else {
608. $params['id'] = $product->id;
609. }
610. if (empty($idProductAttribute)) {
1360. ];
1361. }
1362.
1363. $breadcrumb['links'][] = [
1364. 'title' => $this->product->name,
1365. 'url' => $this->context->link->getProductLink($this->product, null, null, null, null, null, (int) $this->getIdProductAttributeByRequest()),
1366. ];
1367.
1368. return $breadcrumb;
1369. }
1370.
Argument [0] Argument [1] Argument [2] Argument [3] Argument [4] 1 Argument [5] Argument [6] 0
1861. return $page;
1862. }
1863.
1864. public function getBreadcrumb()
1865. {
1866. $breadcrumb = $this->getBreadcrumbLinks();
1867. $breadcrumb['count'] = count($breadcrumb['links']);
1868.
1869. return $breadcrumb;
1870. }
1871.
563. $templateVars['shop'] = $templateVars['shop'] ?? $this->getTemplateVarShop();
564. $templateVars['core_js_public_path'] = $templateVars['core_js_public_path'] ?? $this->getCoreJsPublicPath();
565. $templateVars['urls'] = $templateVars['urls'] ?? $this->getTemplateVarUrls();
566. $templateVars['configuration'] = $templateVars['configuration'] ?? $this->getTemplateVarConfiguration();
567. $templateVars['field_required'] = $templateVars['field_required'] ?? $this->context->customer->validateFieldsRequiredDatabase();
568. $templateVars['breadcrumb'] = $templateVars['breadcrumb'] ?? $this->getBreadcrumb();
569. $templateVars['link'] = $templateVars['link'] ?? $this->context->link;
570. $templateVars['time'] = $templateVars['time'] ?? time();
571. $templateVars['static_token'] = $templateVars['static_token'] ?? Tools::getToken(false);
572. $templateVars['token'] = $templateVars['token'] ?? Tools::getToken();
573. $templateVars['debug'] = $templateVars['debug'] ?? _PS_MODE_DEV_;
620. /**
621. * Initializes common front page content: header, footer and side columns.
622. */
623. public function initContent()
624. {
625. $this->assignGeneralPurposeVariables();
626. $this->process();
627.
628. if (!isset($this->context->cart)) {
629. $this->context->cart = new Cart();
630. }
460.
461. // Assign attribute groups to the template
462. $this->assignAttributesGroups($product_for_template);
463. }
464.
465. parent::initContent();
466. }
467.
468. /**
469. * Processes submitted customizations
470. *
314. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
315. $this->initHeader();
316. }
317.
318. if ($this->viewAccess()) {
319. $this->initContent();
320. } else {
321. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
322. }
323.
324. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
505.
506. // Execute hook dispatcher
507. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
508.
509. // Running controller
510. $controller->run();
511.
512. // Execute hook dispatcher after
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. } catch (PrestaShopException $e) {
515. $e->displayMessage();
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();