[pmwiki-users] Error on attachments when using $EnableDirectDownload = 0
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 4 16:17:06 CST 2007
On Thu, Jan 04, 2007 at 10:17:46PM +0100, Helge Larsen wrote:
> >Do downloads start working if you disable all of the recipes?
> >If yes, then perhaps you can enable recipes one-by-one until
> >we find the one that is interfering with ?action=download...?
>
> I'm can't change much in the config.php as the site is very important
> right now, but I can set up a test site to experiment with, if you
> cant find anything now.
Strange, when I run ?action=diag it shows up as Content-Type: text/html
also.
Okay, let's see if we can narrow things down a bit. Can you put
the following php script on your server somewhere and run it?
<?php
header("Content-type: text/plain");
echo "<body bgcolor='yellow'> Hello world </body> ";
?>
If the page comes back yellow, then that means it's a webserver
or PHP configuration of some sort that is stripping the
Content-Type header from the output. If it comes back as
the plain text (including the <body bgcolor...> tags), then
it's something specific to the PmWiki install that is doing
it.
Here's how it looks on my server:
http://www.pmichaud.com/sandbox/hello.php
Here's how it will look if the webserver is changing the
Content-Type header to text/html:
http://www.pmichaud.com/sandbox/hello-1.php
Thanks!
Pm
More information about the pmwiki-users
mailing list