[dokuwiki] Re: How to get media to work?

On Sat, 27 Aug 2005 14:24:35 +0200
Marc Haber <mh+dokuwiki@xxxxxxxxxxxx> wrote:

> Hi,
> 
> On Thu, Aug 25, 2005 at 12:52:06AM +0200, Marc Haber wrote:
> > On Wed, Aug 24, 2005 at 10:55:32PM +0200, Andreas Gohr wrote:
> > > Hmm looks like there occurs an error which doesn't get reported to
> > > the browser (maybe error printing is diabled in php.ini) Check
> > > your Apache errorlog if there are any PHP errors.
> > 
> > The error log is clean besides the usual "File does not exist:
> > favicon.ico".
> 
> Any more ideas what might be going wrong here? Or maybe hints for the
> next debugging steps?

Would be interesting to see what the 5 bytes are that get delivered.
When I try 

$> wget 'http://wiki.zugschlus.de/lib/exe/media.php?ns=' -O 'foo'

the resulting file is 0 byte...

For further debugging you should try to add the following line at the
very top of lib/exe/media.php :

print 'here i am';

Check if you get any output, then move it further down the file
until you get no more output - this way we can find the position where
it breaks.

Andi

Other related posts: