levelten / wp-intelligence

Intelligence plugin for WordPress
0 stars 0 forks source link

Count warning error when Intelligence is activated #3

Open gi-b opened 6 years ago

gi-b commented 6 years ago

Description

Countable error warning on Search page: "Warning: count(): Parameter must be an array or an object that implements Countable in C:\www\wp-content\plugins\intelligence\includes\intel.ga.php on line 1378"

Screenshot

https://img42.com/eY3f0+

Steps to Reproduce

  1. Use Avada Theme on WordPress
  2. Use and activate NinjaForms - IntelligenceWP on WordPress Admin
  3. Activate Intelligence on WordPress Admin
  4. View site: https://plumbingpilot.standards.org.au
  5. Search for any term using the search field

Expected Results

The header should not be expanded on the search results page when IntelligenceWP is activated.

Actual Results

The header expands on the search result page.

Browsers Affected

Versions

PHP: 7.2.4 WordPress: 4.9.7

tomdude48 commented 6 years ago

I put a fix into into the develop branch for this.

gi-b commented 6 years ago

Thanks Tom! Looking forward to the next version release.