Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1220949

    I am using a map plugin called WP Multi Store Locator Pro and it was not able to load the Google maps because of this error:
    “You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.”
    The developers found that the theme (Enfold) is loading google maps in all the admin pages, even though we have disabled the google maps https://prnt.sc/swja8z. We have managed to get the maps working by commenting 2 lines in your theme.
    themes/enfold/framework/php/class-gmaps.php

    commented below 2 lines (line no 111 and 114)

    1

    2

    // add_action( ‘admin_enqueue_scripts’, array( $this, ‘handler_wp_admin_enqueue_scripts’ ), 500 );

    // add_action(‘admin_footer’, array( $this, ‘handler_wp_admin_footer’ ), 999999 );

    Will this be affected by your next update and if so can you make it a permanent change?

    #1221642

    Hey mntsrvcs,

    Thank you for using Enfold and reporting this.

    We need to load the scripts on the enfold theme options page to verify the API keys. Not doing this might break our backend.
    I will add an issue to our dev repo to check if we can skip it on other admin pages – but as we did not have any other reports up to now this will not have a high priority. Please use your solution to fix the problem meanwhile and keep an eye on the changelog.

    Best regards,
    Günter

    #1227301

    Hello,

    It seems this same issue is now effecting 2 of our plugins. We are using Site review to gather customer reviews on our location to prevent spam posts we have also Akismet plugin which requires setting up a WordPress.com API key. How can I do this without affecting my map plugin?

    I also tried adding reCAPTCHA I setup the keys in the review plugin and also in Enfold options // Google Services. The keys are correct, but the badge is not showing up. I am receiving this error: “This site key is not enabled for the invisible captcha.” How do I fix this?

    Thanks
    Heather

    #1227617

    Hi Heather,

    Thanks for the update. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1227827

    I have disabled the reCAPTCHA on the Site Reviews plugin since it is not working. To enable it for testing from the dashboard click Site Reviews>>Settings>>Submissions under Invisible reCAPTCHA select Use reCAPTCHA then click Save Changes at the bottom of the page. It will automatically add the reCAPTCHA to the form on the pages. I have setup a test page: https://www.dpfalternatives.com/?page_id=4876&preview=true

    Thanks

    #1230010

    Hi!

    For next release I added 2 filters:
    avf_skip_enqueue_scripts_backend_gmaps
    avf_skip_enqueue_scripts_backend_grecaptcha

    Return ”skip_loading” to prevent loading of scripts in admin backend.
    But you need to implement a logic to make sure our backend works.

    Meanwhile:
    For reCaptcha in file enfold\framework\php\class-grecaptcha.php arounf line 140:

    
    //  add_action( 'admin_enqueue_scripts', array( $this, 'handler_wp_admin_enqueue_scripts' ), 500 );
    

    Cheers!
    Günter

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