Part of the EllisLab Network
   
1 of 2
1
V 1.5 - Parse errors are gone
Posted: 01 November 2006 04:30 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  72
Joined  04-26-2006

On my box PHP Parse errors don’t show up anymore. I get zero output. For example, see what happens if you omit a } in your code. I need these error messages the most on a monday morning :P

Profile
 
 
Posted: 01 November 2006 07:23 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  970
Joined  04-13-2006

Interesting. Working with 1.5 beta 3 I got the occasional blank screen where I think I should have seen a parse error. I’ll try to recreate some of my errors and get more specific.

Profile
 
 
Posted: 01 November 2006 10:49 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  18
Joined  06-03-2006

Same issue here…

Upgrading to 1.5.0.1 corrected the redeclare errors.

Profile
 
 
Posted: 01 November 2006 04:42 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  07-23-2006

I noticed alot of errors missing too, I’m quite a sloppy coder and my coding style almost relies on these errors smile

 Signature 

running man webdesign

Profile
 
 
Posted: 01 November 2006 05:47 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  10-27-2006

I am also experiencing this same problem.

Whenever a syntax error occurs I just get a blank page.

Profile
 
 
Posted: 01 November 2006 06:08 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  970
Joined  04-13-2006

Bring back our errors! CI infringes our human rights! We demand the right to screw up!

Profile
 
 
Posted: 01 November 2006 06:19 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  2
Joined  11-01-2006

Same happening here too, any ideas on where the root of this problem lies, I don’t even know where to start debugging!

Profile
 
 
Posted: 02 November 2006 08:59 AM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  80
Joined  09-14-2006

All controller and model errors appear to be gone.  Viewer errors remain, though.

 Signature 

LuTze
If the world didn’t suck, we’d all fall off.
Artful Code

Profile
 
 
Posted: 02 November 2006 11:29 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  15
Joined  10-20-2006

rick looking into this?

Profile
 
 
Posted: 02 November 2006 01:11 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
RankRankRank
Total Posts:  970
Joined  04-13-2006

Assuming the problem lies with show_php_error() in the Exceptions class - only an assumption, not a fact - the only difference between 1.4.1 and 1.5.0 is the insertion of these lines in 1.5.0:

if (ob_get_level() > 1)
        
{
            ob_end_flush
();    
        
}


Anyone here know enough about output buffering to take this thought any further?

Profile
 
 
Posted: 02 November 2006 05:15 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
RankRank
Total Posts:  300
Joined  10-17-2006

Could it be the case that the error is outputted to the browser and thus screwing up the whole output buffering system. Similar to the ‘headers already sent’ error that all of us probably encounter once when we had a couple of spaces before the <? at the beginning of the file.

When output buffering is turned off this should, however, not be a problem, should it?
S

Profile
 
 
Posted: 02 November 2006 11:55 PM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2505
Joined  12-21-2001

Martin - the code you point to was added to fix an output buffering error on some systems.  I’m curious from you guys who are not seeing errors what happens if you comment out those line in Exceptions.php (around lines 118 and 154).

 Signature 
Profile
MSG
 
 
Posted: 03 November 2006 12:06 AM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2505
Joined  12-21-2001

Hang on!  I found it.  Open:

/codeigniter/CodeIgniter.php

At line 135 remove the error suppression character from the include.  In other words, change @include to include.

 Signature 
Profile
MSG
 
 
Posted: 03 November 2006 04:53 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
RankRankRank
Total Posts:  970
Joined  04-13-2006

Many thanks, Rick.
RE-WIND: There’s no such line in Codeigniter.php.  wink

Profile
 
 
Posted: 03 November 2006 05:00 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  72
Joined  04-26-2006

Thanks, happy to see this is fixed. IMHO error suppression is a bad thing and should not be used.

Profile
 
 
Posted: 03 November 2006 05:13 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  481
Joined  03-08-2006

Yes it does Martin, 260 actually grin

1.5.0.2? wink

 Signature 

Flickr | Last.fm | Del.icio.us

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66413 Total Logged-in Users: 32
Total Topics: 84753 Total Anonymous Users: 1
Total Replies: 454823 Total Guests: 235
Total Posts: 539576    
Members ( View Memberlist )
Newest Members:  byrooNirCalexmuellerkizerdrixcaptainredmuffquinodligtharttechsivamDjordjesammozza