English

Data-Info

                 

November 14, 2009 - This error message happened before also.

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/snucmaa/public_html/snumc1965/bbs/lib.php on line 1000

This error was cleared (in the case of www.snucmaa.us) by removing the last empty line at the "public_html/snumc1965/bbs/lib.php"
This can happen to all other php files.

The fololowing is the solution. There are many other solutions too.

Symptom:

Warning: Cannot modify header information - headers already sent by (output started at /....includes/something/something/something.php:12) in ..../includes/something_else.php on line 67


Common Cause:

This warning is often caused by a blank space or extra line at the beginning or end of a .php file.

Check the error for the filename that generated the error (ie: the "output started at...." filename), open that file in your text editor and remove the extra spaces or lines  immediately before the first

Other Causes: Syntax errors


In the example above, you'll see output started at /....includes/something/something/something.php:12.  The includes/something/something/something.php is the filename you need to be concerned about.  The :12 means that the problem you need to fix is on line 12.

In that same example, the /includes/something_else.php on line 67 message can be completely ignored. It is not the problem. It is the one that discovered that the problem had already occurred.


If the "headers already sent" error appears AFTER any other error, then you need to fix that other error FIRST. (The error message itself is what caused headers to be sent, so fixing that error will cause the second error to go away too.)



Summary:

a) look for where it 'started at'
b) track the line number
c) check what's normally happening on that line.
--- If it's the end of the file, then it's blank spaces.
--- If it's the start of the file, it's likely spaces.
--- Elsewhere it could be a syntax error or the result of an "echo()" statement which is displaying info or perhaps debug code.
--- Common syntax errors include the use of single-quotes inside statements that already have single-quotes. Check to be sure your quotes aren't mismatched. If you need to use single-quotes while inside other single-quotes, change yours to \' instead of just '.
d) the rest of the info simply shows other execution information, mainly the part of the code that discovered that it cannot proceed as expected due to the problem that happened in the 'started at' location.
No. Subject Author Date Last Update Views
Notice How to write your comments onto a webpage 운영자 2016.07.06 2019.12.31 5577
Notice How to Upload Pictures in webpages 운영자 2016.07.06 2019.12.31 547
Notice How to Write a Webpage 운영자 2016.06.28 2017.07.19 827
Notice Brief Instruction of using SNUMA Website 운영자 2008.04.28 2016.06.28 771
38 HTML Lesson (1) Rosun 2005.07.09 2005.07.09 196
37 HTML Basic Tag Study (2) Rosun 2005.07.09 2005.07.09 132
36 HTML Basic Tag Study (3) Rosun 2005.07.09 2005.07.09 114
35 HTML Basic Tag Study (4) Rosun 2005.07.09 2005.07.09 154
34 홈피에 사진 올리기 [1] 一水去士 2006.02.18 2006.02.18 164
33 한자사전 (퍼옴) 석주 2007.06.19 2007.06.19 1673
32 Buttons and Icons - Making by Table [1] Steven 2008.02.24 2008.02.24 336
31 Webpage (or site) Source Code Viewer 운영자 2008.04.09 2008.04.09 84
30 Floating Balloons with Messages 운영자 2008.04.09 2008.04.09 98
29 세계적인 거장 30인의 작품 모음 운영자 2008.04.09 2008.04.09 111
28 ANSI Character Set 운영자 2008.04.09 2008.04.09 68
27 한국 동화 모음 (펌) 운영자 2008.04.09 2008.04.09 155
26 Class website data 운영자 2008.05.17 2008.05.17 251
25 Website Revision 운영자 2008.06.20 2008.06.20 115
24 만년달력 - 음력과 양력 [1] YonnieC#65 2008.10.30 2008.10.30 277
23 외국 동화 - 한글이나 영어로 읽고, 듣고, 보기 Rover 2009.01.13 2009.01.13 109
22 Zeroboard Data 운영자 2009.04.29 2009.04.29 195
» Error..: fread(): Length parameter must be greater than 0 운영자 2009.11.14 2009.11.14 16879
20 참고 - Modified Music Player 운영자 2010.02.02 2010.02.02 120
19 PhotoWorks Program file 운영자 2010.10.18 2010.10.18 312