Where do you get the audio_import modules?

First I got this message:

audio import
Import multiple audio files and save them as audio nodes. The files will be moved from their location into the audio module's files directory.
You need to configure the import directory on the audio import module's settings page.

Then when I clicked the settings page link:

audio_import
Configure the audio import module's settings.
The directory /tmp/audio does not exist.
Import path: *
The directory to import audio nodes from. Drupal will need to have write access to this directory so we can move the file.

I have no audio_import module.

This is my very first drupal installation so I may be doing something wrong, but I came across another post where the responder said to report it as a bug.

Thank you.

Suzan

Comments

drewish’s picture

audio_import.module comes bundled with the audio module. if you've got a recent version of the audio module, you've got a copy of audio import, and based on your error messages you've got audio import installed.

did you try changing the import directory setting to point to a directory on your system?

EducateforLife’s picture

Hi,

I'm having the same problem with the audio import.

tmp/audio does not exist.
Import path: *

I've created it, set permissions, created it in several other dirs just in case the root was wrong, and pointed it to existing happily working dirs, all to no avail.

I hope someone can point me in the right direction.

Cheers
Ed

EducateforLife’s picture

Ah ok sorry.

Drupal auto configing made it look like it wanted a relative path, but I gave it a complete path as shown when testing getid3 (go to www.yoursite.com/drupalfolder/modules/audio/getid3/demos/demo.browse.php to find it)

and now it works a treat.

drewish’s picture

ah, i'll add some better documentation to the module to make that clear.

looplog’s picture

just wondering what is going on here. I've tried both relative and absolute paths, and neither seems to get me where I want to go. Do I need an absolute path relative to root of the server? At present, audio import only recognises /tmp/ as the directory, and won't find anything else...

drewish’s picture

you *should* be able to use path's relative to drupal's root directory or absolute paths to anywhere on the system. you'll need to have write access to the directory though (the file is moved, not copied).

looplog’s picture

hmm, i tried all of the above and no can do I'm afraid. /tmp/ is the only directory I am able to use, no matter the permissions I set.

suzan24k’s picture

I tried changing the import directory to a longer path and importing / uploading audios are still not working for me. I'm quite sure I have the permissions correct but I am definitely unclear about where the path is looking. It looks like the import settings page validated the directory path too before I tried to import.

When I went to the Create Content / Audio / set up and click the [Preview] button, Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6652 bytes) in /home/suzan24k/invisible-coach/includes/image.inc on line 269

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1955 bytes) in /home/suzan24k/invisible-coach/includes/database.mysql.inc on line 349.

Earlier when I tried to do a test upload I got the error below. I do not understand how to fix the below error either. It is my set up?

Fatal error: audio_write_id3tags(): Failed opening required 'write.php' (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/suzan24k/invisible-coach/modules/audio/audio_getid3.module on line 222

Thank you so much for the help so far. I am learning useful information.

Suzan

drewish’s picture

When I went to the Create Content / Audio / set up and click the [Preview] button, Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6652 bytes) in /home/suzan24k/invisible-coach/includes/image.inc on line 269

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1955 bytes) in /home/suzan24k/invisible-coach/includes/database.mysql.inc on line 349.

it looks like you're running out of memory. try disabling some modules and see if it works then.

Fatal error: audio_write_id3tags(): Failed opening required 'write.php' (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/suzan24k/invisible-coach/modules/audio/audio_getid3.module on line 222

You need to goto admin/settings/getid3 and check the settings there. I don't think you've got the getID3 library setup correctly.

drewish’s picture

looks like i screwed up the formating on those blockquote tags. hopefully it's understandable.

drewish’s picture

Component: User interface » contrib
suzan24k’s picture

When I see the red updated, does that mean I need to re-download and install the audio module?

Thank you.

Suzan

drewish’s picture

no that means that someone's posted a new comment since you last looked at the issue.

suzan24k’s picture

My getid3 module path is: modules/audio/getid3/getid3/

I put that in the audio settings form. Is this where I need to put the longer path name?

suzan24k’s picture

Component: contrib » audio_getid3

I tried putting: /home/suzan24k/invisible-coach/modules/audio/getid3/getid3/

in the getid3 directory for setup and still get this error:

Fatal error: audio_write_id3tags(): Failed opening required 'write.php' (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/suzan24k/invisible-coach/modules/audio/audio_getid3.module on line 222

Any more clues? Thank you for any help.

Suzan

suzan24k’s picture

Since I had no reply I spent more time reading other people's audio issues and decided that I too downloaded the audio module about the same time another person started having somewhat similar audio module problems. Eventually, they downloaded a newer version and fixed their problems. So, I did the same and had success making it through these problems.

Thanks for helping. I am on to another audio module issue. I will post in the support forum.

Much appreciation.

Suzan

drewish’s picture

Status: Active » Fixed

sorry i wasn't able to be more helpful, glad you got it working.

Ben Finklea’s picture

Title: audio_import module » My fix for /tmp/ issue

I was having the same issue. I resolved it by removing the beginning slash. Like this:

tmp/audio/

That seemed to fix the problem.

bpedigo’s picture

Thank you sprysoft -- that fixed it for me too -- just remove the first slash:

tmp/audio/

That fixed my problem.

drewish’s picture

you know that /tmp/audio is relative to the server's root and tmp/audio is in the drupal directory right?

bpedigo’s picture

you know that /tmp/audio is relative to the server's root and tmp/audio is in the drupal directory right?

Oh, yeah...naturally. :)

Actually, thank you for teaching me something new today. Good to know, as I'm still a unix n00b. Thanks for your comments.

drewish’s picture

bpedigo, re-reading my comment now i realize that while i'd ment it to be informative, it came off a little harsh. i was just trying to clairify why it worked.

Anonymous’s picture

Status: Fixed » Closed (fixed)