Gallery 2.3.2 "This GD version is too old" error

iannel

Joined: 2013-08-01
Posts: 5
Posted: Thu, 2013-08-01 14:03

Hi there

I am running on the following environment:

Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.4.16 apache2handler
Webserver = Apache mod_antiloris/0.4
Database = mysqli 5.1.70-log, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail

MY PROBLEM

I only have access to GD on this host. GD config fails with this message:

GD Version: 2.1.0 (bundled) Required:2.0
Failed
This GD version is too old and is not supported by this module! Please upgrade your PHP installation to include the latest GD version.

It seems mixed up: the GD version installed meets and exceeds the required version. How can I overcome this problem? I cannot generate any thumbnails.

Many thanks

Ian

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-08-02 13:25

it should still work. you could edit modules/gd/classes/GdToolkitHelper.class line 286 change it to 2.1

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
iannel

Joined: 2013-08-01
Posts: 5
Posted: Tue, 2013-08-06 08:13

Hi there

Thank you for your assistance. That change allowed GD to pass it's test. When I did a rebuild of thumbnails it spewed out a lot of errors, but did create the thumbnails. So I'm not sure what the future holds for this Gallery2 version on later GD versions, but I'm investigating G3 now, pity to lose nice themes like X-Treme and Ice though, and integration with my CMS - have to investigate embedding now!

Thank you for your help!

Ian

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-08-06 10:57

roll back to php 5.3

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
iannel

Joined: 2013-08-01
Posts: 5
Posted: Tue, 2013-08-06 11:45

Well that would be nice, but not when you're on a service provider's host, no control over that. And added to that is the problem that I have several G2 installations that are working well on various 5.3 hosts, but obviously they will be upgrading with time, so I'm very grateful for your help. I did notice that even with the fix you gave me, the square thumbnails plugin is not doing it's job, will need to look into that as I like uniform thumbnails, but not the end of the world. I think G3 is the only way to go, and tackle the embedding challenge.

Many thanks so far, really appreciate it!

Ian

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-08-06 12:38

I've worked through some G3 embedding http://galleryproject.org/node/106581

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2013-08-06 16:34

I am running G2.3.2 on PHP 5.4.17 with GD 2.1.0 and have no issues or need to edit the GD Module's class file since the test on Line 286 that triggered your original error message covers versions of GD greater than or equal to v2.0 and should not need amendments for v2.1.

I'll be very interested to see if you have any luck switching to G3 as I strongly suspect the issue at hand is not a G2 against G3 one but something else funky going on with your host's setup of PHP.

--
dakanji.com

 
iannel

Joined: 2013-08-01
Posts: 5
Posted: Tue, 2013-08-06 18:09

Hi there

G3 runs ok on this host, whatever the problem was, G2's GD module was reporting that GD 2.1.0 did not meet it's requirements. The fix solved this. Only the square thumbnails problem remaining, but I'll tackle that later.

G3 is lovely though, will look at the embedding soon, and hopefully a great theme like ICE comes along soon.

Kind regards

Ian

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2013-08-06 21:26

I see.

Glad you managed to find a way forward.

--
dakanji.com

 
miceno

Joined: 2007-11-20
Posts: 25
Posted: Tue, 2013-10-29 18:42

I hereby attach the change on the line 286 as a diff patch:

diff modules/gd/classes/GdToolkitHelper.class.org modules/gd/classes/GdToolkitHelper.class
286c286
< 	if (preg_match('/^>?2\.0/', $gdVersion)) {
---
> 	if (preg_match('/^>?2\.[0-9]/', $gdVersion)) {
 
iannel

Joined: 2013-08-01
Posts: 5
Posted: Fri, 2013-11-01 05:48

Thank you so much for that update, I'll definitely try it!

 
mer.man

Joined: 2013-11-13
Posts: 1
Posted: Wed, 2013-11-13 20:47

Dayo,

I am running your same setup and i am receiving the error:

"Failed
This GD version is too old and is not supported by this module! Please upgrade your PHP installation to include the latest GD version."

Does anyone have an idea of how to get GD 2.1.0 to work with Gallery 2.3.2?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-11-13 22:12

did you read the comment 2 above yours?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
varrin

Joined: 2013-12-28
Posts: 1
Posted: Sat, 2013-12-28 22:34

I just ran into this today. I fixed it myself by simply changing the 0 to a 1 on line 286. I wish I had seen this post because it would have saved me all the time of figuring it out myself.

I don't know squat from jack, but the patch above strikes me as a good patch to apply to the GD module and release an updated version of it to fix the problem for all users (and likely well into the future).

V-