On May 24, 4:46 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > Hi All, > > I've noticed this behaviour only when debug = 0 (ie. production mode). I had > an Ajax call that worked fine in dev but failed in production. After lots of > troubleshooting, I looked at the Apache logs and noticed that when sending > via POST, it would send a 404. When the EXACT same request got changed from > POST to GET, it worked fine. > > I have other methods that get submitted to via POST and they work fine. I > also tried removing the $argument in the action definition and setting the > URL it submits to to /path/to/submit instead of /path/to/submit/<id> to > determine if CakePHP is simply checking if the GET-like request contains an > argument and blocks it if so, but it kept giving me a 404 ! Find out why, more than likely it's because a get requests dosen't trigger the same (APP) code as when you try to process the form data. As such your own code is calling something that doesn't exist e.g. the view related to your successful submission doesn't exist. hth, AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
