Hi,
just for fun, I wanted to install my wiki off-line on a laptop. It works except for the images. Opening an article, the software does not find the images:
...images/d/de/imagename.jpg...: failed to open stream...
Well, of course the directories d/de below images do not exist. To my understanding those belong to the cache system of my life wiki. Therefore I did not copy them to the off-line version. I tried to set $wgCacheEpoch, $wgThumbnailEpoch, $wgUseFileCache and others to solve the problem - without success.
How can I persuade the software to use the image in the images-directory instead?
Thanks in advance, Uod
On 29/01/2008, zaydo zaydo@gmx.de wrote:
Hi,
just for fun, I wanted to install my wiki off-line on a laptop. It works except for the images. Opening an article, the software does not find the images:
...images/d/de/imagename.jpg...: failed to open stream...
Well, of course the directories d/de below images do not exist. To my understanding those belong to the cache system of my life wiki. Therefore I did not copy them to the off-line version. I tried to set $wgCacheEpoch, $wgThumbnailEpoch, $wgUseFileCache and others to solve the problem - without success.
How can I persuade the software to use the image in the images-directory instead?
The subdirectories are nothing to do with caching - they exist to prevent one folder getting excessively large. If you copied all the images to /images, rather than /images/d/de/ or whatever, then you just need to edit LocalSettings.php and set $wgHashedUploadDirectory to false, and everything should work. If you didn't copy the images at all, then you will need to do so, either to the subfolders (in which case, leave LocalSettings as it is) or just to the images folder (in which case, make the change to LocalSettings).
Hi Thomas,
thanks, that was fast and very helpful. $wgHashedUploadDirectory = false; solved the problem.
I thought that those directories relate to the cache, because I only have them in the images/cache-directory.
Thanks a lot, Udo
zaydo wrote:
Hi,
just for fun, I wanted to install my wiki off-line on a laptop. It works except for the images. Opening an article, the software does not find the images:
...images/d/de/imagename.jpg...: failed to open stream...
Well, of course the directories d/de below images do not exist. To my understanding those belong to the cache system of my life wiki. Therefore I did not copy them to the off-line version. I tried to set $wgCacheEpoch, $wgThumbnailEpoch, $wgUseFileCache and others to solve the problem - without success.
How can I persuade the software to use the image in the images-directory instead?
Your images are wither on /images or in /images/x/xy/ You can choose one of them with $wgHashedUploadDirectory http://www.mediawiki.org/wiki/Manual:%24wgHashedUploadDirectory
But be consistent.
The "cached images" would be the thumb/ folder with thumbnails.
mediawiki-l@lists.wikimedia.org