Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Active Member

    Joined:
    Apr 27, 2015
    Messages:
    27
    Likes Received:
    5
    Trophy Points:
    3
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Otávio Serra

    Otávio Serra Active Member

    Joined:
    Apr 27, 2015
    Messages:
    27
    Likes Received:
    5
    Trophy Points:
    3
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice