Jump to content

ID3 Problem


Asheeown

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.