Installed audio 4.7.0 into a working Drupal 4.7.3 installation running PHP 5.1 on an 64-bit Opteron platform. I can import and play audio files one-by-one, but I've had no luck in using the audio_import function. The process seems to work, but the result is an empty node, or nodes. Import directory is correctly set with absolute path; I've tried moving it to a relative path location but get the same error. Any help would be appreciated.

PHP 5.1.6-pl4-gentoo (cli) (built: Sep 12 2006 21:35:28)
// $Id: audio.module,v 1.51.2.23 2006/09/05 23:18:53 drewish Exp $
// $Id: audio_import.module,v 1.1.2.4 2006/09/01 16:28:16 drewish Exp $

Quote:

  • The following errors where encountered while reading the file's ID3 tags:
    • Could not open file ""
  • The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
Successfully imported:

Comments

drewish’s picture

Couple of things to check. Make sure the audio_getid3 module is configured correctly. When you follow the edit link what's listed? Is there a file listed?

rxfelix’s picture

Yes, it points to the new, empty audio node that was just created.

When importing audio files one-by-one, the module works properly, and good, playable nodes are created, populated with the appropriate tags. When using the audio import module, though, checking one or more check boxes in the import audio admin page, I get one or more empty audio nodes with no tags nor files attached.

drewish’s picture

rxfelix, i'm having trouble duplicating your problem. i even updated to php 5.1. can you go ahead and update to the latest version of the module? i don't think much has changed but i'm trying to eliminate variables.

rxfelix’s picture

Very interesting. I installed the cvs version and got the white screen of death, with the following PHP error logged:

Sep 18 16:43:45 abelard apache2: PHP Fatal error: Call to undefined function module_exists() in /var/www/felixorg/htdocs/modules/contrib/audio/audio.module on line 5

Don't know what it means, but it gives me a place to start looking. Will let you know if I make progress.

You can see an empty node if you're interested at: https://www.felix.org/node/34445

rxfelix’s picture

Okay, easy one. The "module_exists()" function does not exist in Drupal 4.7.3, only in HEAD.

drewish’s picture

CVS/HEAD is for Drupal 5.0. You want the 4.7 branch.

rxfelix’s picture

No change using the latest version:

// $Id: audio.module,v 1.51.2.25 2006/09/14 21:20:43 drewish Exp $
// $Id: audio_import.module,v 1.1.2.5 2006/09/14 21:25:14 drewish Exp $

drewish’s picture

hey rxfelix, i'm not sure what's going on. if you'd like to create a user account for me so i can take a look you can send the details to me through the contact form.

scottg’s picture

I'm running into the same problem on a 4.7.3 install on a WinXP box. I also see a blank screen when ever I save the configuration on the settings/audio/getid3 page. Not sure if the two have anything to do with each other, but I do notice a console window show up briefly in the background before both blank pages get displayed.

Let me know if there's anything I can do to help.

drewish’s picture

scottg, if you're getting a white screen of death you've got a different problem. you need to check your PHP error log (you might have to enable it first).

drewish’s picture

scottg, you're probably using IIS right? if you are you need to open a separate issue.

scottg’s picture

Checked my php.ini file and the error logs are enabled, but nothing is showing up. I'm running Apache 2.0.55 and php 5.1.2.2.

drewish’s picture

well if you're getting a white screen that's almost always a PHP fatal error. you might need to do some more poking to get the error logs setup but either way, the console window poping up makes me pretty sure that it's unrelated to this issue. please open up a new one.

scottg’s picture

NukeHavoc’s picture

This helped me:
http://www.getid3.org/phpBB2/viewtopic.php?t=572&highlight=windows

It helped me as well. I encountered a very similar error, and making the change specified in the getid3 forum to getid3 1.7.7 did the trick.

NukeHavoc’s picture

I spoke too soon. The import now goes off without a hitch, but the new node that's created has no author; the UID defaults to 0, and I have to manually update the table, setting the UID to the one for my account, before it is viewable and editable (otherwise it just shows up on the home page as an "n/a" entry)

caot’s picture

First to drewish: Thanks for the %filename function works great.

Create Audio files one-by-one go good but by the mass import i cannot play the files (MIDI).

Look here: http://caot.net/drupal/?q=audio
The first is with audio import and the 2 is one by one created. Clicking on the play botton in the first
i became an window to download the file as an application/octet-stream type.

Whats wrong??

drewish’s picture

caot, your problem is midi specific. you should open a new issue for it. the short answer is when uploading your browser tells Drupal what kind of file it is. when doing the import it has to guess. make sure to list which audio modules you have installed and what version of getid3.

caot’s picture

mhh..
i try it with an mp3 file. The same thing as the midifiles
look http://caot.net/drupal/?q=audio

the file "04 Dont Lie1.mp3" is loaded one by one and the file "04 Dont Lie.mp3" is loaded with the import module. It seems not a problem with the MIDI Files.

I use the audio.module,v 1.51.2.34 2006/10/27 16:50:31
and the audio_import.module,v 1.1.2.5 2006/09/14 21:25:14

Drupal 4.7.4 is running on my webspace

the getid3 module is 1.7.7 but is not installed

drewish’s picture

uh, caot, i'll pretend you opend up a new issue. the short answer is you need to install and configure the audio_getid3 module.

drewish’s picture

since there hasn't been any more feedback, i'm going to assume this is resolved.

drewish’s picture

Status: Active » Fixed

since there hasn't been any more feedback, i'm going to assume this is resolved.

Anonymous’s picture

Status: Fixed » Closed (fixed)