The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ajax call´s throwing 302 request status

Discussion in 'General Discussion' started by Otávio Serra, Apr 27, 2015.

  1. Otávio Serra

    Otávio Serra Registered

    Joined:
    Apr 27, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I have one application running perfectly on localhost. When this the same application run in one cpanel server, all ajax requests returns with status 302 and status text Moved Temporarily and de responseText correctly given. Example:
    1. status: 302
    2. statusText: "Moved Temporarily"
    3. responseText: "{"resultado":[{"id_site_galeria":"3","nome":"galeria3"},{"id_site_galeria":"4","nome":"galeria4"},{"id_site_galeria":"1","nome":"Teste"},{"id_site_galeria":"2","nome":"Teste 2"}],"status":"Ok"}"
    Any one knows what is going?

    Thanks

    Otavio
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any error messages in /usr/local/apache/logs/error_log or in the error_log within the directory where the application is installed when this happens? Are you using Mod_Rewrite rules in any .htaccess files within the account?

    Thank you.
     
  3. Otávio Serra

    Otávio Serra Registered

    Joined:
    Apr 27, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I found the error and it´s in my application. I solved it and now all works perfectly. Thanks and close de topic please.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - Ajax call´s throwing
  1. josh77
    Replies:
    4
    Views:
    98

Share This Page