HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.
get json data failed on 2.8 ($.getJSON)
This discussion is related to the Vanilla addon.

After successfully updating my Forum from 2.6.2 to 2.8, i have a Json Data problem...😮
Here is my code:
$.getJSON('https://MyLinkTo/profile.json', function(data) {
document.getElementById("fehlertext").innerHTML ='DATA OK';
}).fail(function() {
document.getElementById("fehlertext").innerHTML ='ERROR';
});
the Result is now allways "ERROR"
in the Console I get this error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Did nothing else, just updated VanillaForum to 2.8 🙄
This seems not to be a Jquery Error ( looked it up on the net) but no clue where to look...
Somebody an Idea? 😍
ThX in advance... 😘
0
Comments
p.s.:
if I directly call the link (https://MyLinkTo/profile.json) in the Brovser (Firefox, Vivaldi) I see the Data!!
Search for "CORS", "JSONP" and "Access-Control-Allow-Origin"
But whenever you face a "500" error, take a look at the web server log. In most cases this will give you the best hint what the problem really is.
Ou maaaann.... the Server Logs... 😱😄
ThX RJ 😘
In the Update process I managed to writeprotect my Config.php 🤐😫
As for JSONP... I'm calling it internal, so $.getJSON is working... 😁
Thhaanxxx, RJ, as allways, You`re the MAN!! 💪😎👍️