• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 25.07.17, 11:02
  • Opened by: Jiri
  • Closed by: Marek
  • Closed on: 29.08.17, 22:44
  • Reason: Closed
  • Comment: Glad to help!

Ticket #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?

Comments

Marek 25 Jul 2017, 11:38

Now it should be ok, Please check it out

Jiri 25 Jul 2017, 11:58

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 25 Jul 2017, 12:06

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

Jiri 25 Jul 2017, 15:02

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 25 Jul 2017, 15:28

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