Search…

X3 Photo Gallery Support Forums

Search…
 
ebiont
Topic Author
Posts: 12
Joined: 10 Jan 2009, 09:20

problem with mp3 files

13 Jan 2009, 13:57

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...
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

13 Jan 2009, 15:31

Ask your hoster to disable open base dir, this is 'security measure' which is already deprecated in future versions of php.
firedev.com
 
ebiont
Topic Author
Posts: 12
Joined: 10 Jan 2009, 09:20

15 Jan 2009, 04:24

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?
 
ebiont
Topic Author
Posts: 12
Joined: 10 Jan 2009, 09:20

15 Jan 2009, 05:21

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...
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

15 Jan 2009, 05:41

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.
firedev.com
 
ebiont
Topic Author
Posts: 12
Joined: 10 Jan 2009, 09:20

15 Jan 2009, 05:52

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

15 Jan 2009, 11:15

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 ...
 
ebiont
Topic Author
Posts: 12
Joined: 10 Jan 2009, 09:20

19 Jan 2009, 03:43

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

19 Jan 2009, 06:21

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.
firedev.com
 
shaman
Posts: 22
Joined: 12 Nov 2008, 14:40

15 Mar 2009, 16:17

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)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

16 Mar 2009, 07:28

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?