Re: Debug Error?
Well if you remove the view and it works, then its obviously something wrong in the view. Your best bet is to remove sections of the view 1 by 1 to see what errors. On Oct 14, 9:45 am, "Dave Maharaj :: WidePixels.com" wrote: > Nothing out of the ordinary. > > No there was none (Debugger::log(), Debugger::dump() anything like that > added anywhere) > Just the data sent back from the controller. > Just weird how nothing was reported when debug was set to 1 or 2 but at 0 it > just died. > > I just cleared the entire view and rebuilding it. And checking line by line > to see where / if it break again. > > Thanks, > > Dave > > -Original Message- > From: brian [mailto:bally.z...@gmail.com] > Sent: October-14-09 1:54 PM > To: cake-php@googlegroups.com > Subject: Re: Debug Error? > > On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com > wrote: > > > I ran a find and replace for all debug(); > > > Still same thing. > > I meant the Debugger class, not debug(). Like Debugger::log(), > Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a fatal > error if you have any code like that. > > > So I stripped out the view file and it works now so Yeah looks like > > something in the actual view file was killing it. > > You didn't see anything suspicious in the view? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
RE: Debug Error?
Nothing out of the ordinary. No there was none (Debugger::log(), Debugger::dump() anything like that added anywhere) Just the data sent back from the controller. Just weird how nothing was reported when debug was set to 1 or 2 but at 0 it just died. I just cleared the entire view and rebuilding it. And checking line by line to see where / if it break again. Thanks, Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: October-14-09 1:54 PM To: cake-php@googlegroups.com Subject: Re: Debug Error? On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com wrote: > > I ran a find and replace for all debug(); > > Still same thing. I meant the Debugger class, not debug(). Like Debugger::log(), Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a fatal error if you have any code like that. > So I stripped out the view file and it works now so Yeah looks like > something in the actual view file was killing it. You didn't see anything suspicious in the view? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Debug Error?
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com wrote: > > I ran a find and replace for all debug(); > > Still same thing. I meant the Debugger class, not debug(). Like Debugger::log(), Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a fatal error if you have any code like that. > So I stripped out the view file and it works now so Yeah looks like > something in the actual view file was killing it. You didn't see anything suspicious in the view? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Debug Error! Makes no sense!
By posting error messages in debug mode? [Configure::write('debug', 1);] On Oct 13, 8:46 pm, "Dave Maharaj :: WidePixels.com" wrote: > I stripped out the controller function leaving it like this > > function view($id) { > $this->layout = 'default_right'; > $this->set('reports', $this->Report->read(null, $id)); > } > > And it still will not work. So comment out //$this->layout = > 'default_right'; > and it works. > Makes no sense , the $this->layout = 'default_right'; is simple HTML and > works on every other page on the site > > If i completely remove $this->layout the page loads using the default > layout. Which is no good to me in this case. Even if I enter $this->layout = > 'default'; it breaks once again > > default_right.ctp (just to ..rest is regular baked template) > > > > element('top_nav'); ?> > > getSidebar(); ?> > > > > > > > > > > Anyone have any idea where to start on this one? > > Thanks > > Dave --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
RE: Debug Error?
I ran a find and replace for all debug(); Still same thing. So I stripped out the view file and it works now so Yeah looks like something in the actual view file was killing it. Thanks, Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: October-13-09 4:18 PM To: cake-php@googlegroups.com Subject: Re: Debug Error? What do you have in the layout file immediately after that? Also, do you have any code using Debugger class anywhere? That'll kill your app if debug is set to 0. On Tue, Oct 13, 2009 at 1:45 PM, Dave Maharaj :: WidePixels.com wrote: > > I have one page that is blank when i turn debug to 0. Every page on > the site works except the one. > > Set debug to 1 or 2 and i can access the page. But there are no errors > reported anywhere, view is normal with all the info i need showing up. > > All that gets rendered with debug 0 is > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > /> > Development: Teting > " > type="image/x-icon" rel="shortcut icon" /> > > Not sure where to go from here...there is obviously an error but how > to find it when it works with debug on and no errors? > > > Dave > > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
re: Debug Error! Makes no sense!
I stripped out the controller function leaving it like this function view($id) { $this->layout = 'default_right'; $this->set('reports', $this->Report->read(null, $id)); } And it still will not work. So comment out //$this->layout = 'default_right'; and it works. Makes no sense , the $this->layout = 'default_right'; is simple HTML and works on every other page on the site If i completely remove $this->layout the page loads using the default layout. Which is no good to me in this case. Even if I enter $this->layout = 'default'; it breaks once again default_right.ctp (just to ..rest is regular baked template) element('top_nav'); ?> getSidebar(); ?> Anyone have any idea where to start on this one? Thanks Dave --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Debug Error?
What do you have in the layout file immediately after that? Also, do you have any code using Debugger class anywhere? That'll kill your app if debug is set to 0. On Tue, Oct 13, 2009 at 1:45 PM, Dave Maharaj :: WidePixels.com wrote: > > I have one page that is blank when i turn debug to 0. Every page on the site > works except the one. > > Set debug to 1 or 2 and i can access the page. But there are no errors > reported anywhere, view is normal with all the info i need showing up. > > All that gets rendered with debug 0 is > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Development: Teting > " > type="image/x-icon" rel="shortcut icon" /> > > Not sure where to go from here...there is obviously an error but how to find > it when it works with debug on and no errors? > > > Dave > > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---