Page 1 of 1

file_exists() open_basedir restriction in effect image.php

Posted: 06 Jun 2009, 12:41
by Keep
Hi there!

1st I have to tell Jan that it is great work he's doing...
Last week I decided to run our tabletennis-club homepage on joomla and installed it local on my home server. Everything was running great, also phoca gallery and phoca guestbook.
But then I changed the server 2 a faster one... everything worked again, but the phoca components are making problems now.
The page ist http://www.pcxperten.de/ttv

The problem is that I got the response:

"PHP Warning: file_exists(): open_basedir restriction in effect.
File(D:\Web\HA\10\1065_t3gmq\tgdv0vfj\data\ttv/templates/ushomeloanstemplate2/images/index.php?option=com_phocaguestbook&view=phocaguestbooki&id=1&Itemid=71&phocasid=346ef0f44874f7559ba09338d1fd8d92)
is not within the allowed path(s): (D:/) in
D:\Web\HA\10\1065_t3gmq\tgdv0vfj\data\ttv\libraries\joomla\html\html\image.php
on line 70
"
I can solve this problem commenting out the if condition. Guestbook ist running then, but Gallery still has failures.

The problem with the gallery is:

Everything runs fine after installing phoca gallery. But after oploading an image I am getting the following mistake again trying to upload the next pictures:

"PHP Warning: file_exists(): open_basedir restriction in effect.
File(D:\Web\HA\10\1065_t3gmq\tgdv0vfj\data\ttv\administrator/templates/khepri/images/../images/phocagallery/thumbs/phoca_thumb_s_1.jpg?imagesid=42e4b335282f5ce94dbd669ab2a5eaa1)
is not within the allowed path(s): (D:/) in
D:\Web\HA\10\1065_t3gmq\tgdv0vfj\data\ttv\libraries\joomla\html\html\image.php
"

If I delete the image via ftp I am able again to upload a new image. So I am only able to upload images once :-(
Anyideas? Would be great!

Thank you,

René from Germany :twisted:

Re: file_exists() open_basedir restriction in effect image.php

Posted: 06 Jun 2009, 13:37
by Jan
Hi, I think the open_basedir restriction need to be removed :-( because if it is enabled maybe you get problems in other Joomla! extensions too. :-( As Phoca Gallery doesn't use own methods to work with files but standard Joomla! methods (JFile, JFolder, ...) I think, we cannot solve it other way (maybe there is some solution, but I don't know it for now :-( )

:(

Jan

Re: file_exists() open_basedir restriction in effect image.php

Posted: 06 Jun 2009, 14:23
by Keep
Thank you Jan...

I'll ask my hoster removing that restriction...

Can you please have a look at phpinfo()

http://www.pcxperten.de/ttv/testphp.php

has the open_basedir value to be set to "d:" without "/" at the end? I think the "/" avoids to get into the other folders in d: