Post by sgarbus » Tue Dec 22, 2015 10:07 pm

Hello,

I've been playing with my site lately and have noticed some issues with VQMod caching that are throwing some errors on my site. I've tried clearing VQMod cache, etc, to no avail.

An example of a page where I'm seeing this issue is:
http://bit.ly/1NJlg3s (shortened so this doesn't get indexed in Google). At the bottom of the page you see this error:

Code: Select all

Notice: Undefined variable: categories in /home/thetarge/public_html/elitespecialtymeats.org/vqmod/vqcache/vq2-catalog_view_theme_pav_wines_template_product_manufacturer_info.tpl on line 133
This is the contents of the file /vqmod/vqcache/vq2-catalog_view_theme_pav_wines_template_product_manufacturer_info.tpl -- http://apaste.info/5zI

Looks like this is the problem line:

Code: Select all

<?php if (!$categories && !$products) { ?>
If I change that line to this I get rid of the error:

Code: Select all

<?php if (!$products) { ?>
Now I'm not sure if that's exactly "proper" to completely remove a variable such as that, so any advice on how to fix this or if I need to show other files, etc., I'm definitely open to ideas. I've changed the code back for purposes of this post so viewers can see the error, but as mentioned above, removing the !$categories && section of that code clears the error.

Any help is much appreciated, thank you all!

Newbie

Posts

Joined
Tue Dec 22, 2015 10:01 pm

Post by IP_CAM » Wed Dec 23, 2015 10:35 pm

hard to say, since you have BOTH Lines in your File shown:
<?php if ($products) { ?>
<?php if (!$categories && !$products) { ?>

But it's a PAV Theme, as well, and this makes in generally a little complicated, since that Theme
uses stuff, like:
DIR_TEMPLATE.$this->config->get('config_template')."/template/common/config.tpl"
PAV Themes usually contain a lot of THINGS, uncommon to the 'regular' way, of building Themes.

Therefore, you should better contact PAV, to assist you with such, no-one would be able to,
exept one, using the same Theme, and VqMod.

Good Luck anyway!
Ernie
hitline.info/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + 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 Qphoria » Thu Dec 24, 2015 6:03 am

These are script errors, not related to vQmod engine, but bugs within some of your scripts. Contact the author of the scripts for fixes.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 8 guests