Page 1 of 1
problem with mp3 files
Posted: 13 Jan 2009, 13:57
by ebiont
After uploading mp3 files (via ftp) in image-folders I get the following error message at the mp3-file-name:
A PHP Error was encountered
Severity: Warning
Message: tempnam(): open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (.:/usr/local/share/pear:/home/villiger-meier:/var/webs/
www.villiger-meier.ch/public_html)
Filename: /imagevue/include/getid3/getid3.lib.php
Line Number: 1158
whats this and how can I avoid this error?
ok - not problem I upload with admin instead - I thought. When doing this I get the same error...
Posted: 13 Jan 2009, 15:31
by Nick
Ask your hoster to disable open base dir, this is 'security measure' which is already deprecated in future versions of php.
Posted: 15 Jan 2009, 04:24
by ebiont
Thank you very much pain for the help! The hosting provider told me that it's not possbile fro them to disable open base dir but I should make a directory called tmp because php wants to open there. Or alternatively make a virtual directory.
Because I want to play different songs in different folders this solution doesn't sound good to me.
any other suggestions?
Posted: 15 Jan 2009, 05:21
by ebiont
strange things are happening:
In one content folder '2005' the mp-3file is playing. interstingly it shows a thumbnail of an existing img-file...: the img-file is saved as 01.jpg, the mp3 as 01.mp3
in other folders 2006, 2007 or 2008 the mp3 files are not playing at all. Another strange thing: for those mp3 imagevue has created tn-files as well. When I delete those tn-files the mp3files show up in the playlist but are not playing. And strange again: this applies for the 2008 folder only but not for 2007 and 2006 although the procedure was the same for all folders...
pls see youself:
http://www.villiger-meier.ch/#/content/a%20Anna/2008/
P.S.: In folder 2008 some tn-files are missung, I assume because of large file sizes...
Posted: 15 Jan 2009, 05:41
by Nick
Well, unfortunately files with same name but different extension will have thumbnails named the same, tn_<filename>.jpg.
Please rename them so they don't overlap.
What of thumbnails for large files this is memory limit issue, the solution is either downsize images, increase memory limit or pre-create thumbnails manually.
Posted: 15 Jan 2009, 05:52
by ebiont
and why are the mp3 playing in one folder and not out of the other?
what about the open_basedir - I mean the basedir is a directory where only hosting provider have access to, right?
Posted: 15 Jan 2009, 11:15
by mjau-mjau
Well, one thing is sure, there is something with your mp3 files:
http://www.villiger-meier.ch/content/a% ... /song1.mp3
If they can't be accessed through the web, you can be sure Imagevue can't play them either ...
Posted: 19 Jan 2009, 03:43
by ebiont
well well, after removing the id3 tags and renaming the mp3's all works flawless!
I would be interested though to have an explanation why this behaviour can happen:
- no playing of mp3s
and open base dir error from php?
Or in other words: what are the requirements of an mp3 file in order to work?
Thanks for the explanations!
Chris
Posted: 19 Jan 2009, 06:21
by Nick
1. Files should be 'healthy' - with normal tags in utf8, readable and playable, non-corrupted
2. They should be readable from www, i.e. you should be able to open them in browser.
Posted: 15 Mar 2009, 16:17
by shaman
I uploaded files via ftp, and I got errors + now in audioplayer I have "undefined" and music is not playing. (server is in safe_mode)
Posted: 16 Mar 2009, 07:28
by mjau-mjau
shaman wrote:I uploaded files via ftp, and I got errors + now in audioplayer I have "undefined" and music is not playing. (server is in safe_mode)
You have a link to your gallery?