open_basedir restriction when parsing LESS files

514 Views Asked by At

I got a warning when parsing my "Twitter BootStrap" files and saving them on disk in my less-cache folder.

Warning: is_file(): open_basedir restriction in effect. File(/../../lib/bootstrap/less/reset.less.less) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/) in /var/www/vhosts/example.com/httpdocs/wp-content/modules/wp-less/lessc/lessc.inc.php on line 80

I'm using (for example) @import "../../lib/bootstrap/less/reset.less"; in the main file that I'm parsing.

The funky thing is, that the first stylesheet gets the extension two times: reset.less.less - the other ones not. Another thing that keeps me wondering, is why the heck there's a leading / in front of the files.


Some data about the environment and server:

php.ini

include_path = ".:..:"
upload_temp_dir _no value/not set_
open_basedir = "/var/www/vhosts/example.com/:/tmp/"

Thanks for any help in advance!

0

There are 0 best solutions below