Jump to content
AWSb

Product images are not shown on 1.7.6.0

Recommended Posts

Hi!

Maybe I am a little bit stupid but I don't know how to solve it. I already searched the forum.

I deactived friendly url on my shop kreativstubn.de but the images still won't appear. I switched to debug mode and following warning:

 

(1/1) ContextErrorException

Notice: Undefined offset: 0

in ImageRetriever.php line 192

at ImageRetriever->getImage(object(Product), '4')in ImageRetriever.php line 90

at ImageRetriever->PrestaShop\PrestaShop\Adapter\Image\{closure}(array('cover' => '1', 'id_image' => '4', 'legend' => '', 'position' => '1'))

at array_map(object(Closure), array(array('cover' => '1', 'id_image' => '4', 'legend' => '', 'position' => '1')))in ImageRetriever.php line 100

at ImageRetriever->getProductImages(array('id_shop_default' => '1', 'id_manufacturer' => '0', 'id_supplier' => '0', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '2.000000', 'height' => '10.000000', 'depth' => '2.000000', 'weight' => '0.000000', 'quantity_discount' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'state' => '1', 'additional_delivery_times' => '1', 'delivery_in_stock' => '', 'delivery_out_stock' => '', 'id_category_default' => '13', 'id_tax_rules_group' => '0', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => 0.0, 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => 4.5, 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'customizable' => '0', 'text_fields' => '0', 'uploadable_files' => '0', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_default_attribute' => '0', 'advanced_stock_management' => '0', 'date_add' => '2019-08-06 22:10:52', 'date_upd' => '2019-09-02 18:45:47', 'pack_stock_type' => '0', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'link_rewrite' => 'schluesselanhaenger-rosa', 'name' => 'Schlüsselanhänger rosa', 'description' => '<p>Die Farben können vom Original abweichen!</p>', 'description_short' => '<p>Schüsselanhänger mit rosa Feder</p>', 'available_now' => '', 'available_later' => '', 'id' => 1, 'id_product' => 1, 'out_of_stock' => 0, 'new' => 0, 'id_product_attribute' => '0', 'quantity_wanted' => 1, 'extraContent' => array(), 'allow_oosp' => 0, 'category' => 'mit-kunstfeder', 'category_name' => 'mit Kunstfeder', 'link' => 'https://www.kreativstubn.de/index.php?id_product=1&rewrite=schluesselanhaenger-rosa&controller=product', 'attribute_price' => 0, 'price_tax_exc' => 4.5, 'price_without_reduction' => 4.5, 'price_without_reduction_without_tax' => 4.5, 'reduction' => 0.0, 'reduction_without_tax' => 0.0, 'specific_prices' => array(), 'quantity' => 1, 'quantity_all_versions' => 1, 'id_image' => 'de-default', 'features' => array(), 'attachments' => array(), 'virtual' => 0, 'pack' => 0, 'packItems' => array(), 'nopackprice' => 0, 'customization_required' => false, 'rate' => 0.0, 'tax_name' => '', 'ecotax_rate' => 0.0, 'unit_price' => 0, 'customizations' => array('fields' => array()), 'id_customization' => 0, 'is_customizable' => false, 'show_quantities' => false, 'quantity_label' => 'Artikel', 'quantity_discounts' => array(), 'customer_group_discount' => 0, 'title' => 'Schlüsselanhänger rosa'), object(Language))in ProductLazyArray.php line 590

at ProductLazyArray->fillImages(object(ProductPresentationSettings), array('id_shop_default' => '1', 'id_manufacturer' => '0', 'id_supplier' => '0', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '2.000000', 'height' => '10.000000', 'depth' => '2.000000', 'weight' => '0.000000', 'quantity_discount' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'state' => '1', 'additional_delivery_times' => '1', 'delivery_in_stock' => '', 'delivery_out_stock' => '', 'id_category_default' => '13', 'id_tax_rules_group' => '0', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => 0.0, 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => 4.5, 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'customizable' => '0', 'text_fields' => '0', 'uploadable_files' => '0', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_default_attribute' => '0', 'advanced_stock_management' => '0', 'date_add' => '2019-08-06 22:10:52', 'date_upd' => '2019-09-02 18:45:47', 'pack_stock_type' => '0', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'link_rewrite' => 'schluesselanhaenger-rosa', 'name' => 'Schlüsselanhänger rosa', 'description' => '<p>Die Farben können vom Original abweichen!</p>', 'description_short' => '<p>Schüsselanhänger mit rosa Feder</p>', 'available_now' => '', 'available_later' => '', 'id' => 1, 'id_product' => 1, 'out_of_stock' => 0, 'new' => 0, 'id_product_attribute' => '0', 'quantity_wanted' => 1, 'extraContent' => array(), 'allow_oosp' => 0, 'category' => 'mit-kunstfeder', 'category_name' => 'mit Kunstfeder', 'link' => 'https://www.kreativstubn.de/index.php?id_product=1&rewrite=schluesselanhaenger-rosa&controller=product', 'attribute_price' => 0, 'price_tax_exc' => 4.5, 'price_without_reduction' => 4.5, 'price_without_reduction_without_tax' => 4.5, 'reduction' => 0.0, 'reduction_without_tax' => 0.0, 'specific_prices' => array(), 'quantity' => 1, 'quantity_all_versions' => 1, 'id_image' => 'de-default', 'features' => array(), 'attachments' => array(), 'virtual' => 0, 'pack' => 0, 'packItems' => array(), 'nopackprice' => 0, 'customization_required' => false, 'rate' => 0.0, 'tax_name' => '', 'ecotax_rate' => 0.0, 'unit_price' => 0, 'customizations' => array('fields' => array()), 'id_customization' => 0, 'is_customizable' => false, 'show_quantities' => false, 'quantity_label' => 'Artikel', 'quantity_discounts' => array(), 'customer_group_discount' => 0, 'title' => 'Schlüsselanhänger rosa'), object(Language))in ProductLazyArray.php line 109

at ProductLazyArray->__construct(object(ProductPresentationSettings), array('id_shop_default' => '1', 'id_manufacturer' => '0', 'id_supplier' => '0', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '2.000000', 'height' => '10.000000', 'depth' => '2.000000', 'weight' => '0.000000', 'quantity_discount' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'state' => '1', 'additional_delivery_times' => '1', 'delivery_in_stock' => '', 'delivery_out_stock' => '', 'id_category_default' => '13', 'id_tax_rules_group' => '0', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => 0.0, 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => 4.5, 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'customizable' => '0', 'text_fields' => '0', 'uploadable_files' => '0', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_default_attribute' => '0', 'advanced_stock_management' => '0', 'date_add' => '2019-08-06 22:10:52', 'date_upd' => '2019-09-02 18:45:47', 'pack_stock_type' => '0', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'link_rewrite' => 'schluesselanhaenger-rosa', 'name' => 'Schlüsselanhänger rosa', 'description' => '<p>Die Farben können vom Original abweichen!</p>', 'description_short' => '<p>Schüsselanhänger mit rosa Feder</p>', 'available_now' => '', 'available_later' => '', 'id' => 1, 'id_product' => 1, 'out_of_stock' => 0, 'new' => 0, 'id_product_attribute' => '0', 'quantity_wanted' => 1, 'extraContent' => array(), 'allow_oosp' => 0, 'category' => 'mit-kunstfeder', 'category_name' => 'mit Kunstfeder', 'link' => 'https://www.kreativstubn.de/index.php?id_product=1&rewrite=schluesselanhaenger-rosa&controller=product', 'attribute_price' => 0, 'price_tax_exc' => 4.5, 'price_without_reduction' => 4.5, 'price_without_reduction_without_tax' => 4.5, 'reduction' => 0.0, 'reduction_without_tax' => 0.0, 'specific_prices' => array(), 'quantity' => 1, 'quantity_all_versions' => 1, 'id_image' => 'de-default', 'features' => array(), 'attachments' => array(), 'virtual' => 0, 'pack' => 0, 'packItems' => array(), 'nopackprice' => 0, 'customization_required' => false, 'rate' => 0.0, 'tax_name' => '', 'ecotax_rate' => 0.0, 'unit_price' => 0, 'customizations' => array('fields' => array()), 'id_customization' => 0, 'is_customizable' => false, 'show_quantities' => false, 'quantity_label' => 'Artikel', 'quantity_discounts' => array(), 'customer_group_discount' => 0, 'title' => 'Schlüsselanhänger rosa'), object(Language), object(ImageRetriever), object(Link), object(PriceFormatter), object(ProductColorsRetriever), object(TranslatorComponent))in ProductPresenter.php line 91

at ProductPresenter->present(object(ProductPresentationSettings), array('id_shop_default' => '1', 'id_manufacturer' => '0', 'id_supplier' => '0', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '2.000000', 'height' => '10.000000', 'depth' => '2.000000', 'weight' => '0.000000', 'quantity_discount' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'state' => '1', 'additional_delivery_times' => '1', 'delivery_in_stock' => '', 'delivery_out_stock' => '', 'id_category_default' => '13', 'id_tax_rules_group' => '0', 'on_sale' => '0', 'online_only' => '0', 'ecotax' => 0.0, 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => 4.5, 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'customizable' => '0', 'text_fields' => '0', 'uploadable_files' => '0', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_default_attribute' => '0', 'advanced_stock_management' => '0', 'date_add' => '2019-08-06 22:10:52', 'date_upd' => '2019-09-02 18:45:47', 'pack_stock_type' => '0', 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '', 'link_rewrite' => 'schluesselanhaenger-rosa', 'name' => 'Schlüsselanhänger rosa', 'description' => '<p>Die Farben können vom Original abweichen!</p>', 'description_short' => '<p>Schüsselanhänger mit rosa Feder</p>', 'available_now' => '', 'available_later' => '', 'id' => 1, 'id_product' => 1, 'out_of_stock' => 0, 'new' => 0, 'id_product_attribute' => '0', 'quantity_wanted' => 1, 'extraContent' => array(), 'allow_oosp' => 0, 'category' => 'mit-kunstfeder', 'category_name' => 'mit Kunstfeder', 'link' => 'https://www.kreativstubn.de/index.php?id_product=1&rewrite=schluesselanhaenger-rosa&controller=product', 'attribute_price' => 0, 'price_tax_exc' => 4.5, 'price_without_reduction' => 4.5, 'price_without_reduction_without_tax' => 4.5, 'reduction' => 0.0, 'reduction_without_tax' => 0.0, 'specific_prices' => array(), 'quantity' => 1, 'quantity_all_versions' => 1, 'id_image' => 'de-default', 'features' => array(), 'attachments' => array(), 'virtual' => 0, 'pack' => 0, 'packItems' => array(), 'nopackprice' => 0, 'customization_required' => false, 'rate' => 0.0, 'tax_name' => '', 'ecotax_rate' => 0.0, 'unit_price' => 0, 'customizations' => array('fields' => array()), 'id_customization' => 0, 'is_customizable' => false, 'show_quantities' => false, 'quantity_label' => 'Artikel', 'quantity_discounts' => array(), 'customer_group_discount' => 0, 'title' => 'Schlüsselanhänger rosa'), object(Language))in ProductController.php line 1100

at ProductControllerCore->getTemplateVarProduct()in ProductController.php line 347

at ProductControllerCore->initContent()in Controller.php line 291

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

 

Thanks in advance!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More