[F] Fails on PHP 7.2
Closed this issue · 2 comments
fourroses666 commented
Error : count(): Parameter must be an array or an object that implements Countable
ErrorType[num] | WARNING[2]
File | /xxx.nl/public_html/assets/snippets/eform/eform.inc.php
Line | 699
Source | $lastitems[count($lastitems)]="[+$name+]";
Current Snippet | eForm```
mbvyd commented
Same here, i guess.
Trying to get property 'action' of non-object
Error : count(): Parameter must be an array or an object that implements Countable
ErrorType[num] | WARNING[2]
-- | --
File | /home/.../assets/snippets/eform/eform.inc.php
Line | 707
Source | $lastitems[count($lastitems)] = "class=\"\""; //removal off empty class attributes
Backtrace
DocumentParser->executeParser()index.php on line 139
--
DocumentParser->prepareResponse()manager/includes/document.parser.class.inc.php on line 2825
DocumentParser->outputContent()manager/includes/document.parser.class.inc.php on line 2949
DocumentParser->parseDocumentSource(string $var1)manager/includes/document.parser.class.inc.php on line 897
DocumentParser->evalSnippets(string $var1)manager/includes/document.parser.class.inc.php on line 2676
DocumentParser->_get_snip_result(string $var1)manager/includes/document.parser.class.inc.php on line 1989
DocumentParser->evalSnippet(string $var1, array $var2)manager/includes/document.parser.class.inc.php on line 2077
eval()manager/includes/document.parser.class.inc.php on line 1926
require(string $var1)manager/includes/document.parser.class.inc.php(1926) : eval()'d code on line 1
eForm(DocumentParser $var1, array $var2)assets/snippets/eform/snippet.eform.php on line 114
formMerge(string $var1, array $var2)assets/snippets/eform/eform.inc.php on line 658
dimitrihilverda commented
I added this at line 663:
if (!is_array($lastitems)) {
$lastitems = [$lastitems];
}
that worked, but no idea if thats a correct fix