Dynamic Signature breaks with hyphens in album name |
Dynamic Signature breaks with hyphens in album name |
gotroot801 |
Sep 15 2006, 06:28 PM
Post
#1
|
Newbie Group: Members Posts: 3 Joined: 14-September 06 Member No.: 149 |
Any time I have a song whose album contains a hyphen (i.e.: "Genesis Archive 1967-1975"), I get the following errors from the PHP script when attempting to display the image:
CODE Warning: imagettftext() [function.imagettftext]: Problem rendering glyph in /[...]/signature.php on line 240 Warning: Cannot modify header information - headers already sent by (output started at /[...]/signature.php:240) in /[...]/signature.php on line 327 Warning: Cannot modify header information - headers already sent by (output started at /[...]/signature.php:240) in /[...]/signature.php on line 331 Warning: Cannot modify header information - headers already sent by (output started at /[...]/signature.php:240) in /[...]/signature.php on line 332 Warning: Cannot modify header information - headers already sent by (output started at /[...]/signature.php:240) in /[...]/signature.php on line 333 At that point, it starts dumping out the PNG headers like it normally would. Of course, the only workaround I can think of is to just not play albums with hyphens in them, but since I don't know enough PHP to figure out how to get around this EDIT: I'm able to suppress the warning by throwing a @ in front of the whole imagettftext function (line 233), but that's less than optimal - it starts drawing the album title, but stops as soon as it hits the hyphen. |