MermerOfficialStore Posted April 20, 2018 Share Posted April 20, 2018 Hello i've got following issue, can u help me? My prestashop version is 1.7.3.1(just upgraded). My PHP version is 1.7.1. Notice that the issue doesn't depend on presta version, because i checked it from version 1.7.2.x - 1.7.3.1 It was all the same, i tried to figure it out myself for weeks but i'm getting tired of it. Is the problem caused by my template(mimosa)? Notice that the issue shows only in Debug mode and doesn't affect functionality of the page (or i just thinks so). Quote Whoops, looks like something went wrong. 1/1ContextErrorException in smarty_internal_templatebase.php(158) : eval()'d code line 52:Notice: Undefined offset: 1 in smarty_internal_templatebase.php(158) : eval()'d code line 52 at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/admin/web/mermer.pl/public_html/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(158) : eval()'d code', '52', array('_smarty_tpl' => object(SmartyDevTemplate))) in smarty_internal_templatebase.php(158) : eval()'d code line 52 at content_5ad9a98adbf933_14472123(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 189 at Smarty_Internal_TemplateBase->fetch(object(SmartyDevTemplate), null, null, null, false, false, true) in SmartyDevTemplate.php line 41 at SmartyDevTemplateCore->fetch(null, null, null, null, false, false, true) in smarty_internal_template.php line 303 at Smarty_Internal_Template->getSubTemplate('catalog/_partials/miniatures/product.tpl', null, null, '0', null, array('product' => array('id_product' => '49', 'id_supplier' => '0', 'id_manufacturer' => '0', 'id_category_default' => '38', 'id_shop_default' => '1', 'id_tax_rules_group' => '1', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'ecotax' => array('value' => '0.00 zł', 'amount' => '0.000000', 'rate' => '0'), 'quantity' => '100', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '23.20 zł', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '1020023', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.000000', 'out_of_stock' => '2', 'additional_delivery_times' => '1', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '404', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => null, 'show_condition' => '0', 'condition' => false, 'show_price' => true, 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '319', 'date_add' => '2018-03-19 12:04:21', 'date_upd' => '2018-04-11 10:36:16', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'id_shop' => '1', 'id_lang' => '1', 'description' => '<p>Plakat fotograficzny do kuchni przedstawiający martwą naturę - na zdjęciu karczoch, limonka, czosnek. Starannie zapakowany, zapobiegając uszkodzeniom mechanicznym podczas transportu. Plakat posiada odpowiednio dobrany biały margines, który w elegancki sposób okala motyw.</p> <p>PAPIER WYSOKIEJ JAKOŚCI;<br />ZAWIERA BIAŁY MARGINES;<br />NIE ZAWIERA RAMY.</p>', 'description_short' => '<p>Plakat fotograficzny do kuchni przedstawiający martwą naturę - na zdjęciu karczoch, limonka, czosnek. Starannie zapakowany, zapobiegając uszkodzeniom mechanicznym podczas transportu. Plakat posiada odpowiednio dobrany biały margines, który w elegancki sposób okala motyw.</p> <p>PAPIER WYSOKIEJ JAKOŚCI;<br />ZAWIERA BIAŁY MARGINES;<br />NIE ZAWIERA RAMY.</p>', 'link_rewrite' => 'artichoke-lemon-poster', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'name' => 'Artichoke & Lemon, Poster', 'available_now' => '', 'available_later' => '', 'delivery_in_stock' => null, 'delivery_out_stock' => null, 'new' => '0', 'id_product_attribute' => '319', 'product_attribute_minimal_quantity' => '1', 'id_image' => '49-98', 'legend' => '', 'manufacturer_name' => null, 'category_default' => 'Kuchnia', 'orderprice' => '0.000000', 'allow_oosp' => '0', 'category' => 'kuchnia', 'category_name' => 'Kuchnia', 'link' => 'https://mermer.pl/kuchnia/49-artichoke-lemon-poster.html', 'attribute_price' => '23.577235', 'price_tax_exc' => '18.861788', 'price_without_reduction' => '28.999999', 'reduction' => '5.8', 'specific_prices' => array('id_specific_price' => '315', 'id_specific_price_rule' => '1', 'id_cart' => '0', 'id_product' => '49', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '1', 'id_country' => '0', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '0', 'price' => '-1.000000', 'from_quantity' => '1', 'reduction' => '0.200000', 'reduction_tax' => '1', 'reduction_type' => 'percentage', 'from' => '2018-04-18 00:00:00', 'to' => '2018-04-30 00:00:00', 'score' => '56'), 'quantity_all_versions' => '600', 'features' => array(array('name' => 'Format', 'value' => 'Pionowy', 'id_feature' => '8')), 'attachments' => array(), 'virtual' => '0', 'pack' => '0', 'packItems' => array(), 'nopackprice' => '0', 'customization_required' => false, 'attributes' => array(array('id_attribute' => '1', 'id_attribute_group' => '1', 'name' => '21x30cm', 'group' => 'Rozmiar', 'reference' => '', 'ean13' => '', 'isbn' => '', 'upc' => '')), 'rate' => '23', 'tax_name' => 'PTU PL 23%', 'ecotax_rate' => '0', 'unit_price' => '', 'id' => '49', 'weight_unit' => 'kg', 'images' => array(array('bySize' => array('side_default' => array('url' => 'https://mermer.pl/98-side_default/artichoke-lemon-poster.jpg', 'width' => '70', 'height' => '93'), 'small_default' => array('url' => 'https://mermer.pl/98-small_default/artichoke-lemon-poster.jpg', 'width' => '98', 'height' => '131'), 'cart_default' => array('url' => 'https://mermer.pl/98-cart_default/artichoke-lemon-poster.jpg', 'width' => '125', 'height' => '167'), 'large_default_poziome' => array('url' => 'https://mermer.pl/98-large_default_poziome/artichoke-lemon-poster.jpg', 'width' => '600', 'height' => '435'), 'home_default' => array('url' => 'https://mermer.pl/98-home_default/artichoke-lemon-poster.jpg', 'width' => '435', 'height' => '600'), 'large_default' => array('url' => 'https://mermer.pl/98-large_default/artichoke-lemon-poster.jpg', 'width' => '435', 'height' => '600'), 'medium_default' => array('url' => 'https://mermer.pl/98-medium_default/artichoke-lemon-poster.jpg', 'width' => '700', 'height' => '750')), 'small' => array('url' => 'https://mermer.pl/98-side_default/artichoke-lemon-poster.jpg', 'width' => '70', 'height' => '93'), 'medium' => array('url' => 'https://mermer.pl/98-large_default_poziome/artichoke-lemon-poster.jpg', 'width' => '600', 'height' => '435'), 'large' => array('url' => 'https://mermer.pl/98-medium_default/artichoke-lemon-poster.jpg', 'width' => '700', 'height' => '750'), 'legend' => '', 'cover' => '1', 'id_image' => '98', 'position' => '1', 'associatedVariants' => array())), 'cover' => array('bySize' => array('side_default' => array('url' => 'https://mermer.pl/98-side_default/artichoke-lemon-poster.jpg', 'width' => '70', 'height' => '93'), 'small_default' => array('url' => 'https://mermer.pl/98-small_default/artichoke-lemon-poster.jpg', 'width' => '98', 'height' => '131'), 'cart_default' => array('url' => 'https://mermer.pl/98-cart_default/artichoke-lemon-poster.jpg', 'width' => '125', 'height' => '167'), 'large_default_poziome' => array('url' => 'https://mermer.pl/98-large_default_poziome/artichoke-lemon-poster.jpg', 'width' => '600', 'height' => '435'), 'home_default' => array('url' => 'https://mermer.pl/98-home_default/artichoke-lemon-poster.jpg', 'width' => '435', 'height' => '600'), 'large_default' => array('url' => 'https://mermer.pl/98-large_default/artichoke-lemon-poster.jpg', 'width' => '435', 'height' => '600'), 'medium_default' => array('url' => 'https://mermer.pl/98-medium_default/artichoke-lemon-poster.jpg', 'width' => '700', 'height' => '750')), 'small' => array('url' => 'https://mermer.pl/98-side_default/artichoke-lemon-poster.jpg', 'width' => '70', 'height' => '93'), 'medium' => array('url' => 'https://mermer.pl/98-large_default_poziome/artichoke-lemon-poster.jpg', 'width' => '600', 'height' => '435'), 'large' => array('url' => 'https://mermer.pl/98-medium_default/artichoke-lemon-poster.jpg', 'width' => '700', 'height' => '750'), 'legend' => '', 'cover' => '1', 'id_image' => '98', 'position' => '1', 'associatedVariants' => array()), 'url' => 'https://mermer.pl/kuchnia/49-319-artichoke-lemon-poster.html#/1-rozmiar-21x30cm', 'canonical_url' => 'https://mermer.pl/kuchnia/49-artichoke-lemon-poster.html', 'has_discount' => true, 'discount_type' => 'percentage', 'discount_percentage' => '-20%', 'discount_percentage_absolute' => '20%', 'discount_amount' => '5.80 zł', 'discount_amount_to_display' => '-5.80 zł', 'price_amount' => '23.2', 'regular_price_amount' => '28.999999', 'regular_price' => '29.00 zł', 'discount_to_display' => '5.80 zł', 'unit_price_full' => '', 'add_to_cart_url' => 'https://mermer.pl/koszyk?add=1&id_product=49&id_product_attribute=319&token=38a5d01c4c6901277792d9703567482b', 'main_variants' => array(), 'flags' => array('discount' => array('type' => 'discount', 'label' => 'Obniżka')), 'labels' => array('tax_short' => '(brutto)', 'tax_long' => 'Brutto'), 'show_availability' => true, 'availability_date' => null, 'availability_message' => 'In Stock', 'availability' => 'available', 'delivery_information' => false, 'quantity_discounts' => array(), 'reference_to_display' => '1020023', 'embedded_attributes' => array('id_product' => '49', 'id_supplier' => '0', 'id_manufacturer' => '0', 'id_category_default' => '38', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => '0.000000', 'quantity' => '100', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '23.2', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '1020023', 'out_of_stock' => '2', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'redirect_type' => '404', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => null, 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'is_virtual' => '0', 'cache_default_attribute' => '319', 'date_add' => '2018-03-19 12:04:21', 'date_upd' => '2018-04-11 10:36:16', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'description' => '<p>Plakat fotograficzny do kuchni przedstawiający martwą naturę - na zdjęciu karczoch, limonka, czosnek. Starannie zapakowany, zapobiegając uszkodzeniom mechanicznym podczas transportu. Plakat posiada odpowiednio dobrany biały margines, który w elegancki sposób okala motyw.</p> <p>PAPIER WYSOKIEJ JAKOŚCI;<br />ZAWIERA BIAŁY MARGINES;<br />NIE ZAWIERA RAMY.</p>', 'description_short' => '<p>Plakat fotograficzny do kuchni przedstawiający martwą naturę - na zdjęciu karczoch, limonka, czosnek. Starannie zapakowany, zapobiegając uszkodzeniom mechanicznym podczas transportu. Plakat posiada odpowiednio dobrany biały margines, który w elegancki sposób okala motyw.</p> <p>PAPIER WYSOKIEJ JAKOŚCI;<br />ZAWIERA BIAŁY MARGINES;<br />NIE ZAWIERA RAMY.</p>', 'link_rewrite' => 'artichoke-lemon-poster', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'name' => 'Artichoke & Lemon, Poster', 'available_now' => '', 'available_later' => '', 'delivery_in_stock' => null, 'delivery_out_stock' => null, 'new' => '0', 'id_product_attribute' => '319', 'id_image' => '49-98', 'allow_oosp' => '0', 'category' => 'kuchnia', 'category_name' => 'Kuchnia', 'link' => 'https://mermer.pl/kuchnia/49-artichoke-lemon-poster.html', 'attribute_price' => '23.577235', 'price_tax_exc' => '18.861788', 'price_without_reduction' => '28.999999', 'reduction' => '5.8', 'specific_prices' => array('id_specific_price' => '315', 'id_specific_price_rule' => '1', 'id_cart' => '0', 'id_product' => '49', 'id_shop' => '1', 'id_shop_group' => '0', 'id_currency' => '1', 'id_country' => '0', 'id_group' => '0', 'id_customer' => '0', 'id_product_attribute' => '0', 'price' => '-1.000000', 'from_quantity' => '1', 'reduction' => '0.200000', 'reduction_tax' => '1', 'reduction_type' => 'percentage', 'from' => '2018-04-18 00:00:00', 'to' => '2018-04-30 00:00:00', 'score' => '56'), 'quantity_all_versions' => '600', 'features' => array(array('name' => 'Format', 'value' => 'Pionowy', 'id_feature' => '8')), 'attachments' => array(), 'virtual' => '0', 'pack' => '0', 'packItems' => array(), 'nopackprice' => '0', 'customization_required' => false, 'attributes' => array(array('id_attribute' => '1', 'id_attribute_group' => '1', 'name' => '21x30cm', 'group' => 'Rozmiar', 'reference' => '', 'ean13' => '', 'isbn' => '', 'upc' => '')), 'rate' => '23', 'tax_name' => 'PTU PL 23%', 'ecotax_rate' => '0', 'unit_price' => '0'), 'grouped_features' => array('Format' => array('name' => 'Format', 'value' => 'Pionowy', 'id_feature' => '8')))), '0') in smarty_internal_templatebase.php(158) : eval()'d code line 66 at content_5ad9a98acaf179_88978682(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 189 at Smarty_Internal_TemplateBase->fetch(object(SmartyDevTemplate), null, null, null, false, true, false) in SmartyDevTemplate.php line 41 at SmartyDevTemplateCore->fetch() in Module.php line 2244 at ModuleCore->display('/home/admin/web/mermer.pl/public_html/modules/posfeaturedproducts/posfeaturedproducts.php', 'posfeaturedproducts.tpl') in posfeaturedproducts.php line 393 at Posfeaturedproducts->hookDisplayBlockPosition1(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 924 at HookCore::coreCallHook(object(Posfeaturedproducts), 'hookdisplayBlockPosition1', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 328 at HookCore::callHookOn(object(Posfeaturedproducts), 'displayBlockPosition1', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 860 at HookCore::exec('displayBlockPosition1', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2'), null) in smarty.config.inc.php line 168 at smartyHook(array('h' => 'displayBlockPosition1'), object(SmartyDevTemplate)) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayBlockPosition1'), object(SmartyDevTemplate))) in smarty_internal_templatebase.php(158) : eval()'d code line 138 at content_5ad9a98a589132_03792969(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 189 at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41 at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 684 at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 668 at FrontControllerCore->display() in Controller.php line 273 at ControllerCore->run() in Dispatcher.php line 428 at DispatcherCore->dispatch() in index.php line 28 Thanks in advance! Link to comment Share on other sites More sharing options...
fercaldas Posted July 23, 2020 Share Posted July 23, 2020 Did you solve it? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now