|
Pages: [1]
|
 |
|
Author
|
Topic: open_basedir restriction error after click on image-URL-browse button (Read 1513 times)
|
|
Claude
Posts: 3
|
Hi!
I installed SnippetMaster today and everything works fine with one exception: When I want to insert an image, after clicking on the image-URL-browse button I get the following errors:
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/home/httpd/vhosts/online1.ch/httpdocs//..) is not within the allowed path(s): (/home/httpd/vhosts/online1.ch/httpdocs:/usr/share/pear:/tmp:/usr/bin) in /home/httpd/vhosts/online1.ch/httpdocs/snippetmaster/includes/filebrowser/functions.php on line 0
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/httpd/vhosts/online1.ch/httpdocs//..) is not within the allowed path(s): (/home/httpd/vhosts/online1.ch/httpdocs:/usr/share/pear:/tmp:/usr/bin) in /home/httpd/vhosts/online1.ch/httpdocs/snippetmaster/includes/filebrowser/functions.php on line 0
Inspite of this error-message I can choose the image-file and insert it. I just googled for open_basedir restriction but didn't find any solution. What does this error tell me and how can I fix it?
My configuration: IonCube Loaders, PHP5, safemode=off
Thanks for your help! Claude
|
|
|
|
|
|
Jenkinhill
|
This looks like a web host configuration issue. I'd pass the error message on to them as they probably need a change the "open_basedir" path configuration in php.ini .
|
Kelvyn
|
|
|
admin
Forum Administrator

Posts: 3069
SnippetMaster Author
|
Yes, this is a problem with the configuration of PHP on your web server. I recommend showing this message to your web host and ask them to either disable php open_basedir restriction for your account, or to add the path to the open_basedir value. (Open basedir restriction for PHP is a security feature, where the web host does not allow you to "run" file or access files that are located outside the path to your account. In your case, if you have the path information correct for snippetmaster, then you should be able to use it without an error.. because the file(s) you're trying to access should be inside your account somewhere. Thus.. you should chat with your web host about this.) Let me know if I can help with anything. 
|
|
|
|
|
|
Claude
Posts: 3
|
Thanks for your answers!
I talked to my host and he says their settings are ok.
He told me the Script tries to access the path: /home/httpd/vhosts/online1.ch/httpdocs//.. and this path is invalid.
Hmmm... sounds plausible to me. Isn't a path with two slashes // invalid?
Any ideas? If it helps finding the solution I could send you information to log into my installation and see the error live.
|
|
|
|
|
admin
Forum Administrator

Posts: 3069
SnippetMaster Author
|
The path is valid. It should work even with the double slash. The operating system that "sees" the path should simply interpret it as one slash.  I'm not sure what to suggest, as I don't enjoy fighting with web hosts.. but I can say that it should work. If you want to send me an email with a link to this thread, your ftp info, and a snippetmaster admin link.. I can look into it to see if maybe we can tweak the configuration of SnippetMaster a bit to work around this problem.
|
|
|
|
|
|
|
|
|
Pages: [1]
|
|
|
 |