“Unexpected token ‘<',
-
Hello GiveWP Support Team,
I am currently experiencing an issue with a GiveWP donation form on our website and would appreciate your assistance.
When submitting the donation form, the browser console returns the following error:
“Unexpected token ‘<‘, “{“data””… is not valid JSON”
It appears that the AJAX response expected by GiveWP is returning HTML (starting with a
<p>tag) instead of valid JSON. Because of this, the JavaScript JSON parsing fails and the donation form cannot complete the request properly.Website:
https://sv-froemmersbach.de/spenden/Additional observations from the browser console:
- JSON parsing error when submitting the donation form
- Error message indicating HTML content (
<p>) before the JSON response - In some cases the console also shows:
JSON.parse: unexpected character at line 1 column 1 of the JSON data
Environment details:
- WordPress with Elementor
- GiveWP donation form embedded on the page above
- The response appears to contain HTML before the JSON output
Could you please advise:
- What might cause HTML (such as
<p>) to be prepended to the GiveWP JSON response? - Whether this could be related to a known GiveWP issue or a common plugin conflict?
- What the recommended debugging steps would be to identify the source of the invalid output?
If needed, I can also provide the full AJAX response and additional debugging information.
Thank you very much for your support.
Best regards
Andreas Rudolph
You must be logged in to reply to this topic.