Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1095493

    I’ve been trying to figure out what is going on with this theme and why certain content isn’t loading for over a week now. This issue is hard to explain but I believe I’ve narrowed it down to an issue with using Google ReCaptcha.

    SETUP:
    Using the latest enfold theme
    Using the Latest WordPress Version
    I’ve updated and tested all plugins separately

    What I’m finding – The Issue:
    When I put Google’s Site Key & Secret Key in the Theme Options and save parts of the site fail to load as expected. Sometimes after clearing the cache the files will load, but most times they will not. It seems to me that it only affects text that is in an animated container.

    If I then go back and remove these Keys the site returns to normal.

    Other Notes About The Issue:
    In the production version of the website I have a SUCURI Firewall and Caching in place. I’ve tested with the caching turned off. I also have adjusted my local hosts file to ensure I’m bypassing SUCURI.

    Console Files that keep showing Errors
    Uncaught TypeError: t.avia_utilities.supports is not a function
    at n (avia-head-scripts-9d16114390ac2d82fe8ad5b731879e02.js:8)
    at Object.t.avia_utilities.avia_ajax_call (avia-head-scripts-9d16114390ac2d82fe8ad5b731879e02.js:3)
    at HTMLDocument.<anonymous> (avia-head-scripts-9d16114390ac2d82fe8ad5b731879e02.js:2)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    avia-footer-scripts-f7e5d5394f3e5f09ad97f9f358f39f09.js:2 Uncaught TypeError: i.AviaTooltip is not a constructor
    at HTMLDocument.<anonymous> (avia-footer-scripts-f7e5d5394f3e5f09ad97f9f358f39f09.js:2)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at Function.ready (jquery.min.js:4)
    at HTMLDocument.q (jquery.min.js:4)

    Outside of creating the Google ReCaptcha key’s and putting them into theme options is there something I’m missing?

    Could someone please look into this issue on my dev server? The links to both the live site and dev server are in the Private Field as well as login credentials to the dev site.

    Thanks so much in advance!

    • This topic was modified 5 years, 6 months ago by estleman.
    #1095701

    Hey estleman,

    Please deactivate the script merging in the Performance tab and see if the issue persists?

    Best regards,
    Victoria

    #1095819

    Victoria, the problem still persists.

    #1096864

    Hi,

    Thanks for the update.

    We can reproduce the issue on your site but not on our own installation. Unfortunately, we haven’t figured out what’s in the reCAPTCHA script that’s creating that error. We did modify the asset-manager.php file to exclude the recaptcha API from the compression to prevent another error, which is not visible on your site because the debug mode is disabled. Please keep the js compression disabled for now.

    We’ll tag one of our developers to help with the issue.

    Best regards,
    Ismael

    #1097128

    Hey!

    UPDATE: We modified the recaptcha scripts in your installation. The elements are now loading properly even when the compression is enabled. We also tested and confirmed that the contact form is working properly.

    Cheers!
    Ismael

    #1099281

    Thank you Ismael,
    Is this going to get overwritten when I go to upgrade the theme in the next release? Just wondering how I should proceed at that point?

    Also, I’m noticing on pages where I have a form in the body, when the page loads the Google reCaptch shows “Authenticating” in the submit button(s). I assume this means Google ReCaptcha is working.

    However, the form I have set up in the footer widget does not show “Authenticating” on pages where there is not a form in the body of the page.

    • This reply was modified 5 years, 5 months ago by estleman.
    #1099877

    Hi,

    Thanks for the update.

    You can now upgrade the theme to version 4.5.7. The fix or modification is included there. Regarding the widget, it’s not working because the script checks for the av_contact shortcode inside the post/page content. We fail to consider those cases where the contact form is added inside a widget. We will adjust that in the future. For now, please edit the framework > php > class-grecaptcha.php file, look for this code around line 270:

    
                if( $api_vn == '' || ! isset( $matches[0] ) ) {
                    return false;
                }
    

    Replace it with:

    
                if( $api_vn == '' ) {
                    return false;
                }
    

    In the next patch, we’ll add a new logic that checks if a contact form is inside the widget areas.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.