I have updated my server from php 5.6 to 7.2
Now i get error
Code: Select all
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /xxxxx/xxxxx/xxxxx/xxxxx/public_html/catalog/model/tool/path_manager.php on line 49
Code: Select all
if (count($banned_cats) && (count($categories) > 1)) {
if (in_array($path[$key], $banned_cats)) {
unset($path[$key]);
} else if (preg_match('#[_=](\d+)$#', $path[$key], $cat)) {
if (in_array($cat[1], $banned_cats)) {
unset($path[$key]);
}
Any one have Idea
Regards