Hi, any advice most welcome please.
This code error is out of my league of understanding so any help is greatly appreciated
The error.txt code has recently begun, with no known changes to the site. It has been running perfectly for several years:
2021-12-27 19:01:32 - warning: AbanteCart core v.1.2.10 count(): Parameter must be an array or an object that implements Countable in <b>/home/bearsofb/public_html/bearsofbath.co.uk/AbanteCart/core/engine/view.php</b> on line <b>569</b>
view.php:
/**
* return path to the template resource
* @param string $path
* @param string $filename
* @param string $mode
* @return mixed
*/
private function _get_template_path($path, $filename, $mode){
//look into extensions first
$res_arr = $this->_extensions_resource_map($filename);
//get first exact template extension resource or default template resource otherwise.
569 if (count($res_arr['original'])){
570 return $res_arr['original'][0];
571 } else if (count($res_arr['default'])){
572 return $res_arr['default'][0];
}
$template_path_arr = $this->_test_template_paths($path, $filename, $mode);
return $template_path_arr['path'];
}
The error.txt file is growing each day by 2.5GB and I have to keep deleting it to stop my quota overflowing: