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 5571
Notice How to Upload Pictures in webpages 운영자 2016.07.06 2019.12.31 544
Notice How to Write a Webpage 운영자 2016.06.28 2017.07.19 822
Notice Brief Instruction of using SNUMA Website 운영자 2008.04.28 2016.06.28 768
41 Missing Language Bar 운영자 2015.05.17 2015.05.17 1090
40 dl, dt [1] 운영자 2015.01.20 2018.09.09 121
39 dt, dl codes 운영자 2013.11.17 2018.09.06 137
38 New "Sam-Kook-Ji" Drama Series, in Korean [5] 운영자 2012.09.06 2012.09.06 1030
37 When your computer is taken over by a virus 운영자 2011.06.19 2011.06.19 364
36 Retirement Savings and Distribution [1] 운영자 2011.05.05 2011.05.05 460
35 YouTube Video by Embed Tag [11] 운영자 2011.03.29 2016.07.03 544
34 Mahjong Basics [1] 운영자 2010.12.23 2010.12.23 341
33 Good looking fancy fonts [3] 운영자 2010.10.09 2016.07.03 490
32 PhotoWorks Program file 운영자 2010.10.18 2010.10.18 310
31 Table Template 1 - Simple basic table frame [2] 운영자 2010.02.27 2010.02.27 205
30 Complex table frame with Legend and Fieldset [2] 운영자 2010.05.10 2010.05.10 267
29 Basic Frame Templates - 기본 테두리, 사진 넣기 [2] 운영자 2010.02.27 2010.02.27 261
28 Basic Frame Templates - 좀 복잡한 이중 테두리 [1] 운영자 2010.02.27 2010.02.27 226
27 Basic Frame Templates - 단색 테두리와 배경 [1] 운영자 2010.02.27 2010.02.27 229
26 Basic Frame Templates - 진한 밖 테두리, 엷은색 배경 [1] 운영자 2010.02.27 2010.02.27 254
25 Basic Frame Templates - 단색 테두리와 단색 배경 [1] 운영자 2010.02.27 2010.02.27 211
24 Basic Frame Templates - 어두운 배경-밝은 글자 [1] 운영자 2010.02.27 2010.02.27 228
23 Basic Frame Templates - 다른색 테두리, 안테두리와 배경 [1] 운영자 2010.02.27 2010.02.27 192
22 참고 - Modified Music Player 운영자 2010.02.02 2010.02.02 120