Ajax - Error 500 (Internal Server Error) [closed]

0
  

GET    link   500 (Internal Server Error)

My role

function estadoDinamico(indice, key, width, height){


    $.ajax({
        type:'GET',
        url : '<?= base_url(); ?>index.php/supervisaocontroller/estadoMaquinaMobAjax/'+key+'/'+indice+'/'+width+'/'+height,
        success: function(data){

            $('#contentSupervisao'+indice).html(data);
            $.ajax({
                type:'GET',
                url : '<?= base_url(); ?>index.php/supervisaocontroller/ConfigPersonalizadaAjax/'+key+'/'+indice,
                success: function(data){

                    $('#contentConfigPers'+indice).html(data);
                    setTimeout(
                            function(){
                                estadoDinamico(indice, key, width, height);
                            }, 2000
                    );
                }
            });
        }
    });
};

So the error occurs, someone could help ??????

    
asked by anonymous 03.07.2015 / 18:30

1 answer

0

I looked in the browser console (f12 - Chrome) on the network tab on the page where the Internal Server Error occurred and I saw the error exactly.

As the function comes from an ajax request the error is not shown in the console or PHP error. It is only shown error 500. On the tab shows the language error, which in my case php, and was the lack of a procedure to execute the method of creating the html to the screen.

    
03.07.2015 / 18:33