1
irmtfan
wf-downloads - Headers already sent
  • 2004/8/7 19:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


when i as webmaster or a user want to download a file it say "Headers already sent".
is this in the options??
thanks in advance

2
Bender
Re: wf-downloads - Headers already sent
  • 2004/8/7 22:41

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


We had another report of this happening but don´t know the reason yet.

Can you please provide the following information:

- wf-downloads version?
- what did you use before? (older version of wf-downloads or did you use original mydownloads and converted?)
- XOOPS version?
- Apache / IIs version?
- PHP version?
- does this happen with all files in download section or only with some? If only with some: Is there a difference with files converted from whatever you used before and files added now in this version?

3
irmtfan
Re: wf-downloads - Headers already sent
  • 2004/8/7 23:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


- wf-downloads v2.0.5
- original mydownloads v1.1
- XOOPS 2.0.7
- apache 1.3.31
- php 4.3.7
i try 20 file in site but no luck
i open test site for anon user and turn on php-debug:
http://www.jadoogaran.com/test/modules/wfdownloads/visit.php?cid=4&lid=37

[edit] i close test site [/edit]
p.s.:

Quote:
Notice [PHP]: Undefined variable: result in file include/jdf.php line 103
Notice [PHP]: Use of undefined constant maket - assumed 'maket' in file include/jdf.php line 45

these notices are not important and jdf.php is a external file for hegira date that i use

4
Bender
Re: wf-downloads - Headers already sent
  • 2004/8/7 23:18

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

i try 20 file in site but no luck


1. Are these all old files that have been converted from my downloads script or also files that have been uploaded after you installed version 2.05?

2. Did you edit any wf-downloads files? If so could it be that you have added a char or blankspace outside of the PHP tags?

Files should start/end like this:

?>

There should be nothing before it and nothing behind it.


Quote:
from php wikki
A.: Just to clarify... this problem is caused by blank lines appearing OUTSIDE the tags of any source or template file. Blank lines inside the tags are fine, but blank lines outside are interpretted as HTML and get immediately writted to standard output. If this happens before all headers have been generated by the script, then it will cause the 'headers already sent' error. The most common places to inadvertently add blank lines are at the beginning of a PHP file (before the tag). --MichaelVanDam


5
irmtfan
Re: wf-downloads - Headers already sent
  • 2004/8/7 23:35

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


all files from my download
i try to submit a file but not success.
i try txt , doc and zip but always it said " mimetype not allowed".
i check mimetype manager and thats ok
[edit] 2- i dont edit any file of wfdownloads. perhaps there is a blank space in original package?? [/edit]

6
Catzwolf
Re: wf-downloads - Headers already sent
  • 2004/8/8 1:50

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

irmtfan wrote:
all files from my download
i try to submit a file but not success.
i try txt , doc and zip but always it said " mimetype not allowed".
i check mimetype manager and thats ok
[edit] 2- i dont edit any file of wfdownloads. perhaps there is a blank space in original package?? [/edit]


I have change the visit.php file and I think that this should correct a few problems that some people may be having with headers etc.

Please visit out website and then click on the link for our CVS and download the latest version from there.

7
irmtfan
Re: wf-downloads - Headers already sent
  • 2004/8/8 2:42

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i download v2.0.5 but it seems no change in visit.php .
( i upload and still problem )
can u give me a direct link please.
thank u

8
kiwiguy
Re: wf-downloads - Headers already sent
  • 2004/8/8 3:06

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


Hey I had the same problem with hader alredy sent when trying to download a download..

After i replaced the visit.php it seemed to work with only one hitch it will not automatically start the download you have to click the click here is download does not start automatically but other than that it works fine once you do that.

cheers
kiwiguy

9
Catzwolf
Re: wf-downloads - Headers already sent
  • 2004/8/8 9:03

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Can everyone try using another theme from the the ones that they use or check that your theme files have no extra whitespaces after the ?>

10
Bender
Re: wf-downloads - Headers already sent
  • 2004/8/8 10:47

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

irmtfan wrote:
i download v2.0.5 but it seems no change in visit.php .
( i upload and still problem )
can u give me a direct link please.
thank u


Hi irmtfan,

the download link for the modified version is this:

http://cvs.sourceforge.net/viewcvs.py/*checkout*/wfsection/wfdownloads/visit.php?rev=1.4

Login

Who's Online

456 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 456


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits