Hi,
I have installed OSclass 2.3.rc locally, and installed fine. Everything was ok as I was testing, except one.
I User Heirarchy theme, I Click on "See all Offers" in the home page below the latest items (5 Items) and it gives an error at the next page. Error is as follows
PHP Warning: array_reverse() expects parameter 1 to be array, null given in C:\Inetpub\wwwroot\oc-includes\osclass\model\Category.php on line 353
PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\oc-content\themes\hierarchy\functions.php on line 69
I checked the Category.php line 69, it is as below.
/**
* Same as toRootTree but reverse the results
*
* @access public
* @since unknown
* @param integer$category_id
* @return array
*/
public function hierarchy($category_id) {
return array_reverse($this->toRootTree($category_id));
}
I have checked the Category.php before upgrade, this line was not found.
So anyone please let me know, is the new installation which caused this issue or is it my system issue.
Thanks in advance