Concrete5 8.5.2 - Easy Image Gallery - Cannot add gallery

Permalink
Hello

I use Concrete5 with Easy Image Gallery 1.4.2 and PHP 7.2.19

I can choose and add the gallery block - and add a picture or a fileset - but it is not possible to save or switch off concretes editing mode again.

The only possible thing is to reload page browser. Then I get this error:
ParseError
syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)


I have to delete last version in sitemap to be able to edit or show page again.

 
johannesri replied on at Permalink Reply
Same problem on new clear installation on other server with PHP 7.2.22 - but only sometimes - sometimes error:
Whoops \ Exception \ ErrorException (E_WARNING)
count(): Parameter must be an array or an object that implements Countab



I also found this:https://www.concrete5.org/marketplace/addons/easy-image-gallery/supp...
and changed to "clickable<?php endif ?>""
Now I can add the gallery - but when I end edit mode or try to call page from public I also get:
Whoops \ Exception \ ErrorException (E_WARNING)
count(): Parameter must be an array or an object that implements Countab
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
In the easy_image_gallery/blocks/easy_image_gallery/elements/sortable.php file, change this
<?php if (count($tagsObject->tags) && $options->filtering) : ?>

to this
<?php if (count((array)$tagsObject->tags) && $options->filtering) : ?>
johannesri replied on at Permalink Reply
Thank you, this is working (edit both files)