Bug: Products without image Undefined variable notice

ThemeBurn SupportForumsOpenCart ThemesBurnEngineBug: Products without image Undefined variable notice

This topic has been marked as not resolved.

There seems to be a bug on the product page if a product does not contain an image.

Notice: Undefined variable: width in /system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php on line 108
Notice: Undefined variable: height in /system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php on line 109

System Info:
Pavilion 2.2.7/BurnEngine 1.2.7/OC 2.3.0.2/PHP 7.0.26

December 5, 2017 at 2:45 pm #62762

Hi,

Generally, there is a check that prevents that exact problem. We cannot reproduce it locally and will need admin and ftp access to check your installation.

You can use hidepost to share private information with the support staff.

BR,
ThemeBurn team

December 11, 2017 at 2:02 am #62840

Thanks!

It’s a clean install of OC 2.3.0.2 and Pavilion v2.2.7/BurnEngine version1.2.7.

December 11, 2017 at 3:56 pm #62847

Hi,

We’ve fixed the problem by editing system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php

The fix will also be added with the next update.

BR,
ThemeBurn team

December 18, 2017 at 4:36 pm #62921

Cool! Thanks :-)

December 18, 2017 at 4:54 pm #62924

Glad we’ve helped :)

BR,
ThemeBurn team

December 19, 2017 at 10:17 am #62927

Another thing though; Shouldn’t the “No image” image show when a product doesn’t have a product image?

December 19, 2017 at 11:58 am #62928

Hi,

Yes, there should be a placeholder image. As long as it is existing in

image/placeholder.png

BR,
ThemeBurn team

January 4, 2018 at 6:20 pm #63029

The placeholder image exist and is displayed in the product list but not on the product page, which cause the product page to collaps.

http://webshopdemo.webform.dk/index.php?route=product/product&product_id=35&search=product+8

January 4, 2018 at 7:37 pm #63033

Hi,

This is the default OpenCart behavior and we’ve kept it. Unfortunately, if you want a “no image” picture in the product info page, you will have to manually upload it.

BR,
ThemeBurn team

January 4, 2018 at 11:06 pm #63044
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.