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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 + 47 = ?

 
 [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] davidc (David Coallier)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.