Page 1 of 1

Vqmod Error in Log

Posted: Tue Mar 21, 2017 9:38 am
by nootkan
I have opencart Version 1.5.6.4 installed with vqmod 2.6.1(taken from the vqmod.php file) on a linux CENTOS 6.8 x86_64 standard; WHM 62.0 (build 16); Apache Version 2.4.25, PHP Version 5.6.29, MySQL Version 5.6.35, Architecture x86_64, Perl Version 5.10., Kernel Version 2.6.32-573.22.1.el6.x86_64

I am seeing this error in my log:
2017-03-20 10:01:27 - PHP Notice: Undefined variable: error_captcha in /home/mywebsite/public_html/shop/vqmod/vqcache/vq2-catalog_view_theme_gallery_template_product_product.tpl on line 326
I have checked that the captcha is working and confirmed that it is.

Here is my file information:

Code: Select all

<?php if ($recaptcha) { ?>
    <?php echo $recaptcha; ?>
    <br />
    <?php if ($error_captcha) { ?>
    <span class="error"><?php echo $error_captcha; ?></span>
Can anyone shed some light as to what is going on with this? Thanks in advance.

Re: Vqmod Error in Log

Posted: Tue Mar 21, 2017 10:07 am
by opencartboost
May be you are using recaptcha.
You should define error_captcha in file controller (catalog/controller/product/product.php)

Re: Vqmod Error in Log

Posted: Tue Mar 21, 2017 10:50 am
by nootkan
Thanks for your reply.
I am not sure how to do what you suggest. I only am using the standard install of open cart and it was working just fine until now. Actually it is still working fine but just seeing these errors. I didn't make any modifications to the core, I did pay a developer to modify my product options to include dimensions for shipping but nothing else. As for the captcha it is only set up for the contact page as far as I can see when going through the admin and website pages. The captcha is working when I test it.

I don't have php coding skills hence hiring a dev for the options modifications. Any help here is greatly appreciated.

Re: Vqmod Error in Log

Posted: Fri Mar 24, 2017 6:13 pm
by nootkan
Because I couldn't figure this out I decided to remove the contact module from my site and create a different contact form and link to it instead. The warnings have now gone away.

Re: Vqmod Error in Log

Posted: Mon May 29, 2017 11:36 pm
by chrisranjana.com
Should it be <?php if (isset($error_captcha)) { ?> ?