Post by gossamerLL » Thu Dec 06, 2018 3:10 am

Version 2.3.0.2
I'm getting the following error in my error log:
2018-12-05 19:02:52 - PHP Notice: Undefined variable: product_data in C:\xampp\htdocs\shop\vqmod\vqcache\vq2-system_storage_modification_catalog_model_catalog_product.php on line 428

I've looked at the code around line 428:
public function getLatestProducts($limit) {

//$product_data = $this->cache->get('product.latest.' . (int)$this->config->get('config_language_id') . '.' . (int)$this->config->get('config_store_id') . '.' . $this->config->get('config_customer_group_id') . '.' . (int)$limit);


if (!$product_data) {


What do I need to add to define this variable and where should I add the code?
Thanks,
Linda

New member

Posts

Joined
Thu Jul 25, 2013 4:13 am

Post by IP_CAM » Thu Dec 06, 2018 3:24 am

Code: Select all

//$product_data = $this->cache->get('product.latest.' . (int)$this->config->get('config_language_id') . '.' . (int)$this->config->get('config_store_id') . '.' . $this->config->get('config_customer_group_id') . '.' . (int)$limit);
Well, the product_data definition/declaration line is made HIDDEN from beeing 'handled',
by use of a double forward-slash //, for what unknown to me reason ever, and can therefore
not be 'identified' and so 'used', by this Code:

Code: Select all

if (!$product_data) {
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

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

Post by gossamerLL » Thu Dec 06, 2018 3:32 am

I noticed that. Do you think I can just remove // from the cache file or is that happening somewhere else in the code (since this is a cache file)?

New member

Posts

Joined
Thu Jul 25, 2013 4:13 am

Post by cyclops12 » Thu Dec 06, 2018 4:51 am

Due to a vqmod that is changing the model/catalog/product file
Check your installed vqmods first

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 161 guests