Error Line number 662 library/session.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Error Line number 662 library/session.php (/showthread.php?tid=16161) |
Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]linderox[/eluser] Code: A PHP Error was encountered In some page of the site there is an error on the top - what does it mean? Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]pistolPete[/eluser] Which CI version are you using? Post the code of your controller / view. Do you have white spaces at the end of your controllers? Omit the closing ?> tag. Do you echo from within the controllers? Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]linderox[/eluser] Code: <?php header.php view Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html > template.php view Code: <p>This is random text for the CodeIgniter article. Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]pistolPete[/eluser] You didn't answer all of my questions: Quote:Which CI version are you using? Try omitting the closing ?> tag! Read through these treads: - http://ellislab.com/forums/viewthread/45181/ - http://ellislab.com/forums/viewthread/69280/ Does the error occur when you call any function of your welcome controller or ist it function specific? In the error message the session class is mentioned, but you are not using it in your controller, did you load it somewhere else? Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]linderox[/eluser] Omitting the closing ?> tag helps to exclude this problem! my CI is 1.7 But I don't understand how it works Error Line number 662 library/session.php - El Forum - 02-26-2009 [eluser]pistolPete[/eluser] Read through this: http://www.bigbluehat.com/blog/2009/02/18/what-the-php-and-unwanted-whitespace/ Error Line number 662 library/session.php - El Forum - 11-29-2012 [eluser]Unknown[/eluser] two things, check your File Encoding type and if your welcome.php is UTF-8 BOM save without BOM. BTW, check your welcome.php end of file and maybe there is same space after '?>' tag, end if yes delete them then try again. |