( ! ) Warning: Attempt to read property "id_category_default" on null in /var/www/vhosts/sanitarioswc.es/httpdocs/controllers/front/ProductController.php on line 1333 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0002 | 361040 | {main}( ) | .../index.php:0 |
2 | 0.0445 | 2359440 | DispatcherCore->dispatch( ) | .../index.php:28 |
3 | 0.0659 | 2757752 | ControllerCore->run( ) | .../Dispatcher.php:510 |
4 | 0.1316 | 4168792 | ProductControllerCore->initContent( ) | .../Controller.php:319 |
5 | 0.1316 | 4168792 | FrontControllerCore->initContent( ) | .../ProductController.php:465 |
6 | 0.1316 | 4168792 | FrontControllerCore->assignGeneralPurposeVariables( ) | .../FrontController.php:572 |
7 | 0.1425 | 4543536 | FrontControllerCore->getBreadcrumb( ) | .../FrontController.php:514 |
8 | 0.1425 | 4543536 | ProductControllerCore->getBreadcrumbLinks( ) | .../FrontController.php:1822 |
( ! ) Warning: Attempt to read property "name" on null in /var/www/vhosts/sanitarioswc.es/httpdocs/controllers/front/ProductController.php on line 1353 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0002 | 361040 | {main}( ) | .../index.php:0 |
2 | 0.0445 | 2359440 | DispatcherCore->dispatch( ) | .../index.php:28 |
3 | 0.0659 | 2757752 | ControllerCore->run( ) | .../Dispatcher.php:510 |
4 | 0.1316 | 4168792 | ProductControllerCore->initContent( ) | .../Controller.php:319 |
5 | 0.1316 | 4168792 | FrontControllerCore->initContent( ) | .../ProductController.php:465 |
6 | 0.1316 | 4168792 | FrontControllerCore->assignGeneralPurposeVariables( ) | .../FrontController.php:572 |
7 | 0.1425 | 4543536 | FrontControllerCore->getBreadcrumb( ) | .../FrontController.php:514 |
8 | 0.1425 | 4543536 | ProductControllerCore->getBreadcrumbLinks( ) | .../FrontController.php:1822 |
Invalid product vars
at line 173 in file classes/Link.php
168. if (is_array($product) && isset($product['id_product'])) {
169. $params['id'] = $product['id_product'];
170. } elseif ((int) $product) {
171. $params['id'] = $product;
172. } else {
173. throw new PrestaShopException('Invalid product vars');
174. }
175. } else {
176. $params['id'] = $product->id;
177. }
178.
1349. ];
1350. }
1351.
1352. $breadcrumb['links'][] = [
1353. 'title' => $this->product->name,
1354. 'url' => $this->context->link->getProductLink($this->product, null, null, null, null, null, (int) $this->getIdProductAttributeByRequest()),
1355. ];
1356.
1357. return $breadcrumb;
1358. }
1359.
1817. return $page;
1818. }
1819.
1820. public function getBreadcrumb()
1821. {
1822. $breadcrumb = $this->getBreadcrumbLinks();
1823. $breadcrumb['count'] = count($breadcrumb['links']);
1824.
1825. return $breadcrumb;
1826. }
1827.
509. 'shop' => $this->getTemplateVarShop(),
510. 'core_js_public_path' => $this->getCoreJsPublicPath(),
511. 'urls' => $this->getTemplateVarUrls(),
512. 'configuration' => $this->getTemplateVarConfiguration(),
513. 'field_required' => $this->context->customer->validateFieldsRequiredDatabase(),
514. 'breadcrumb' => $this->getBreadcrumb(),
515. 'link' => $this->context->link,
516. 'time' => time(),
517. 'static_token' => Tools::getToken(false),
518. 'token' => Tools::getToken(),
519. 'debug' => _PS_MODE_DEV_,
567. /**
568. * Initializes common front page content: header, footer and side columns.
569. */
570. public function initContent()
571. {
572. $this->assignGeneralPurposeVariables();
573. $this->process();
574.
575. if (!isset($this->context->cart)) {
576. $this->context->cart = new Cart();
577. }
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();