Page 1 of 2 12 LastLast
Results 1 to 10 of 694

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi

    I have an issue on my website: We are starting to receive several fake account profiles and on checking the ReCaptcha form on our contact page, message are going through withour this being checked.

    Our website Is Zencart 1.5.3 on PHP 5.6 So I tried to install 3.4.1 again and I am still getting the issue.

    I have tried this set up in the tpl_contact_us_default.php, tpl_modules_create_account.php and tpl_products_reviews_write_default.php, both:

    Code:
    <?php echo recaptcha_get_html($publickey, $resp->error,$request_type == 'SSL'); ?>
    And

    Code:
    <?php echo recaptcha_get_html(); ?>
    neither work

    Theres no error logs and nothing related in the /logs/ folder

    I have also set up a new Recaptcha key for shaftlimited.com and configured this new key and again this makes no difference.

    The form can be viewed here https://shaftlimited.com/contact_us.html

    We did migrate server about 3 months ago, but only recently has this issue come to light.

    includes/modules/pages/contact_us/header_php.php around line 18 reads:

    Code:
    $error = false;
    if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
      $name = zen_db_prepare_input($_POST['contactname']);
      $email_address = zen_db_prepare_input($_POST['email']);
      $subject = zen_db_prepare_input($_POST['subject']);
      $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));
      $antiSpam = isset($_POST['should_be_empty']) ? zen_db_prepare_input($_POST['should_be_empty']) : '';
      $zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK');
    
      $zc_validate_email = zen_validate_email($email_address);
    
    
      if ($zc_validate_email and !empty($enquiry) and !empty($name) and !empty($subject) && $error == FALSE) {
        // if anti-spam is not triggered, prepare and send email:
       if ($antiSpam != '') {
          $zco_notifier->notify('NOTIFY_SPAM_DETECTED_USING_CONTACT_US');
       } elseif ($antiSpam == '') {
    
        // auto complete when logged in
        if($_SESSION['customer_id']) {
          $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
                  FROM " . TABLE_CUSTOMERS . "
                  WHERE customers_id = :customersID";
    
          $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
          $check_customer = $db->Execute($sql);
          $customer_email= $check_customer->fields['customers_email_address'];
          $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
        } else {
          $customer_email = NOT_LOGGED_IN_TEXT;
          $customer_name = NOT_LOGGED_IN_TEXT;
        }
    Please help or let me know if you need further info from me.

    Many thanks in advance.
    Last edited by dharrison; 28 Oct 2019 at 02:21 PM.
    Debbie Harrison
    DVH Design | Web Design blog

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Support Thread for Google reCAPTCHA plugin

    Your includes/modules/pages/contact_us/header_php.php looks correct. Just be sure the rest of the files in this plugin have been loaded into the correct locations.

    While like unrelated, you have a mixed content problem on your site.

    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>

    is being callled insecurely so is not loading. Fix that and then check the CAPTCHA again.

  3. #3
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Thanks jeking

    This is part of the template. I commented it out but this has made no difference.
    Last edited by dharrison; 28 Oct 2019 at 05:47 PM. Reason: update
    Debbie Harrison
    DVH Design | Web Design blog

  4. #4
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by dharrison View Post
    Thanks jeking

    This is part of the template. I commented it out but this has made no difference.
    Don't remove if. Edit it to be:

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>

    https

    For your captcha, check over any template override files. I've seen where a template override was an older version or just missing something that belonged in the current version of Zen Cart. In some cases, switching to the default template works but not in this case since template overrides are required.

  5. #5
    Join Date
    Nov 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi All,

    So per Jim's advice, I went ahead and upgraded my Zen Cart 1.3.9h site to Zen Cart 1.5.6c, this went much more smoothly than I expected, and I have been able to get the reCAPTCHA Plugin installed, simply by adding the keys, and uploading the files to the site. Upon checking the store, all was well, the reCAPTCHA box, was showing where it should be.

    Anyway, after a few days now, I haven't had any SPAM Create Accounts occur and just figured everything was OK, until a person reached out to me via the Contact us Page, stating that they were having issues creating an account, which is working by the way correctly. I was able to test that.

    They're telling me that after filling out all the mandatory fields, and checking the box, and clicking submit, it just cycles back to the create account page. I tried this myself, using a fresh email address, and address details, with all data being accurate and I get the same behavior, cycling back to the Account Creation page. The 73.xxx.xxx.150 is my external IP address.

    I checked the logs and I see the following, which I can't imagine is related, but it may be:

    [03-Dec-2019 00:04:11 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 include(/store/includes/extra_datafiles/products_quantities_mods.php) called at [/store/includes/init_includes/init_file_db_names.php:80]
    #2 require(/store/includes/init_includes/init_file_db_names.php) called at [/store/includes/autoload_func.php:48]
    #3 require(/store/includes/autoload_func.php) called at [/store/includes/application_top.php:170]
    #4 require(/store/includes/application_top.php) called at [/store/index.php:26]
    --> PHP Warning: Use of undefined constant STOCK_SHOW_LIMIT - assumed 'STOCK_SHOW_LIMIT' (this will throw an Error in a future version of PHP) in /store/includes/extra_datafiles/products_quantities_mods.php on line 2.

    [03-Dec-2019 00:04:11 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 include(/store/includes/extra_datafiles/products_quantities_mods.php) called at [/store/includes/init_includes/init_file_db_names.php:80]
    #2 require(/store/includes/init_includes/init_file_db_names.php) called at [/store/includes/autoload_func.php:48]
    #3 require(/store/includes/autoload_func.php) called at [/store/includes/application_top.php:170]
    #4 require(/store/includes/application_top.php) called at [/store/index.php:26]
    --> PHP Warning: Use of undefined constant STOCK_OFFSET - assumed 'STOCK_OFFSET' (this will throw an Error in a future version of PHP) in /store/includes/extra_datafiles/products_quantities_mods.php on line 3.

    [03-Dec-2019 00:04:11 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 include(/store/includes/extra_datafiles/products_quantities_mods.php) called at [/store/includes/init_includes/init_file_db_names.php:80]
    #2 require(/store/includes/init_includes/init_file_db_names.php) called at [/store/includes/autoload_func.php:48]
    #3 require(/store/includes/autoload_func.php) called at [/store/includes/application_top.php:170]
    #4 require(/store/includes/application_top.php) called at [/store/index.php:26]
    --> PHP Warning: Use of undefined constant STOCK_TEXT_IN_STOCK - assumed 'STOCK_TEXT_IN_STOCK' (this will throw an Error in a future version of PHP) in /store/includes/extra_datafiles/products_quantities_mods.php on line 4.

    [03-Dec-2019 00:04:11 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 include(/store/includes/extra_datafiles/products_quantities_mods.php) called at [/store/includes/init_includes/init_file_db_names.php:80]
    #2 require(/store/includes/init_includes/init_file_db_names.php) called at [/store/includes/autoload_func.php:48]
    #3 require(/store/includes/autoload_func.php) called at [/store/includes/application_top.php:170]
    #4 require(/store/includes/application_top.php) called at [/store/index.php:26]
    --> PHP Warning: Use of undefined constant STOCK_TEXT_QUANTITY_IN_STOCK - assumed 'STOCK_TEXT_QUANTITY_IN_STOCK' (this will throw an Error in a future version of PHP) in /store/includes/extra_datafiles/products_quantities_mods.php on line 5.

    [03-Dec-2019 00:04:11 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 include(/store/includes/extra_datafiles/products_quantities_mods.php) called at [/store/includes/init_includes/init_file_db_names.php:80]
    #2 require(/store/includes/init_includes/init_file_db_names.php) called at [/store/includes/autoload_func.php:48]
    #3 require(/store/includes/autoload_func.php) called at [/store/includes/application_top.php:170]
    #4 require(/store/includes/application_top.php) called at [/store/index.php:26]
    --> PHP Warning: Use of undefined constant STOCK_TEXT_OUT_OF_STOCK - assumed 'STOCK_TEXT_OUT_OF_STOCK' (this will throw an Error in a future version of PHP) in /store/includes/extra_datafiles/products_quantities_mods.php on line 6.

    [03-Dec-2019 00:04:12 UTC] Request URI: /store/index.php?main_page=create_account, IP address: 73.xxx.xxx.150
    #1 sizeof() called at [/store/includes/modules/sideboxes/more_information.php:33]
    #2 require(/store/includes/modules/sideboxes/more_information.php) called at [/store/includes/modules/column_left.php:31]
    #3 require(/store/includes/modules/column_left.php) called at [/store/includes/templates/template_default/common/tpl_main_page.php:103]
    #4 require(/store/includes/templates/template_default/common/tpl_main_page.php) called at [/store/index.php:97]
    --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /store/includes/modules/sideboxes/more_information.php on line 33.


    Is this part of my problem or is the issue something else altogether?

    James

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,741
    Plugin Contributions
    22

    Default Re: Support Thread for Google reCAPTCHA plugin

    You didn't include a link to your site, but I'll take a wild guess - are you using a TemplateMonster template? Check the create_account page and make sure the reCaptcha field is inside the <form> element and that it's being submitted with the form.

    The warnings in your debug logs are totally unrelated, although should be sorted because you'll end up having thousands of logs in no time.

  7. #7
    Join Date
    Nov 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by balihr View Post
    You didn't include a link to your site, but I'll take a wild guess - are you using a TemplateMonster template? Check the create_account page and make sure the reCaptcha field is inside the <form> element and that it's being submitted with the form.
    I am not using any 3rd party templates, just the standard Classic Green Template, with a couple of changes made to the standard files, which have been placed in custom template folder structure to make some slight formatting changes, along with a customization that was built for me as part of the Quantity Discounts Plugin by Scott Wilson.

    https://www.bnm-hobbies.com


    Regards

    James

  8. #8
    Join Date
    Nov 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by a02l1zz View Post
    I am not using any 3rd party templates, just the standard Classic Green Template, with a couple of changes made to the standard files, which have been placed in custom template folder structure to make some slight formatting changes, along with a customization that was built for me as part of the Quantity Discounts Plugin by Scott Wilson.

    https://www.bnm-hobbies.com


    Regards

    James
    OK, I figured out what was going on. It was an earlier discussion in the thread the put me on to this, as I upgraded from 1.3.9h to 1.5.6c, I had an Create_Account.php file in my /store/includes/modules/Custom folder, which wasn't upgraded and was still 1.3.9h, and as such, was missing the line that needed to be added. I renamed the file, copied the standard file there, and it's now working. I just have to figure out if the differences between the 1.3.9h and the 1.5.6c files in relation to customization's, assuming that there were any in the first place.

    I believe I placed the file there as I was making changes as it was 1.3.9h, so it may not even be necessary to have this file in my custom folder any longer, and I just confirmed that this is the case.

    Thanks for everyone's help.

    Regards

    James

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by a02l1zz View Post
    OK, I figured out what was going on. It was an earlier discussion in the thread the put me on to this, as I upgraded from 1.3.9h to 1.5.6c, I had an Create_Account.php file in my /store/includes/modules/Custom folder, which wasn't upgraded and was still 1.3.9h, and as such, was missing the line that needed to be added. I renamed the file, copied the standard file there, and it's now working. I just have to figure out if the differences between the 1.3.9h and the 1.5.6c files in relation to customization's, assuming that there were any in the first place.

    I believe I placed the file there as I was making changes as it was 1.3.9h, so it may not even be necessary to have this file in my custom folder any longer, and I just confirmed that this is the case.

    Thanks for everyone's help.

    Regards

    James
    To address this/figure it out, obtain a copy of 1.3.9h (available through links on the main page of this website) and compare includes/templates/template_default/templates/tpl_create_account_default.php (or whatever equivalent file) to the one you had in your customs folder. Any changes made there would be the ones to consider incorporating into your current versions equivalent file. Like you said, may not be necessary, but won't really know until that file comparison is done...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Support Thread for Google reCAPTCHA plugin

    I have not had a chance to test this plugin on 1.5.7 yet. I plan do but not sure when that will be yet.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 213
    Last Post: 18 Nov 2024, 04:17 AM
  2. Back to Top Plugin [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 6 Feb 2016, 10:52 PM
  3. v151 Plug 'n' Pay plugin [Support Thread]
    By KetchRescue in forum Addon Payment Modules
    Replies: 5
    Last Post: 28 Nov 2015, 04:56 AM
  4. Justuno Plugin [Support Thread]
    By JustunoApp in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 May 2015, 11:00 PM
  5. VendingBox Plugin Support Thread
    By vb_support in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 10 Feb 2013, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg