Page 1 of 1

Undefined offset on line that doesn't exist??

Posted: Tue Jul 28, 2015 5:44 am
by kyuss
Hey guys, this error pops up in the admin when my Product pages load:

Code: Select all

2015-07-27 22:36:19 - PHP Notice:  Undefined offset:  115 in /home/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 638
Each unique product page is a different offset number, this is what my error log tends to look like:

Code: Select all

2015-07-27 22:36:19 - PHP Notice:  Undefined offset:  115 in /home/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 638
2015-07-27 22:44:51 - PHP Notice:  Undefined offset:  99 in /home/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 638
2015-07-27 22:47:55 - PHP Notice:  Undefined offset:  87 in /home/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 638
2015-07-27 22:52:01 - PHP Notice:  Undefined offset:  87 in /home/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 638
There is no line "638" in the module code though... I'm admittedly a hack, I stumble through fixes only half knowing what I'm doing... but I don't know how to begin figuring out this problem when I can't even find the code that's causing it... "catalog>model>catalog>product.php" only goes to line 570.

Are there any other tricks to source what's going on with this?

Re: Undefined offset on line that doesn't exist??

Posted: Tue Jul 28, 2015 7:26 am
by agatha65
Check this file
vqmod/vqcache/vq2-catalog_model_catalog_product.php
not this
catalog>model>catalog>product.php

The cache file is with all changes from the vqmod xml files and for sure there is line 638

The error comes when the vqmod file is changing the default file.

Re: Undefined offset on line that doesn't exist??

Posted: Wed Jul 29, 2015 1:04 am
by kyuss
@agatha65: Thank you for that... I certainly feel like an idiot for not realizing this sooner, lol... found the issue in two seconds!! :)