1

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!

kaiser
  • 21,817
  • 17
  • 90
  • 110
  • You have a simple misconfiguration which might be also made more bold due to some flaws in `lessc.inc.php`. I suggest you file a bug report with the WP plugin fix it and the lessc implementation - it might have been designed with relative paths in mind. You can offer the fix to upstream as well when it's done. To solve the concrete problem use absolute/fully qualified path names. – hakre Oct 25 '12 at 01:48
  • 1
    @hakre thanks for stopping by. As I wrote, I commited to the plugin (but not lessc), so I'd file a bug report to mostly myself :/ The question is: Where exactly is my "missconfiguration"? – kaiser Oct 25 '12 at 03:05

0 Answers0