EDIT: My .htaccess was omitting the .php from the url which resulted in the 404. Adding the correct .htaccess to directory, on host-2, of the calendar script, resolved the matter.
I use php(8.1) and fullcalendar. Everything works as expected. The events are displayed correctly. I can add and edit events too. When I use the exact same setup at another host, it does not display the events. The console error is 404 – not finding the start and end date. It works at one host but not another. There are no errors, no logs. I suspect it is to do with datae format between the different hosts, but I cannot seem to pinpoint it. Here is my code:
It works correctly at one host, but not at another.