djoey Posted November 26, 2009 Share Posted November 26, 2009 When i try to change the meta tags in the backend i get this error:Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(/home/www/web404/html) is not within the allowed path(s): (/home/www/web404/html/:/home/www/web404/phptmp/:/home/www/web404/files/:/home/www/web404/atd/) in /home/www/web404/html/classes/Meta.php on line 50Warning: scandir(/home/www/web404/html) [function.scandir]: failed to open dir: Operation not permitted in /home/www/web404/html/classes/Meta.php on line 50Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /home/www/web404/html/classes/Meta.php on line 50Cannot scan base URIIt seems to try and scan the variable _PS_ROOT_DIR_ which i believe should be /home/www/web404/html which actually is within the allowed open_basedir paths but it still doesnt work properly anyone seen this before and maybe have a quick fix? Link to comment Share on other sites More sharing options...
Apaccy Posted April 5, 2010 Share Posted April 5, 2010 Hi djoey,It seems that your server configuration disables the use of base_dir.Try to place $_SERVER['DOCUMENT_ROOT'] befor you directory@see disabling-open_basedir-restriction.htmlI had the same problem when installing PrestaShop on a Free hosting. Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/prestashop/) is not within the allowed path(s): (/mnt/100/sdc/d/8/***) in /mnt/100/sdc/d/8/***/prestashop/config/config.inc.php on line 26 in file /config/config.inc.phpif (!file_exists(dirname(__FILE__).'/settings.inc.php')) { $dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/'); if(!file_exists(dirname(__FILE__).'/../install')) die('Error: \'install\' directory is missing'); } I corrected the error like that is_dir($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['REQUEST_URI']) I hope this will help youAurevoir Link to comment Share on other sites More sharing options...
Maicon Herverton Posted May 3, 2011 Share Posted May 3, 2011 LOCAL PrestaShop installed on a server APACHE, when I went and did the settings on a Windows server gave the following message: PHP Warning: Unknown: open_basedir restriction in effect. File(C:\Windows\TEMP\) is not within the allowed path(s): (E:\Domains\frinepe.com.br) in Unknown on line 0 PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 PHP Warning: Unknown: open_basedir restriction in effect. File(C:\Windows\TEMP\) is not within the allowed path(s): (E:\Domains\frinepe.com.br) in Unknown on line 0 PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 I did not understand the topic above, what do you want? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now