[symfony-users] Re: Error on Exception Handling using Event Notifications
I figured out it has nothing to do with the event handler. I´s happening on every page. On my "error_404_action", I redirect to the homepage and it shows the uncaught exception message. Anybody knows why? 2010/2/24 Bruno Reis > Hi, > > I´m connecting the "application.throw_exception" event to my exception > handler class. > > public function configure() { > $this->dispatcher->connect( > 'application.throw_exception', > array('MyExceptionHandler', 'listenToApplicationException') > ); > } > > On the end of the listener method I return true. When symfony handles a 404 > it redirects succesfully, but show an exception at the end of the page shown > after the redirect (sfStopException). This exception comes from the end of > the sfAction::forward method. > > What can I do to prevent this? > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Error on Exception Handling using Event Notifications
Try to show us the exception.. On 24 ún, 17:59, Bruno Reis wrote: > I figured out it has nothing to do with the event handler. > I´s happening on every page. > > On my "error_404_action", I redirect to the homepage and it shows the > uncaught exception message. > Anybody knows why? > > 2010/2/24 Bruno Reis > > > > > Hi, > > > I´m connecting the "application.throw_exception" event to my exception > > handler class. > > > public function configure() { > > $this->dispatcher->connect( > > 'application.throw_exception', > > array('MyExceptionHandler', 'listenToApplicationException') > > ); > > } > > > On the end of the listener method I return true. When symfony handles a 404 > > it redirects succesfully, but show an exception at the end of the page shown > > after the redirect (sfStopException). This exception comes from the end of > > the sfAction::forward method. > > > What can I do to prevent this? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Error on Exception Handling using Event Notifications
I found some threads saying it´s related to a bug on a windows component. Since we only use windows on dev environments, I´ve tested on other envs and it worked. So it´s ok now. Thanks. 2010/2/26 Tom Ptacnik > Try to show us the exception.. > > > On 24 ún, 17:59, Bruno Reis wrote: > > I figured out it has nothing to do with the event handler. > > I´s happening on every page. > > > > On my "error_404_action", I redirect to the homepage and it shows the > > uncaught exception message. > > Anybody knows why? > > > > 2010/2/24 Bruno Reis > > > > > > > > > Hi, > > > > > I´m connecting the "application.throw_exception" event to my exception > > > handler class. > > > > > public function configure() { > > > $this->dispatcher->connect( > > > 'application.throw_exception', > > > array('MyExceptionHandler', 'listenToApplicationException') > > > ); > > > } > > > > > On the end of the listener method I return true. When symfony handles a > 404 > > > it redirects succesfully, but show an exception at the end of the page > shown > > > after the redirect (sfStopException). This exception comes from the end > of > > > the sfAction::forward method. > > > > > What can I do to prevent this? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en