Asheeown Posted February 21, 2008 Share Posted February 21, 2008 Warning: id3_get_tag() [function.id3-get-tag]: ID3v2 tag contains invalid padding - tag considered invalid in /home2/Music/htdocs/test.php on line 2 WTFFFFF, I have no idea what it even means, I haven't seen the error before, I've used so many variations of this string as possible but it just doesn't go away, any hints? $tag = id3_get_tag( "Music/song_03.mp3", ID3_BEST ); print_r($tag); Above is one of the last ones I tried ID3_BEST was suggested after throwing an invalid version ID into the mix. Below is the first I have tried: $tag = id3_get_tag( "Music/song_03.mp3", ID3_V2_3 ); print_r($tag); EDIT: It does still execute the command, just shows that error, Link to comment https://forums.phpfreaks.com/topic/92221-id3-problem/ Share on other sites More sharing options...
schilly Posted February 21, 2008 Share Posted February 21, 2008 Have you tried multiple mp3s? Maybe use id3_ get_ version() first to get what version it is then try id3_get_tag()? Link to comment https://forums.phpfreaks.com/topic/92221-id3-problem/#findComment-472499 Share on other sites More sharing options...
DyslexicDog Posted February 21, 2008 Share Posted February 21, 2008 That's only a warning error. You can adjust your error reporting level to not show less important errors like this or you can suppress errors with the @ symbol such as: $tag = @id3_get_tag( "Music/song_03.mp3", ID3_BEST ); print_r($tag); Not sure if that will work on that function but it's worth a shot. Link to comment https://forums.phpfreaks.com/topic/92221-id3-problem/#findComment-472513 Share on other sites More sharing options...
dave420 Posted February 21, 2008 Share Posted February 21, 2008 It looks like your MP3 is a bit screwy in the ID3v2 headers. If the parser is not returning any data for that MP3, and you know it does have tags, you could try a different ID3 parser to see if one is a bit less strict and will return useable data. You could try getID3() from http://getid3.sourceforge.net Link to comment https://forums.phpfreaks.com/topic/92221-id3-problem/#findComment-472615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.