Images don't show up on my clean-ish DokuWiki install, using Apache mod_rewrite clean URLs. They show as a broken image resource. I think I may have a whitespace problem, as I've eliminated everything else I can think of, but how do I track it down?
Let me first say that I know I am not the first person to have this issue! I have spent several hours reading everything I can find on the web about this, and trying various things to no avail. While I fully admit that the cause is probably one of the things which show up when you search the web for "dokuwiki broken images" - in fact I'd be delighted if it turned out to be so - I have been unable to isolate the cause.
Inspecting the element in Chrome shows me:
http://mywiki/_media/wiki/logo.png Failed to load resource: the server responded with a status of 404 (Not Found)
This is what I've tried so far to resolve the issue. Each time I tried something below, I started a new Private Browsing session in Chrome in hopes of avoiding any caching issues, at least on the client-side.
I have read
https://www.dokuwiki.org/faq:brokenimages:
* I don't get any PHP errors on the pages served, nor in error_log
* While using wget to retrieve the image would be a good option to see what's in the file, AD authentication is required to access the wiki, and after the trouble I had getting that working, I am reluctant to try to turn it off again. If I'm really desperate, this is where I'll go next, but it will be a significant piece of work and I'm reluctant to undertake it!
* xsendfile is set to 0, so I don't think it's that?
* No images seem to be working; the media manager won't display any, although it will take an upload
I have also read
https://forum.dokuwiki.org/post/51748:
* If I set userewrite to 0, issue persists; I also tried removing the .htaccess from /var/www/html and retrying, but still nothing
* I learned that Firefox tries to be more helpful, and indeed visiting the URL in FF shows me that "the image cannot be displayed, because it contains errors"
So now I'm hunting for whitespace somewhere, but I haven't yet found it.
Questions are:
* Any tips or tricks for finding the elusive whitespace which might(?) be causing this issue?
* Is it normal that the local.pgp generated by the Configuration Manager ends with // end auto-generated content and doesn't close off with closing PHP tags? I'm no PHP expert, but this seems odd to me.
I have root access on the host on which DokuWiki is installed. Most of my testing is done in Chrome, as this is the browser a majority of my users will be using.
Software:
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_auth_kerb/5.4 mod_fcgid/2.3.9 PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 on CentOS Linux release 7.2.1511 (Core).
2015-08-10a "Detritus"
Some plugins - can list all if required?