Yes, the "all business" is pretty old. I did update it so it runs fine on PHP 7.3, but I appreciate it's on borrowed time.
I've traced the issue back to the "status" check. On the homepage, the category ID = 0; which isn't in the database and hasn't got a status. So the status check fails; and defaults to $current_category_not_found.
My fix is to change header_php.php on line 33 from:
PHP Code:
if ($category_status->EOF ) {
$current_category_not_found = true;
}
to
PHP Code:
if ($category_status->EOF && $current_category_id !== 0 ) {
$current_category_not_found = true;
}
Hope this helps others who want to show a category grid on the homepage.
Bookmarks