PHP 8.* getJSON
Posted: Mon 08 Apr 2024 12:22 pm
Hi
I've been updating scripts that have had errors while testing on PHP 8.2.
I've got almost everything fixed bar one item:
The URL gives a 500 internal server error on PHP 8.* but not on 7.*
I've been updating scripts that have had errors while testing on PHP 8.2.
I've got almost everything fixed bar one item:
Code: Select all
function getwindy(model,step){
$.ajaxSetup({ cache: false });
var moty = getType();
$.getJSON('ewn/ewn/ewn_proxy.php?callback=?',{"model":model,"step":step},function(result){
canvasOverlay = L.canvasOverlay().drawing(redraw).addTo(wsmap);
windy = new Windy({canvas: canvasOverlay.canvas(), data: result});
context = canvasOverlay.canvas().getContext('2d');
wsmap.on('dragstart', function() { clearWind() });
wsmap.on('zoomstart', function() { clearWind() });
wsmap.on('resize', function() { clearWind() });
windyCache['model']=[];
windyCache['model']['moty']=[];
windyCache['model']['moty']['step']=result;
});
}