PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Transform » Bug #8607

Fatal error: Call to undefined function: load()

Details

Submitted2006-09-01 08:11 UTC
Fromatkati at gmail dot com
Assigneddavidc
StatusClosed
PackageImage_Transform
PHP VersionIrrelevant
OSWindows XP and Linux
Roadmaps(Not assigned)

Comments

[2006-09-01 08:11 UTC] atkati at gmail dot com

Description:
------------
GD Library is working well in other scripts but not with Image_Tansform.

I tried to test it on Windows XP/EasyPHP (with PHP 4.3.3) and Linux Redhat (PHP 4.4.2 on it).

PHP on linux compiled with :
'./configure' '--with-apache=../apache_1.3.34' '--with-dbase' '--with-filepro' '--enable-exif' '--with-xml' '--enable-ftp' '--with-db' '--enable-bcmath' '--enable-calendar' '--with-jpeg-dir' '--with-png-dir' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-mysql' '--with-zlib-dir' '--enable-trans-sid' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--with-openssl' '--enable-sysvsem' '--enable-sysvshm' '--with-gettext' '--with-dom' '--with-mcrypt' '--with-iconv' '--enable-mbstring=all' '--enable-mbregex' '--with-gd' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-mime-magic=/usr/share/magic.mime'

Test script:
---------------
<?php
require_once 'Image/Transform.php';
// factory pattern - returns an object
$a = Image_Transform::factory('GD');
// load the image file
$a->load("test.jpg");
// scale image by percentage - 40% of its original size
$a->scalebyPercentage(40);
// displays the image
$a->display();
?>

Actual result:
--------------
Fatal error: Call to undefined function: load().

[2006-09-12 14:55 UTC] hackfrag at floriansweb dot com

I had the same error message. Check the path to the GD.php.

In Image/Transform/Driver/ should be the GD.php.

Maybe it helps :)

[2006-12-31 00:25 UTC] remicklee at canada dot com

for me this error occurred because the file paths in the extracted package differed from the paths specified in the Tranform.php (line 218) and GD.php (line 28) fles.

i had to change the paths on the lines specified above.