Mailing List Archive

Warning: imagejpeg()...: Unable to open thumb
Hi,

we get the following error message on
http://www.vdr-wiki.de/wiki/index.php/Sysinfo-plugin :

Warning: imagejpeg() [function.imagejpeg
<http://www.php.net/function.imagejpeg>]: Unable to open
'/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg'
for writing in /www/htdocs/v101777/wiki/includes/Image.php on line 232

How can we avoid that error?

Thank you,
Markus
Re: Warning: imagejpeg()...: Unable to open thumb [ In reply to ]
Your images directory needs to be writeable by the user that runs
apache. the easiest thing would be to run:

chmod 777 /www/htdocs/v101777/wiki/images

and make sure you also have a thumb directory:

mkdir /www/htdocs/v101777/wiki/images/thumb
chmod 777 /www/htdocs/v101777/wiki/images/thumb

cheers,
-nick

Markus Klaus Schäffauer wrote:

> Hi,
>
> we get the following error message on
> http://www.vdr-wiki.de/wiki/index.php/Sysinfo-plugin :
>
> Warning: imagejpeg() [function.imagejpeg
> <http://www.php.net/function.imagejpeg>]: Unable to open
> '/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg'
> for writing in /www/htdocs/v101777/wiki/includes/Image.php on line 232
>
> How can we avoid that error?
>
> Thank you,
> Markus
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Re: Warning: imagejpeg()...: Unable to open thumb [ In reply to ]
Hello,

the directories .../wiki/images and .../wiki/images/thumb are writeable
for everybody. In fact, they allready have the privileges 777, so the
problem must be another. I really wonder why the problem is only in that
directory - in others it goes well.

Thanks!
Markus

Nick Triantos schrieb:

> Your images directory needs to be writeable by the user that runs
> apache. the easiest thing would be to run:
>
> chmod 777 /www/htdocs/v101777/wiki/images
>
> and make sure you also have a thumb directory:
>
> mkdir /www/htdocs/v101777/wiki/images/thumb
> chmod 777 /www/htdocs/v101777/wiki/images/thumb
>
> cheers,
> -nick
>
> Markus Klaus Schäffauer wrote:
>
>> Hi,
>>
>> we get the following error message on
>> http://www.vdr-wiki.de/wiki/index.php/Sysinfo-plugin :
>>
>> Warning: imagejpeg() [function.imagejpeg
>> <http://www.php.net/function.imagejpeg>]: Unable to open
>> '/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg'
>> for writing in /www/htdocs/v101777/wiki/includes/Image.php on line
>> 232
>>
>> How can we avoid that error?
>>
>> Thank you,
>> Markus
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l@Wikimedia.org
>> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>

--
Lehrstuhlvertretung Dr. Markus Klaus Schäffauer
Albert-Ludwigs-Universität Freiburg im Breisgau
Romanisches Seminar
Werthmannplatz 1-3
D-79085 Freiburg i. Br.
Tel. ++49 (+761) 203 3188
- www.romanistik.uni-freiburg.de/schaeffauer
- www.romanistik.uni-freiburg.de/berg/schaeffa/Homepage.htm
- markus.klaus.schaeffauer@romanistik.uni-freiburg.de
Re: Warning: imagejpeg()...: Unable to open thumb [ In reply to ]
Check for PHP safe mode. This may screw some things up. (though I
didn't think it affected this.)

Is the server under your control? Is the directory/file read-only?

On Mon, 15 Nov 2004 17:48:44 +0100, Markus Klaus Schäffauer
<markus.klaus.schaeffauer@romanistik.uni-freiburg.de> wrote:
> Hello,
>
> the directories .../wiki/images and .../wiki/images/thumb are writeable
> for everybody. In fact, they allready have the privileges 777, so the
> problem must be another. I really wonder why the problem is only in that
> directory - in others it goes well.
>
> Thanks!
> Markus
>
> Nick Triantos schrieb:
>
>
>
> > Your images directory needs to be writeable by the user that runs
> > apache. the easiest thing would be to run:
> >
> > chmod 777 /www/htdocs/v101777/wiki/images
> >
> > and make sure you also have a thumb directory:
> >
> > mkdir /www/htdocs/v101777/wiki/images/thumb
> > chmod 777 /www/htdocs/v101777/wiki/images/thumb
> >
> > cheers,
> > -nick
> >
> > Markus Klaus Schäffauer wrote:
> >
> >> Hi,
> >>
> >> we get the following error message on
> >> http://www.vdr-wiki.de/wiki/index.php/Sysinfo-plugin :
> >>
> >> Warning: imagejpeg() [function.imagejpeg
> >> <http://www.php.net/function.imagejpeg>]: Unable to open
> >> '/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg'
> >> for writing in /www/htdocs/v101777/wiki/includes/Image.php on line
> >> 232
> >>
> >> How can we avoid that error?
> >>
> >> Thank you,
> >> Markus
> >>
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> MediaWiki-l@Wikimedia.org
> >> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> >
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l@Wikimedia.org
> > http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> >
>
> --
> Lehrstuhlvertretung Dr. Markus Klaus Schäffauer
> Albert-Ludwigs-Universität Freiburg im Breisgau
> Romanisches Seminar
> Werthmannplatz 1-3
> D-79085 Freiburg i. Br.
> Tel. ++49 (+761) 203 3188
> - www.romanistik.uni-freiburg.de/schaeffauer
> - www.romanistik.uni-freiburg.de/berg/schaeffa/Homepage.htm
> - markus.klaus.schaeffauer@romanistik.uni-freiburg.de
>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>


--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Re: Warning: imagejpeg()...: Unable to open thumb [ In reply to ]
Hello,

thank you for your observations. The problem continues, but I made
several observations that may help to find out the reason:

First, the answers to your questions:

1.) the Server is not under my control;
2.) the directory in question has rights 777;
3.) the thumb-file in question
(/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg)
was read-only; I changed it to 777 to, but this did not solve the problem.

Then I find out the following:

1.) when uploading the same image with a new filename, there is no problem;
2.) after erasing the old image and uploading it again with the same
name as before, the problem shows up again.

My conclusion:

The problem is due to the filename in the database (or wherever). The
solution could be to give a new filename (this works as I said before)
but for systematical reasons, we try to name the pictures with the name
of the plugin they stand for, so we need the filename.

So the new question seems to be: how to erase completely the picture and
its (page)name? Should I do this in the database? Or will it produce an
inconsistent and sofor problematic database?

Thank you,
Markus


Jamie Bliss schrieb:

>Check for PHP safe mode. This may screw some things up. (though I
>didn't think it affected this.)
>
>Is the server under your control? Is the directory/file read-only?
>
>On Mon, 15 Nov 2004 17:48:44 +0100, Markus Klaus Schäffauer
><markus.klaus.schaeffauer@romanistik.uni-freiburg.de> wrote:
>
>
>>Hello,
>>
>>the directories .../wiki/images and .../wiki/images/thumb are writeable
>>for everybody. In fact, they allready have the privileges 777, so the
>>problem must be another. I really wonder why the problem is only in that
>>directory - in others it goes well.
>>
>>Thanks!
>>Markus
>>
>>Nick Triantos schrieb:
>>
>>
>>
>>
>>
>>>Your images directory needs to be writeable by the user that runs
>>>apache. the easiest thing would be to run:
>>>
>>> chmod 777 /www/htdocs/v101777/wiki/images
>>>
>>>and make sure you also have a thumb directory:
>>>
>>> mkdir /www/htdocs/v101777/wiki/images/thumb
>>> chmod 777 /www/htdocs/v101777/wiki/images/thumb
>>>
>>>cheers,
>>>-nick
>>>
>>>Markus Klaus Schäffauer wrote:
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>we get the following error message on
>>>>http://www.vdr-wiki.de/wiki/index.php/Sysinfo-plugin :
>>>>
>>>> Warning: imagejpeg() [function.imagejpeg
>>>> <http://www.php.net/function.imagejpeg>]: Unable to open
>>>> '/www/htdocs/v101777/wiki/images/thumb/8/89/180px-Sysinfo-plugin.jpg'
>>>> for writing in /www/htdocs/v101777/wiki/includes/Image.php on line
>>>>232
>>>>
>>>>How can we avoid that error?
>>>>
>>>>Thank you,
>>>>Markus
>>>>
>>>>_______________________________________________
>>>>MediaWiki-l mailing list
>>>>MediaWiki-l@Wikimedia.org
>>>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>>>
>>>>
>>>_______________________________________________
>>>MediaWiki-l mailing list
>>>MediaWiki-l@Wikimedia.org
>>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>>
>>>
>>>
>>--
>>Lehrstuhlvertretung Dr. Markus Klaus Schäffauer
>>Albert-Ludwigs-Universität Freiburg im Breisgau
>>Romanisches Seminar
>>Werthmannplatz 1-3
>>D-79085 Freiburg i. Br.
>>Tel. ++49 (+761) 203 3188
>>- www.romanistik.uni-freiburg.de/schaeffauer
>>- www.romanistik.uni-freiburg.de/berg/schaeffa/Homepage.htm
>>- markus.klaus.schaeffauer@romanistik.uni-freiburg.de
>>
>>
>>
>>
>>_______________________________________________
>>MediaWiki-l mailing list
>>MediaWiki-l@Wikimedia.org
>>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>
>>
>>
>
>
>
>

--
Lehrstuhlvertretung Dr. Markus Klaus Schäffauer
Albert-Ludwigs-Universität Freiburg im Breisgau
Romanisches Seminar
Werthmannplatz 1-3
D-79085 Freiburg i. Br.
Tel. ++49 (+761) 203 3188
- www.romanistik.uni-freiburg.de/schaeffauer
- www.romanistik.uni-freiburg.de/berg/schaeffa/Homepage.htm
- markus.klaus.schaeffauer@romanistik.uni-freiburg.de