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 Cheerleader & Troubleshooter Munich Moderator

    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.