SugarNewsWikiDocsBugsForumFilesSource LoginRegister
HomeBugsBug #0003
Sugar Debug Crash
Bug #0003
Reported by Shawn Pearce (unregistered)
Feb 10th, 2008 at 6:05pm PST
Revision: 176

When enabling debug sugar seems to crash now.

Comment from Shawn Pearce
Feb 10th, 2008 at 6:17pm
This has been resolved.

I just neglected to clear the cache after updating. Yeah, I know, you already mentioned this to me but it completely slipped my mind.

Comment from Shawn Pearce
Feb 11th, 2008 at 2:55pm
Actually, no this is certainly a bug. After sugar regenerates the cache while debug is enabled it simply crashes again the next page load.

Comment from Sean Middleditch
Feb 11th, 2008 at 9:45pm
The isCached() method was always checking the actual cache, and returning true if the cached existed. The actual displayCache() method won't use the cache if debug is on, however. So turning on debug would cause any code relying on isCached() to fail to generate the content and then displayCache() would recreate the cache with missing data.

I modified isCached() to always return false is debug mode is enabled. This is fixed in SVN and will be in the 0.73 release.

Additional Comments:
or Login