Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Seach fails in Blockwishlist fails under 1.4.0/php 8.0

Featured Replies

Trying my first upgrade to 1.4.0/PHP 8.0

Does this look like a bug? Is the the right place to report it?

This error appears after a Search for a product.

 

TypeError

count(): Argument #1 ($value) must be of type Countable|array, bool given

when rendering smarty template /home/domains/vol2/033/3247033/user/htdocs/themes/community-theme-default/modules/blockwishlist/blockwishlist_button.tpl

Source file: /home/domains/vol2/033/3247033/user/htdocs/themes/community-theme-default/modules/blockwishlist/blockwishlist_button.tpl

1:{if isset($wishlists) && count($wishlists) > 1}
2:  <div class="wishlist">
3:    <a class="wishlist_button_list" tabindex="0" data-toggle="popover" data-trigger="focus" title="{l s='Wishlist' mod='blockwishlist'}" data-placement="top">
4:      <i class="icon icon-star-o"></i> {l s='Add to wishlist' mod='blockwishlist'}
5:    </a>
6:    <div hidden class="popover-content">
7:      <ul class="list-unstyled">
8:        {foreach name=wl from=$wishlists item=wishlist}
9:          <li>
10:            <a title="{$wishlist.name|escape:'html':'UTF-8'}" value="{$wishlist.id_wishlist}" onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', false, 1, '{$wishlist.id_wishlist}');">
11:              {l s='Add to %s' sprintf=[$wishlist.name] mod='blockwishlist'}
12:            </a>
13:          </li>
14:        {/foreach}
15:      </ul>
16:    </div>
17:  </div>
18:{else}
19:  <div class="wishlist">
20:    <a class="addToWishlist wishlistProd_{$product.id_product|intval}" href="#" rel="{$product.id_product|intval}" onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', false, 1); return false;">
21:      <i class="icon icon-star-o"></i> {l s="Add to Wishlist" mod='blockwishlist'}
22:    </a>
23:  </div>
24:{/if}

Stack trace

 

PHP version: 8.0.26.  Code revision: 1.4.0 build for PHP 8.0

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.