Hello, I have a problem. upgrade to 2.1.1 from 2.0.15 and I get this error at the foot of the browser.
```php
Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/crearsol/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/crearsol/domains/crearsoluciones.com/public_html/shop/core/fn.fs.php on line 121
```
How I can fix it?
I appreciate any help.
Thank you.
Mariano
This is a guess…
Your server is setup to NOT allow you to open the root of your web-site (I.e. “/”) so that a directory can be created in it.
I think the real question is what is either missing from your installation and/or what is trying to create a directory in the root of your store?
Here is the message I am seeing:
[Tue Dec 14 16:44:14 2010] [error] [client 24.153.127.64] PHP Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/xovivo2.com/httpdocs:/tmp) in /var/www/vhosts/xovivo2.com/httpdocs/core/fn.fs.php on line 121
I understand that open_basedir prevents PHP scripts from accessing files outside of the specified directories, on a per-site basis. In this case, CS-Cart is trying to “cd” to the root of the server (/). I do not want to simply allow this access, especially without understanding what it couple possibly be trying to access there. CS-Cart really shouldn’t need to access anything other than its webroot directory and /tmp (both of which are listed in my open_basedir setting.)
Any ideas on this? Is it a bug?
Depending on where the reference is from, there is probably an unset configuration setting or other variable that is not being set. I.e. chdir($someVar) where $someVar is attempting to be set by something like Registry::get(‘config.http_path’) or something similar.
It should NOT be trying to access the root of your store. Some other variable is empty.
[quote name=‘crear_1’]Hello, I have a problem. upgrade to 2.1.1 from 2.0.15 and I get this error at the foot of the browser.
```php
Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/crearsol/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/crearsol/domains/crearsoluciones.com/public_html/shop/core/fn.fs.php on line 121
```
How I can fix it?
I appreciate any help.
Thank you.
Mariano[/QUOTE]
hello did you solve the problem? I have the same issue when i tried to upgrade to 2.1.4
Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):
Talk to your hosting provider. It is a problem with the basedir defintion of your virtual website.
[quote name=‘gurdji’]hello did you solve the problem? I have the same issue when i tried to upgrade to 2.1.4
Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):[/QUOTE]
CS-Cart has been having issues with some server environments and open_basedir restrictions as is evident within their comments in the coding (some are funny). In your case, the script is forcing an absolute path variable and starting at the server root when it should be relative to your account.
I recommend contacting CS about this problem because they probably already have encountered this with others and may have a quick fix.