Salve
Sto avendo un problema con qesto errore.

codice:
let urlEvent = "https://one-station.it/script/app/events.php";
    $.ajax({
        type: "POST",
        url: urlEvent,
        data: "q=0",
        success: function(resultEvent){
            alert(resultEvent);
            if(resultEvent) $("#listEvent").html(resultEvent);
        }
    });

Questo è l'errore:
codice HTML:
POST https://one-station.it/script/app/events.php 500 (Internal Server Error)
send                                             @    jquery.js:2
ajax                                              @    jquery.js:2
(anonimo)                                     @    index.js:100
e                                                  @    jquery.js:2
t                                                  @    jquery.js:2
setTimeout (async) (anonimo)        @    jquery.js:2
c                                                  @    jquery.js:2
fireWith                                        @    jquery.js:2
fire                                              @    jquery.js:2
c                                                 @    jquery.js:2
fireWith                                       @    jquery.js:2
ready                                          @    jquery.js:2
P                                                 @    jquery.js:2