Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Bug #8607 Fatal error: Call to undefined function: load()
Submitted: 2006-09-01 08:11 UTC
From: atkati at gmail dot com Assigned: davidc
Status: Closed Package: Image_Transform (version CVS)
PHP Version: Irrelevant OS: Windows XP and Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-09-01 08:11 UTC] atkati at gmail dot com (Atkati)
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().

Comments

 [2006-09-12 14:55 UTC] hackfrag at floriansweb dot com (Florian)
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 (Remick)
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.
 [2007-04-21 20:55 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!