I should point out, the above is what it does in Firefox. In IE, it tries to download a file called “admin-ajax.json”, which I have never heard of. We didn’t risk downloading it.
Plugin Author
Will Brubaker
(@willthewebmechanic)
Automattic Happiness Engineer
It would appear that there are some file permission issues – as a non logged in user, the ajax request when submitting the survey results in a 403: http://cld.wthms.co/10aox/4HoNZp25
The plugin uses the wp_json_send family of functions which sets the content type headers appropriately, so the fact that you are seeing json and/or the browser is trying to download json indicates that something is mangling the headers – possibly a server configuration thing, possibly another plugin. What conflict troubleshooting steps have you taken?
Well, I haven’t tried anything, since it worked fine this time last year, and I didn’t recall installing any new plugins since then. I certainly haven’t changed any WP settings, but it is possible that an update may have on it’s own.
I’m not sure what you mean by “non-logged-in user.” Our site is open, and no one logs in to view it.
Plugin Author
Will Brubaker
(@willthewebmechanic)
Automattic Happiness Engineer
Yes, that is significant.
Awesome Surveys includes and enqueues the jQuery validation library for validation of form input. For some reason that does not appear to be being loaded. I would recommend conflict troubleshooting steps to isolate the cause for that. Temporarily switch back to a default WordPress theme such as WordPress [Twenty Sixteen Theme](https://wordpress.org/themes/twentysixteen) and disable all plugins except for Awesome Surveys (this includes any plugins in “Must-use” or “Drop-ins” if they exist). If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.
Okay, I will have to wait until late tonight to do that, since I don’t have a testing site. I’ll let you know how it goes.
Interestingly I am seeing this error on a Blog where I am using Twenty Sixteen theme. This is what exactly I see on my blog
{“success”:true,”data”:{“thank_you”:”Thank you for completing this survey”,”url”:””,”urltimeout”:”0″}}
I don’t see any error on the page though when having inspected this page.
I was about to report this in the thread BUT then I came across this and hence am reporting it here.
Well, I had a chance to go through all of my plugins, and although I couldn’t point out a clear culprit, it appears that our advertisement handler (Ad Rotate) was in the mix. Since we couldn’t afford to get rid of that (or have down time from it while I found a replacement), I decided to find a survey plugin that didn’t have a conflict with any of my other plugins.
Thank you for your efforts.