[Chameleon-dev] [Bug 1726] New: [Chameleon] Buttonizer GDFONTPATH
problem with PHP > 5.2.1
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Tue Jun 5 11:04:11 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1726
Summary: [Chameleon] Buttonizer GDFONTPATH problem with PHP >
5.2.1
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P1
Component: Core
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: jmckenna at dmsolutions.ca
If you use PHP > 5.2.1 with Chameleon (2.4.1 or CVS) you will get the following
errors from buttonizer.php:
***********
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in
E:\ms4w\apps\chameleon-cvs\htdocs\common\buttonizer\buttonizer.php on line 533
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in
E:\ms4w\apps\chameleon-cvs\htdocs\common\buttonizer\buttonizer.php on line 537
Warning: imagettftext() [function.imagettftext]: Invalid font filename in
E:\ms4w\apps\chameleon-cvs\htdocs\common\buttonizer\buttonizer.php on line 603
***********
Solution:
Newer PHP versions seem to have a problem with using the GDFONTPATH evironment
variable. So comment out the following line to force an absolute path:
\chameleon\htdocs\common\buttonizer\buttonizer.php
line 486:
//$szLabelFont = basename($szLabelFont, ".ttf");
Note:
- PHP 5.2.2 upgraded their bundled GD to 2.0.35, which could be related
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list