We have begun to explore using Mediawiki as our main web
interface. One of the selling points for us was the automatic thumbnail
creation on user uploaded images. We were able to get past a number of
the new user gotchas (installing, changing the skin, editing the
navigation menu, etc.) However we have run into a problem with the
thumbnail stuff in includes/Image.php. This problem may not be Mediawiki
specific, but I have to assume someone else has run into this.
Specifically it appears that createThumb is calling convert as
the user wwwrun. This should work. However it doesn't do anything. No
error messages, no segfaults nothing. We tested this by changing the app
to convert (in LocalSettings.php) to point to a script that captures all
of the data coming from the php command, spits this out to convert and
then capturing the info from that. We can use the user wwwrun to copy
and move files around the directory structure, however any time we try
to use wwwrun to call convert it just dies.
A couple of things (just in case the questions are asked).
1. Yes we have enabled ImageMagick in the LocalSettings.php.
2. Yes convert works just fine as a normal user.
3. Yes we tried the fallback thumbnail creator, and our entire wiki went
away (all white pages, possibly a php/apache error, we are not admins on
the system where this will be located, so we can not set php/apache to
show us the errors)
4. The large images do exist.
5. Latest out of CVS as of last week Thursday
I have done a search of the archives and no one has ever
mentioned this as an issue (unless of course my search skills are
failing, which is totally possible).
Anyone have any ideas or pointers? Are we just doing something
silly? We currently have a hack where the Thumbnail command creates a
list of files people have uploaded, and a cron job runs convert under
one of our user names every couple of hours, but this is ugly and the
feedback is less than stellar.
Thanks for what is turning out to be a very awesome and powerful tool!
That we are trying to get our heads around.
m.
_________________________________________________
Scanned on 14 Jul 2004 00:49:52
Scanning by
http://erado.com