symphonists / search_index

Search Index provides an easy way to implement high performance fulltext searching on your Symphony site
32 stars 21 forks source link

count(): Parameter must be an array or an object that implements Countable #66

Closed Manaus closed 2 years ago

Manaus commented 2 years ago

Raised this error on installing on 2.7.10, Search Index > Indexes on the admin.

298         if ($index) {
299             $col_name->appendChild(Widget::Input("items[{$section->get('id')}]", null, 'checkbox'));
300         }
301               
302         if ($index && isset($index['fields']) && count($index['fields'] > 0)) {  // highlighted row ------
303             $section_fields = $section->fetchFields();
304             $fields = $this->_indexes[$section->get('id')]['fields'];
305             $fields_list = '';
306             foreach($section_fields as $section_field) { 

Plugin v 0.9.5 on php 7.2.22

Thx

Manaus commented 2 years ago

Sorry found reference on #60