Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-07 13:40:06

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Call to undefined function imagecreatefromjpeg()

I’ve just migrated a site I developed in TXP 4.04 on my own server, to a clients, but I’m getting errors when trying to upload images.

“Call to undefined function imagecreatefromjpeg() “

I checked the GD library and it all looks good:

gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

It ran fine on my server, but not on the clients. Does anyone have any ideas what could be up?


Cheers,
Jon VC#9

Offline

#2 2006-11-07 17:49:18

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Call to undefined function imagecreatefromjpeg()

Check the first comment here. Would that possibly explain it?

Offline

#3 2006-11-07 17:58:41

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Call to undefined function imagecreatefromjpeg()

Mary wrote:

Check the first comment here. Would that possibly explain it?

I don’t think so, as jpeg support is enabled. I’ve checked with the host (could be a while before I get a reply), but I wanted to check whether it was TXP thing. Doing a search of the forums here only came up with an instance using Albumpattern, but that solution wasn’t applicable in my situation.

Last edited by jonhicks (2006-11-07 17:59:28)


Cheers,
Jon VC#9

Offline

#4 2006-11-07 21:51:36

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Call to undefined function imagecreatefromjpeg()

TextDrive hosted by any chance? A server upgrade seems to have broken PHP’s GD library.


Alex

Offline

#5 2006-11-07 21:56:14

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Call to undefined function imagecreatefromjpeg()

No, something in Holland run by the clients themselves sadly! It does sound like a GD problem though doesn’t it?


Cheers,
Jon VC#9

Offline

#6 2006-11-08 00:03:23

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Call to undefined function imagecreatefromjpeg()

The PHP imagecreatefromjpeg function should be available if GD is correctly installed. It’s possible that the phpinfo output you’re looking at is produced by a different version of PHP than the one that is running Textpattern. Or the function might have been disabled in php.ini – you should see a message in txp diagnostics if that’s the case.


Alex

Offline

#7 2006-11-08 08:44:21

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Call to undefined function imagecreatefromjpeg()

Tried again last night, and now its intermittent, so it surely has to be a server issue. Thanks Zem, I’ll chase the admin people again.


Cheers,
Jon VC#9

Offline

Board footer

Powered by FluxBB