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

drewish’s picture

so what's calling getid3 then? your code or the audio module?

bomarmonk’s picture

I 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.

robbt’s picture

I 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.

edward.peters’s picture

I 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 ""

Rob_Feature’s picture

Yup, confirmed. Same thing here. Error I'm seeing on any CCK node creation/save is:

    * warning: Invalid argument supplied for foreach() in /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 /sites/all/modules/audio/getid3/audio_getid3.module on line 314.
    * warning: array_merge() [function.array-merge]: Argument #1 is not an array in/sites/all/modules/audio/getid3/audio_getid3.module on line 316.
robloach’s picture

Would this be a problem with the Audio module then?

drewish’s picture

yeah it's totally the audio module's fault. leaving this here though so people will stop opening new duplicate issues.

hugeknot’s picture

Yes, I am having the same problem with Drupal 5X and Audio 5.14

ideal93’s picture

I 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.

soj’s picture

I 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 ""

thelocaltourist’s picture

Same error. Is anyone supporting this module?

inspiredearth’s picture

A 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

toolboxxx_j@yahoo.com’s picture

Title: Warnings on Node Save » warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\modules\audio\getid3\audio_getid3.module on line 294.
Priority: Normal » Critical

same 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.

jseffel’s picture

This 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.

robloach’s picture

Project: getID3() » Audio

This is a problem with the Audio module, not the GetID3 module.

seanr’s picture

I'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.