[dokuwiki] Re: Images not showing up (line feed at beginning)

  • From: Mark Dalton <mdalton@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 31 Mar 2011 14:05:54 -0400


I should have gave a few more details.   I have searched for a
few days, and I reinstalled with nothing in the wiki, and added
a new image, with the same issue.

I merged 4 web servers into one new virtual server.

I have seen the messages with editors adding a line feed (BOM/CRLF)
I have gone through every file with:
      'find . -type f -exec file {} \; | egrep "BOM|CRLF"'

The machine is a virtual machine running:
    Red Hat Enterprise Linux Server release 5.6 (Tikanga)
    Apache: httpd-2.2.3-45.0.1.el5
    PHP:  php-5.1.6-27.el5_5.3

Dokuwiki:
    * Currently: From git as of March 31, 2011
    * Also the released: 2010-11-07a
       And a few older releases.

[root@www doku]# find mdalton -type f -exec file {} \; | egrep "BOM|CRLF"
mdalton/_test/README: ASCII English text, with CRLF line terminators


http://www.ee.princeton.edu/mdalton/


The original image in data/media:
[root@www doku]# od -c orig.jpg | head -2
0000000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 002  \0 034
0000020  \0 034  \0  \0 377 333  \0   C  \0 003 002 002 002 002 002 003

The image via 'wget':
[root@www doku]# od -c fetch.php\?media\=tureci.jpg | head -2
0000000  \n 377 330 377 340  \0 020   J   F   I   F  \0 001 001 002  \0
0000020 034  \0 034  \0  \0 377 333  \0   C  \0 003 002 002 002 002 002

I am stumped on this..   I have dokuwiki working without problems on
a few other servers.

Mark

On 03/31/2011 11:48 AM, Mark Dalton wrote:

I have moved the dokuwiki sites to a new server.   And now images
are not being displayed.   When I use wget to grab the image using
/lib/exe/fetch.php?media=image.jpg

The image comes, but it has a line feed appended.   I have tried
this with the the wiki's copied from the old server, and also from
a fresh install of the release and a git clone of the development
version.

I have checked for BOM|CRLF from all files.

I am sure it is something in the apache or PHP configuration.

Does anyone have any hints as to what else to change?

Mark

--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: