Closed (fixed)
Project:
Audio
Version:
5.x-1.3
Component:
audio_getid3
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2006 at 09:20 UTC
Updated:
13 Jan 2008 at 19:01 UTC
Hi there,
I get the following errors when uploading or editing MP3:
* warning: fopen(): open_basedir restriction in effect. File(/tmp/getID3x39WfH) is not within the allowed path(s): (/home/www/web548/:/usr/bin) in /home/www/web548/html/cms2/modules/audio/getid3/getid3/write.id3v2.php on line 87.
* warning: fopen(/tmp/getID3x39WfH): failed to open stream: Operation not permitted in /home/www/web548/html/cms2/modules/audio/getid3/getid3/write.id3v2.php on line 87.
* The following errors were encountered, preventing the ID3 tags from being saved:
o WriteID3v2() failed with message(s):
+ Could not open /tmp/getID3x39WfH mode "wb" -
In my settings i pointed the temp-folder to a folder inside my drupal. (not the www/phptmp).
any ideas?
gb5256
Comments
Comment #1
gb5256 commentedSo i think I'm getting closer:
The /tmp folder is not my drupal temp-folder but the temp-folder on the server (to which I have no access because its a shared host).
It there anyway to stop the getID3 from taking this server-temp?
gb5256
Comment #2
derby commentedI had the same issue. I am not sure why the ID3 tag function has to use /tmp instead of drupal's tmp directory. But until this is fixed, you should try to ask your host to put /tmp in your open_basedir directive.
Comment #3
drewish commentedi don't think it's getid3 specifically that's the problem... it seems like the problem is when the upload is saved it's not going into the "right" temp directory.
Comment #4
discursives commentedI am having the same problem. I do have access to my hosts tmp directory ( http://pajunas.net has the best Drupal hosting I know of offered through http://advantagelabs.com/hosting_for_drupal )
And I still have the error...so. it's not the tmp folder.
I saw in the install docs for audio that "getid3 has lots of errors" and in the back of my head I keep wodnering if this is just "one of those" or something...
Comment #5
drewish commentedi forgot to post mentioning it but i've added some code to verify that the directory can be written before trying to save. you both might run into the same problems but it'd be helpful if you could try out that version.
Comment #6
drewish commentedi'm going to assume that people have figured out a workaround since there's been no further activity.
Comment #7
paulap commentedI have the same problem using Drupal 5.1, audio 5.x.1.2 and getID 1.7.8.b1. I works but not in any cases!
Has anybody a solution or a fix for that bug?
wr
Gerald
Comment #8
markusH commentedMay this helps: http://drupal.org/node/149607
Comment #9
susata commentedUsing Drupal 5.5 with audio module 5.x-1.3
I get an open_basedir restriction warning when I upload an audio file or even just modify the audio content type. To be specific, here is the message that I get (all exact except where site's domain appears in this message I have put "example"):
______________________________________
* warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/var/tmp/getID3fW41eG) is not within the allowed path(s): (/tmp-www:/usr/local/share/pear:/usr/local/www/hostbaby:/www/example.com) in /www/example.com/web/sites/all/modules/audio/getid3/getid3/write.id3v2.php on line 87.
* warning: fopen(/var/tmp/getID3fW41eG) [function.fopen]: failed to open stream: Operation not permitted in /www/example.com/web/sites/all/modules/audio/getid3/getid3/write.id3v2.php on line 87.
* The following errors were encountered, preventing the ID3 tags from being saved:
o WriteID3v2() failed with message(s):
+ Could not open /var/tmp/getID3fW41eG mode "wb" -
_________________________________
Using Apache/2.0.61 (FreeBSD) PHP/5.2.4 with Suhosin-Patch mod_ssl/2.0.61 OpenSSL/0.9.7d
Many thanks for any suggestions for fixing this.