Missing argument 3 for GdFunctionality::imageJpeg()

Nautilus

Joined: 2005-07-02
Posts: 23
Posted: Wed, 2014-07-09 04:57

Hello all, I've moved a long time Gallery2 system to a new server and am having a small problem.

Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.4.26 cgi-fcgi
Webserver = Apache mod_fcgid/2.3.10-dev
Database = mysql 5.5.32-cll-lve, lock.system=flock
GD Version: bundled (2.1.0 compatible)
I've re-run the installer to see the System Checks tab, all are green/Success.

Here's the error a user sees when uploading an image:
*Warning*: Missing argument 3 for GdFunctionality::imageJpeg(),
called in /home/mydir/public_html/gallery/modules/gd/classes/GdToolkit.class on line 504
and defined in */home/mydir/public_html/gallery/modules/gd/classes/GdFunctionality.class* on line *351*

Looking at the source, on that line 504 there are only two arguments:
$ret = $gd->imageJpeg($tmpRes, $tmpFile);
And over on that line 351 the function has 3 arguments:
function imageJpeg($res, $filename, $quality) {

Almost everything seems to be working. Images can be posted and the thumbnails are generated, though the user sees the error above for each image posted.

One thing that is not working is login captcha's... they do not get generated. I'm not sure if that's the same problem.

Tips appreciated!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-07-09 11:19

Gallery 2.3.1 was released to address php 5.3+ requirements. The latest is 2.3.2

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2014-07-09 11:21

Upgrade G2 in two stages.
First to v2.2.6 and then to v2.3.2
--
dakanji.com

 
Nautilus

Joined: 2005-07-02
Posts: 23
Posted: Thu, 2014-07-10 19:41

I tried to upgrade to 2.2.6 but it doesn't look like it's going to work on the new server. Lots of PHP deprecated messages.

In the upgrader Step 1 is to authenticate per my config password, I authenticate and get the button to go to Step 2, but clicking that takes me back to the Welcome (Step 0).

Hoping for suggestions on how to proceed.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2014-07-10 20:01

If you control the server, search google for how to disable e_depcrecated warnings and implement.
--
dakanji.com

 
Nautilus

Joined: 2005-07-02
Posts: 23
Posted: Thu, 2014-07-10 21:48

Ok, I'll do that but I'm guessing it won't fix the problem of looping from the Step 2 button back to Welcome, or do you think it will? I'm off-site right now and won't be able to try it until much later tonight, so any tips in the meantime will help. THANKS!

 
Nautilus

Joined: 2005-07-02
Posts: 23
Posted: Thu, 2014-07-24 04:27

Looks like I'd have to setup a VM with an older PHP. Can anyone suggest what might be the most recent version of PHP that works for 2.2.6? I think it's somewhere from 5.0.4 to 5.2.x?