• Resolved gooleem

    (@gooleem)


    When not logged in, i get a stuck on loading map. It seems that it needs to load some data to display my markers.

    Console Log:

    GET https://…/wp-json/wpgmza/v1/marker-listing/base64eJyrVir… [HTTP/2 403 Forbidden 381ms]

    The REST API was blocked. This is usually due to security plugins blocking REST requests for non-authenticated users. wp-google-maps-pro.min.js:1:74326

    When logged in there is no problem.

    I am not using any special security plugin besides Jetpack (but disabling this does not help)

    Need help here.

    Sincerely

    gooleem

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi gooleem,

    Thanks so much for getting in touch and sorry for the trouble you are experiencing.

    Could I kindly ask if you would be open to sending me a screenshot or list of plugins actively installed on the site so that I can test this on my side and find which plugin is blocking the REST API in order to find a solution as soon as possible?

    Thanks so much for your time and I look forward to hearing back from you and assisting you further.

    Kindest regards,
    Dylan

    Thread Starter gooleem

    (@gooleem)

    Hello Dylan,

    Plugins i use:
    * Avada Builder
    * Avada Core
    * BNE Panels
    * Contact Form 7
    * EventON
    * Header and Footer Scripts
    * Jetpack
    * MC4WP: Mailchimp for WordPress
    * Obfuscate Email
    * WooCommerce
    * WooCommerce PayPal Checkout Gateway
    * WooCommerce Services
    * WP Google Maps
    * WP Google Maps – Pro Add-on
    * WP Retina 2x

    Each of these are in use on my website so “just disabling” is not a permanent solution.

    Hi there,

    Thanks so much for the response and information.

    From the list of plugins it doesn’t seem like this is due to a security plugin blocking the REST API.
    I believe it might be due to the compressed path variables and to confirm if this is the cause of the issue, could I kindly ask you to navigate to Maps > Settings > Advanced Settings and check the option titled ‘Disable Compressed Path Variables’ and save the settings.
    Once that option is selected and saved, could I kindly ask you to have another look and please let me know if that works as expected?

    Thank you so much.

    Kindest regards,
    Dylan

    Thread Starter gooleem

    (@gooleem)

    Hello Dylan,

    still doesnt solve the problem.

    I also found, that when manually sending a POST https://.../wp-json/wpgmza/v1/marker-listing/ request, i get the following result:

    
    <br/><b>Notice</b>: Undefinedindex: HTTP_X_WPGMZA_ACTION_NONCEin<b>/var/www/vhosts/.../httpdocs/wp-content/plugins/wp-google-maps/includes/class.rest-api.php</b>online<b>79</b><br/>{
      "code": "wpgmza_action_not_allowed",
      "message": "You do not have permission to perform this action",
      "data": {
        "status": 403
      }
    }
    

    i’m gonna try and remove the notice stuff

    Hi there,

    Thank you so much for the response and the information.

    Could I kindly ask if you could create a ticket here: https://www.wpgmaps.com/contact-us/ so that I can assist you more closely in order to find a solution as soon as possible?
    Additionally, would you perhaps be open to creating a temporary account for me on your site in the ticket so that I can take a closer look as to what is causing this issue and to find a solution as soon as possible? This will be a major help in debugging and finding the root of the issue and fixing it.

    Thanks for your time. I am looking forward to assisting you further.

    Kindest regards,
    Dylan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The REST API was blocked’ is closed to new replies.