I am getting some warning about the getid3 module when saving nodes (not audio nodes, but custom event nodes created with CCK in this case). This install of drupal is running in a subdirectory within the main drupal installation:
* warning: Invalid argument supplied for foreach() in /home/.muckl/domain/mysite.org/sites/www.mysite.org.subsite/modules/audio/getid3/audio_getid3.module on line 305.
* The following errors where encountered while reading the file's ID3 tags:
o Could not open file ""
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.muckl/domain/mysite.org/sites/www.mysite.org.subsite/modules/audio/getid3/audio_getid3.module on line 325.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.muckl/domain/mysite.org/sites/www.mysite.org.subsite/modules/audio/getid3/audio_getid3.module on line 327.
Comments
Comment #1
drewish commentedso what's calling getid3 then? your code or the audio module?
Comment #2
bomarmonk commentedI do have the audio module installed, but I am getting these warnings as I save CCK nodes without any audio attachments (although the audio attachment module is enabled). I haven't added any custom code to call on the getid3 module.
Comment #3
robbt commentedI am also getting this error, when I am creating a cck node that has nothing to do with audio. In this case it is a group node, when I create it, I get the same error as above with different line numbers. It shouldn't even be calling getid3 but for some reason it is.
Here is it copied and pasted.
* warning: Invalid argument supplied for foreach() in /home/www/drupal-6.2/sites/all/modules/audio/getid3/audio_getid3.module on line 294.
* The following errors where encountered while reading the file's ID3 tags:
o Could not open file ""
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/www/drupal-6.2/sites/all/modules/audio/getid3/audio_getid3.module on line 314.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/www/drupal-6.2/sites/all/modules/audio/getid3/audio_getid3.module on line 316.
Comment #4
edward.peters commentedI am also getting an error when I save a content type which is not Audio:
The following errors where encountered while reading the file's ID3 tags:
* Could not open file ""
Comment #5
Rob_Feature commentedYup, confirmed. Same thing here. Error I'm seeing on any CCK node creation/save is:
Comment #6
robloachWould this be a problem with the Audio module then?
Comment #7
drewish commentedyeah it's totally the audio module's fault. leaving this here though so people will stop opening new duplicate issues.
Comment #8
hugeknot commentedYes, I am having the same problem with Drupal 5X and Audio 5.14
Comment #9
ideal93 commentedI am having the same problem... It is related to the audio module, but it seems that there are no active work on this module.
Thanks to anyone who can give us more info on this.
Comment #10
soj commentedI have the same error. Installed audio and getid3, and the error appears when creating a new audio node.
The following errors where encountered while reading the file's ID3 tags:
* Could not open file ""
Comment #11
thelocaltourist commentedSame error. Is anyone supporting this module?
Comment #12
inspiredearth commentedA duplicate issue is reported here: http://drupal.org/node/273942
There is a possible solution posted there, although it comes with very vague instructions. I was not able to correct the issue with that solution as described.
As far as I can tell this is not an issue with getid3 but rather with Audio... or perhaps a bug in getid3 is causing an error in audio, or even more likely it is the Audio implimentation of getid3 that is the issue, as it's the Audio getid3 files that generate this error.
But really, in truth, Audio should be be triggering at all when posting nodes that have nothing to do with audio... and this error occurs no matter what kind of node is posted, audio or otherwise.
Jonathan
Comment #13
toolboxxx_j@yahoo.com commentedsame error...
* warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\modules\audio\getid3\audio_getid3.module on line 294.
* The following errors where encountered while reading the file's ID3 tags:
o Could not open file ""
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\xampp\htdocs\modules\audio\getid3\audio_getid3.module on line 314.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\xampp\htdocs\modules\audio\getid3\audio_getid3.module on line 316.
Comment #14
jseffel commentedThis fixes the warnings and errors:
File: audio_getid3.module:
Row 147:
if(empty($filepath))
return;
Row 297:
if($node->type != 'audio')
return;
This is a quick and dirty little fix. It doesnt fix the main problem - the Audio is called even though the content type != audio.
Comment #15
robloachThis is a problem with the Audio module, not the GetID3 module.
Comment #16
seanrI'm getting this as well, even when trying to create an audio node. Worse, it dumps all of the fields so that no node title or path gets saved. Audio is basically hosed at this point, as far as I can tell.