Post by mark4785 » Sun Aug 21, 2016 6:05 am

My systems/log/error.txt file has the following entries in it:

Code: Select all

2016-08-17 20:58:48 - PHP Notice:  Undefined index: sku in /home/CLIENTUSERREMOVED/public_html/catalog/view/theme/default/template/common/home.tpl on line 26
2016-08-17 20:58:48 - PHP Notice:  Undefined index: sku in /home/CLIENTUSERREMOVED/public_html/catalog/view/theme/default/template/module/bestseller.tpl on line 13
I have replaced the clients virtual hosting account name with 'CLIENTUSERREMOVED'.

Any idea what these entries mean and can such entries cause products to disappear as I have noticed random products disappearing from the frontend and the backend of my OpenCart.

Regards,
Mark.


Active Member

Posts

Joined
Fri Jan 30, 2015 3:01 am

Post by villagedefrance » Sun Aug 21, 2016 7:23 pm

This means that the "sku" variable is not defined properly in the:
- "common/home" controller
- "module/bestseller" controller

Just check in the above files if the "sku" variable is correctly defined.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK

Post by mark4785 » Mon Aug 22, 2016 7:43 am

villagedefrance wrote:This means that the "sku" variable is not defined properly in the:
- "common/home" controller
- "module/bestseller" controller

Just check in the above files if the "sku" variable is correctly defined.
Sorry but how would I know if it is correctly defined? Is there a piece of code that shows everything to be correctly defined?

Regards,
Mark.


Active Member

Posts

Joined
Fri Jan 30, 2015 3:01 am

Post by mark4785 » Wed Aug 24, 2016 5:14 pm

Any help please?

Regards,
Mark.


Active Member

Posts

Joined
Fri Jan 30, 2015 3:01 am

Post by mark4785 » Sat Aug 27, 2016 6:29 pm

Bump

Regards,
Mark.


Active Member

Posts

Joined
Fri Jan 30, 2015 3:01 am

Post by IP_CAM » Sun Aug 28, 2016 2:34 am

Is there a piece of code that shows everything to be correctly defined?
sure, there is, it's called SKU. Someone has included it, as Extension, I assume, and now, it just will not show up,
by the Server-attempt, to probably present the Product SKU-Value in the bestseller.tpl Module on the home.tpl Page. But you talk about a Client, so, you better solve his problems, or then, get DEV Support, if you really still have no idea, what this means.

No offense, nothing personal ! ;)
Ernie

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 85 guests