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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.