New Zenner
- Join Date:
- Nov 2013
- Location:
- Hong Kong
- Posts:
- 44
- Plugin Contributions:
- 0
HELP! Footer Disappear on Categories only
Hi,
The footer area is missing in my category pages (For example: http://www.brightenbooks.com.hk/index.php?main_page=index&cPath=23)
There is this warning on the bottom of categories, where the footer should display.
"WARNING: An Error occurred, please refresh the page and try again."
Here is the content in the LOG file:
PHP Warning: Creating default object from empty value in /home/brightenbookscom/public_html/administrator/categories.php on line 1042
I guess I've fix this with the solution in the following thread:
https://www.zen-cart.com/showthread.php?200601-Done-v1-5-4-PHP-5-4-PHP-Warning-Creating-default-object-from-empty-value
I added one line in the categories.php, and problem fixed. Only that the footer still disappeared.:no:
if (empty($pInfo->products_id)) {
$pInfo = new stdClass();
$pInfo->products_id= $pID;
BTW, this problem only happened in the categories, the footer does display in Home, product info page and even in EZ-page. And I can't find any threads that similar to my problem.
Any idea?
Thanks,
Eva