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.
Dr_SommerDr_Sommer Dr. of tender Programing ;) โœญโœญ

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... ๐Ÿ˜˜

Comments

  • Dr_SommerDr_Sommer Dr. of tender Programing ;) โœญโœญ

    p.s.:

    if I directly call the link (https://MyLinkTo/profile.json) in the Brovser (Firefox, Vivaldi) I see the Data!!

  • R_JR_J Ex-Fanboy Munich Admin

    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.


    Dr_Sommer
  • Dr_SommerDr_Sommer Dr. of tender Programing ;) โœญโœญ

    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!! ๐Ÿ’ช๐Ÿ˜Ž๐Ÿ‘๏ธ

Sign In or Register to comment.