Re: Controller action randomly running twice

2009-01-06 Thread WebbedIT
I'm sure the latest version of FireBug was supposed to stop the issue of loading requests twice to get extra header information, and I am using the newest version, but I am still getting repeat requests from time to time. Have had to alter my app's error checking to compensate for this.

Re: Controller action randomly running twice

2008-12-18 Thread WebbedIT
Could really do with some help with this. I added some log calls to my edit action and clicked to edit two different records, checked the log and found the following ... 2008-12-18 13:25:57 Debug: Edit form displayed for record # 6815 2008-12-18 13:25:58 Debug: Edit form displayed for record #

Re: Controller action randomly running twice

2008-12-18 Thread grigri
Cake doesn't call the actions twice, normally. I don't know if this is any help but I had a similar problem a while ago. It was down to a normal image tag on the view template: img src=img/whatver.png / Called from /posts/edit/123, this resulted in a query for /posts/edit/ 123/img/whatver.png

Re: Controller action randomly running twice

2008-12-18 Thread WebbedIT
Would that do it intermittently? See the below debug log ... 2008-12-18 13:49:26 Debug: Edit form displayed for record # 6815 2008-12-18 13:49:30 Debug: Edit saved for record # 6815 2008-12-18 13:49:32 Debug: TelephonyNumber Index 2008-12-18 13:49:34 Debug: Edit form displayed for record # 877

Re: Controller action randomly running twice

2008-12-18 Thread Matt Curry
Are you using Firefox w/ FireBug installed? I've seen FireBug make extra requests - at least with older versions. -Matt www.pseudocoder.com On Dec 18, 8:55 am, WebbedIT p...@webbedit.co.uk wrote: Would that do it intermittently?  See the below debug log ... 2008-12-18 13:49:26 Debug: Edit

Re: Controller action randomly running twice

2008-12-18 Thread WebbedIT
Tested your theory that something in my page with a local relative path was calling the page again. To do this I added an extra parameter to my edit function to see if it would echo any extra params into my debug message. function edit($id = null, $extra = null) { .. $this-log('Edit form

Re: Controller action randomly running twice

2008-12-18 Thread WebbedIT
Matt, that sounds promising as I am running FireBug/PHP and I have heard how it used to duplicate requests to pull back the header information etc. I have recently updated it though and I thought they had stopped doing that ?!? Anyway, I have disabled FirePHP and accessed a few pages, without

Re: Controller action randomly running twice

2008-12-18 Thread Adam Royle
By the way, you can also do this: $this-log($this) if you want to really analyse the request. :) Cheers, Adam On Dec 19, 12:13 am, WebbedIT p...@webbedit.co.uk wrote: Tested your theory that something in my page with a local relative path was calling the page again.  To do this I added an

Controller action randomly running twice

2008-12-17 Thread WebbedIT
Firstly, this references an earlier post of mine where my delete action was failing intermittently. http://groups.google.com/group/cake-php/browse_thread/thread/d92ab3a051409d/1e22dcd81cec0c7a Following advice from AD7six I added some log() calls and was able to spot that around 50% of the time