ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

AJAX and POST won't work with {site_url} anymore

July 04, 2012 6:17am

Subscribe [1]
  • #1 / Jul 04, 2012 6:17am

    Sander @ Silo

    5 posts

    Hello EE-community,

    I just moved a site from one server to the other. Everything seems to work fine except one thing: All Ajax-calls and POSTs won’t work anymore. The URLs shows up correct in the source, and when I submit the form (<form action=”{site_url}/page”>) it DOES go to the correct page, it just doesn’t receive/send any data. Same for the AJAX-calls. It DOES show up good in the source code though…

    I have NO idea why it doesnt work. If I hardcode the URL instead of using {site_url} the code works. The weird thing is that I use ‘{site_url}’ for all images and links and they ALL work (also the linkage to the Javascript-files).

    Anyone has ANY idea why this doesn’t work? Cleaned the cache from within EE, and my own browsercache as well.

    Thanks in advance!

  • #2 / Jul 05, 2012 10:55am

    Shane Eckert

    7174 posts

    Hello Sander,

    I am sorry to hear you are running into this problem.

    Did you follow the guide when moving the server? In this same doc it covers paths. It could be that a path, maybe in on of the channels, is not right. That a good thin to rule out.

    Could I see an example of some code that does not work?

    What version of ExpressionEngine are you currently running?

    Please let me know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases