• Status: Closed
  • Closed by: Marek (marek)
  • Closed on: 29.08.17, 22:44
  • Reason: Closed
  • Comment: Glad to help!

FS#10596 - Product detail : Exception after the update PS to 1.7.2

Hello,

when I tried to display product detail after update to latest stable version 1.7.2 I got the following exception.

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 151:
Notice: Undefined index: manufacturer_name

How can I solve it, please?

This ticket does not depend on any other tickets.

Marek (marek)
Tuesday, 25 July 2017, 11:38 GMT+2
Support Team

Now it should be ok, Please check it out

Jiri (askingGe)
Tuesday, 25 July 2017, 11:58 GMT+2

Which files have been updated, please? I will move on the new server and I cannot filter via FTP client which files have been changed. Thank You very much.

Marek (marek)
Tuesday, 25 July 2017, 12:06 GMT+2
Support Team

The file is "/themes/alysum/templates/catalog/_partials/miniatures/product.tpl"

Jiri (askingGe)
Tuesday, 25 July 2017, 15:02 GMT+2

OK, now I see the difference in the template but the problem remains the same. When I removed all block with the condition:

{if (isset($smarty.cookies.pm_brand) && ($smarty.cookies.pm_brand == true)) || (isset($pkts.pm_brand) && $pkts.pm_brand == true) && (isset($product.manufacturer_name))}
        {block name='product_manufacturer'}
          <h6 class="product-brand ellipsis">{$product.manufacturer_name}</h6>
        {/block}
        {/if}

It works. But this is a temporary solution.

Marek (marek)
Tuesday, 25 July 2017, 15:28 GMT+2
Support Team

I don't understand why it's a temporary solution.
The condition is easy if (isset($product.manufacturer_name)) → show manufacturer

Loading...