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
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.
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
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@lists.wikimedia.org