• Resolved bendean

    (@bendean)


    I am using Locatoraid Pro and the plugin is returning this javascript error when loading:

    “Error parsing JSON from /locations/?/front/get/45.5234515/-122.6762071/0”

    This error does not occur when I am logged in to WordPress. The url in the erro returns valid JSON when loaded in the browser, but when called via XHR from the plugin is returning 500. Here are the headers:

    Remote Address:50.116.18.187:80
    Request URL:http://nwurgentcare.com/locations/?/front/get/45.5234515/-122.6762071/0
    Request Method:POST
    Status Code:500 Internal Server Error

    The site is on WP-Engine and the error is only occurring in the production environment, not the staging environment with the same code base.

    Please advise.

    https://ww.wp.xz.cn/plugins/locatoraid/

Viewing 1 replies (of 1 total)
  • Hello,
    The reason for this issue was that WPEngine implements page caching on front end pages, and our plugin is dealing with cookies and PHP sessions to protect from CSRF so it failed. We had to change some parts of our code, and it’s now resolved since version 2.3.3

Viewing 1 replies (of 1 total)

The topic ‘XHR request for location data returns HTTP 500’ is closed to new replies.