JamesHeinrich / getID3

http://www.getid3.org/
Other
1.13k stars 245 forks source link

Caught exception: Uninitialized string offset 0 #444

Closed zyrouge closed 1 month ago

zyrouge commented 1 month ago

I'm using koel and it seems like it could not parse some files. I'm not sure what the reason is except the below error message.

image

This is one of the file in which the error occurs.

JamesHeinrich commented 1 month ago

Your test file seems to work fine in the current version of getID3 (1.9.23-202404261550). What version of getID3 is your installation using? Most likely you're seeing a bug that was already fixed.

zyrouge commented 1 month ago

From what I could find, koel uses 1.9.21.

JamesHeinrich commented 1 month ago

You should be safe to download the latest build from github and overwrite wherever getID3 is installed for koel. Better yet, raise an issue with their developer and tell them to update their copy of getID3.

zyrouge commented 1 month ago

Tried with the latest version but it seems to be occurring with it too. Is it probably due to Docker? I'm not sure what the reason could be.

zyrouge commented 1 month ago

This is the stack trace of the error. image

zyrouge commented 1 month ago

Parsing the lyrics-XXX tag seems to be failing.

JamesHeinrich commented 1 month ago

Oh, actually you're right, when I look closer I do see a Warning: Uninitialized string offset 0 in module.tag.id3v2.php on line 1071

JamesHeinrich commented 1 month ago

Should be fixed in https://github.com/JamesHeinrich/getID3/commit/d0e347f9d501d184436b1c3dc35d0e7dbfada614