SOLVED: Header Template error

Bricks Version: 1.1.3
Browser: Chrome 90
OS: macOS / Windows / Linux / etc.
URL: (a link to a page that illustrates the issue would be really helpful)

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /home/insanity/insanityallstar.club/wp-content/themes/bricks/includes/elements/base.php on line 1867
Call Stack

Time Memory Function Location

1 0.0002 366472 ( ) …/index.php**:0
2 0.0003 366832 require( ‘/home/insanity/insanityallstar.club/wp-blog-header.php’ ) …/index.php
:17
3 0.2364 16397264 require_once( ‘/home/insanity/insanityallstar.club/wp-includes/template-loader.php’ ) …/wp-blog-header.php
:19
4 0.2379 16522664 include( ‘/home/insanity/insanityallstar.club/wp-content/themes/bricks/single.php’ ) …/template-loader.php
:106
5 0.2379 16522664 get_header( ) …/single.php
:2
6 0.2379 16523040 locate_template( ) …/general-template.php
:48
7 0.2379 16523136 load_template( ) …/template.php
:676
8 0.2379 16523712 require_once( ‘/home/insanity/insanityallstar.club/wp-content/themes/bricks/header.php’ ) …/template.php
:730
9 0.2601 16591184 Bricks\Frontend::render_data( ) …/header.php
:63
10 0.2601 16591560 Bricks\Frontend::render_element( ) …/frontend.php
:1929
11 0.2623 16666008 Bricks\Element_Logo->init( ) …/frontend.php
:1877
12 0.2624 16666008 Bricks\Element_Logo->setup_query( ) …/base.php
:1322
13 0.2624 16667208 count ( ) …/base.php
:**1867

Bricks Version : 1.3
Browser : Brave 91.0.4472.124
OS : macOS 11.4
WP : 5.7.2
Local : 5.10.5

Confirm, same here on LocalWP, PHP 7.4.1 + 7.3.5… :cry:

Thx for Bricks 1.3.1 Update. In my case the bug is now gone - great! :heart_eyes:

1 Like

Hello @browgreg75 and @HeroRox

Yes, this bug is fixed on Bricks 1.3.1, which is already available for download or update through WP Dashboard.

1 Like