Welcome Guest ( Log In | Register )

> Dynamic Signature breaks with hyphens in album name
gotroot801
post 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 (or even to just suppress the errors), I was hoping someone here might.

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: