Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Image Upload Error

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


chanamy1 at sbcglobal

Sep 1, 2009, 4:15 PM

Post #1 of 4 (914 views)
Permalink
Image Upload Error

Hello Everyone,

I have an older instance of MediaWiki (v1.4.5) running with PHP 5.0.3, MySQL 4.1.9, Redhat Linux. We need to upgrade to PHP 5.2.3 to enable another application to run on the same server.

I wanted to test compatibility of PHP 5.2.3 with MediaWiki 1.4.5, so installed MediaWiki 1.4.5 on a test machine running PHP 5.2.3.

Some images are uploaded successfully, while others generate the error:
"Fatal error: Call to undefined function imagecreatefromjpeg() in /data/app00063/htdocs/mediawiki-1.4.5/includes/Image.php on line 578"

Googling on this error points to PHP not being built with the GD library.

However:
* Image uploads work fine on the live instance of our wiki running with PHP 5.0.3.
* phpinfo() on the PHP 5.0.3 does not list the GD library as enabled.

Is GD library the likely problem? Are there any known incompatibilities between MediaWiki 1.4.5 and PHP 5.2.3?

Eventually we should upgrade to a newer version of MediaWiki, but so far have not had the resources to do so.

Thanks for your help!
-Amy

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Sep 1, 2009, 5:16 PM

Post #2 of 4 (854 views)
Permalink
Re: Image Upload Error [In reply to]

A Chan wrote:
> Hello Everyone,
>
> I have an older instance of MediaWiki (v1.4.5) running with PHP 5.0.3, MySQL 4.1.9, Redhat Linux. We need to upgrade to PHP 5.2.3 to enable another application to run on the same server.
>
> I wanted to test compatibility of PHP 5.2.3 with MediaWiki 1.4.5, so installed MediaWiki 1.4.5 on a test machine running PHP 5.2.3.


> However:
> * Image uploads work fine on the live instance of our wiki running with PHP 5.0.3.
> * phpinfo() on the PHP 5.0.3 does not list the GD library as enabled.
>
> Is GD library the likely problem?

Yes. Your php is not configured to handle the images.


> Are there any known incompatibilities between MediaWiki 1.4.5 and PHP 5.2.3?

It should work. But MediaWiki 1.4.5 is four years old, completely
unsupported and has security bugs.
In case of problems, update to the latest version.


> Eventually we should upgrade to a newer version of MediaWiki, but so far have not had the resources to do so.

You can update either before or after upgrading the server. Since it's a
pre-1.5 version, i will take a bit upgrading the table schema.
Otherwise, MediaWiki updates are quite simple.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


chanamy1 at sbcglobal

Sep 2, 2009, 8:24 AM

Post #3 of 4 (843 views)
Permalink
Re: Image Upload Error [In reply to]

I wrote:
>> * Image uploads work fine on the live instance of our wiki running with PHP 5.0.3.
>> * phpinfo() on the PHP 5.0.3 does not list the GD library as enabled.
>>
>> Is GD library the likely problem?

Platonides responded:
>Yes. Your php is not configured to handle the images.

Thanks - I will look at adding image handling to PHP. It looks like this involves recompiling PHP with the --with-gd flag, as well as some other flags.

Is there a way to verify that image handling has been enabled? As I mentioned, on our PHP 5.0.3 server, the phpinfo command does not list the GD library as enabled, and yet image uploads work fine on that server.

Thank you!
-Amy


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Sep 2, 2009, 8:28 AM

Post #4 of 4 (841 views)
Permalink
Re: Image Upload Error [In reply to]

A Chan wrote:
> I wrote:
>>> * Image uploads work fine on the live instance of our wiki running with PHP 5.0.3.
>>> * phpinfo() on the PHP 5.0.3 does not list the GD library as enabled.
>>>
>>> Is GD library the likely problem?
>
> Platonides responded:
>> Yes. Your php is not configured to handle the images.
>
> Thanks - I will look at adding image handling to PHP. It looks like this involves recompiling PHP with the --with-gd flag, as well as some other flags.
>
> Is there a way to verify that image handling has been enabled? As I mentioned, on our PHP 5.0.3 server, the phpinfo command does not list the GD library as enabled, and yet image uploads work fine on that server.
>
> Thank you!
> -Amy

The other server could be configured to use imagemagick instead of the
internal gd. That would explain it.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.