Sunday, February 28, 2010

Re: Debugging the Security component

I worked it out. In my cache there were two views for the same page. One called sitename.php, the other called sitename_pages_home.php. They are of course both from the same source. However, it seems as if the Security component didn't like both of them being present. I cleared the cache and started again, this time no blackhole.

Doesn't really explain the reason behind this, but at least I know the cure. I placed a <cake:nocache></cake:nocache> block around the form for good measure.

Jeremy Burns
jeremyburns@me.com


On 28 Feb 2010, at 11:01, Jeremy Burns wrote:

> I have the Security component in my app_controller's $components
> array. The home page of a site has a simple text field to accept some
> data. When the form is submitted it is parsed through a controller
> with a very simple add function. This form submission is being
> intercepted and blackholed by the security component and presenting a
> blank page. Refreshing the page sends you back to the original home
> page.
>
> I have added a simple debug($controller) statement to the Security
> component's blackHole function.
>
> How do i determine why this submission is being blackholed?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: