Hi all,

ok where do I begin.. I've been attempting to get the audio module up and running for about 2 days now.

When I originally installed the module, the default path for temporary file upload was /tmp/audio which told me that the folder was not write enabled. I attempted to change the permissions via my cpanel interface but with no luck. I then created a new temp folder INSIDE the www root of my site changing the link to tmp/audio. That changed the error message green and told me that the tmp/audio folder was now ok.

I then attempted to upload an audio file and got this error message.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The selected file /tmp/tmp_sJuywk could not be uploaded, because the destination /tmp/audio/anathema - J'ai Fait une Promesse.mp3 is not properly configured.
warning: Attempt to assign property of non-object in /home/dannysvo/public_html/modules/audio/audio.module on line 637.
warning: Attempt to assign property of non-object in /home/dannysvo/public_html/modules/audio/audio.module on line 638.
The following errors where encountered while reading the file's ID3 tags:
Could not open file ""

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I then ftp'd the same file to the temp file manually and used audio import to move it and create the node, this worked fine.

I deleted the file and tried to upload using the module functions again.... and got the same error message again.(except the random tmp ID for the upload file was different).

Lines 637 and 638 of the code as referenced above seem to relate to the ID3tag reading function of the getid3 addon.

Tried it again via the ftp method.. worked ok again.
I have checked that the file is less than the 4MB limit that my hosting service (www.siteground.com) have currently in place.
I have checked that the file is compatible with the flash player (which worked fine during ftp upload method)

I can therefore state that

1: the mp3 is ok and the file system recognises it.
2: the module is (mostly) installed ok as it seems to recognise everything in the ftp upload process.

As you may imagine, this is driving me nuts..

You're help, comments, ideas or suggestions are all truly welcome... I'm off for coffee now

Thanks

Comments

tanoshimi’s picture

I'm only guessing here, but have you tried removing the apostrophe in the filename - J'ai, or tried a different file to see if that's causing the problem?
Seeing as all the subsequent errors appear to be related to a failure to upload or access the file, can you try uploading a really simple, small file called test.mp3 and see if you get the same errors?

divyeshvk’s picture

Go to (on your site)
Administrator >> Site configuration>>Audio Setting
Select getID3 tab >> download the getID3 library from getID3 website .
Save to given location.

Then go to Player Tab
Download SWF tool module from drupal.org.
Download player from Link given.
Please Read README file.

danny.whittaker’s picture

Hi divyeshvk,

Well, I followed your instructions.. I already had get id3 installed ok, but had version 1.7.7 so I updated to 1.7.8b1 as suggested by the audio module, I installed the swf tool module and enabled it but I can't seem to find the link you refered to in your post to download players from? I already have the players that installed with the audio module, but that doesn't seem to be the primary issue. As I wrote to the previous poster, the issue seems more likely to be a script issue, or a permissions issue on the server.. not sure which but I'll have a look further into it.

Thanks for taking the time to reply to my post

Much appreciated.

danny.whittaker’s picture

Hi tanoshimi,

Yes, all files regardless of their size and naming convention seem to react the same way. They won't "upload" using the correct process, but will allow themselves to be transfered across from one folder to another using the Audio Import feature within the module settings....

I did notice that the Error message is saying that the file /tmp/xxxx.mp3 and the file /tmp/audio/xxxx.mp3 isn't configured correctly. my audio temp folder doesn't start with a backslash though as it is inside the www root for the site, not the site hosting folder... i wonder if there is a variable in the scripting that I could mod.. Hmmmmmmm

Thanks for your input

Much appreciated.

carlosandre’s picture

I'm having the same problem.

And I really know that the problem is related with the permission. I've moved my site to another server where I'm owner the folder /tmp/audio and everything is working fine. Then I've moved my site to other server with no permisssions to write the folder /tmp/audio and I'm in trouble.

We need to discover how to set the audio module to use a local folder. I don't know if it's a module issue. But, I think It's the way.

Please, any suggestion???