ndeet / plg_system_less

A Joomla! system plugin to compile .less files on the fly.
GNU Lesser General Public License v3.0
17 stars 13 forks source link

Warning: is_file is not within the allowed path(s) #13

Closed piotr-cz closed 9 years ago

piotr-cz commented 11 years ago

On the live site, I'm getting following PHP warnings:

Warning: is_file() [function.is-file]:open_basedir restriction in effect. File(/../../../media/jui/less/bootstrap-extended.less) is not within the allowed path(s): (/xxxxx/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /xxxxx/plugins/system/lessc.php on line 80

for each .less file imported using @import tag. I'd say this is issue of the host, usually warning appears when template.css is recompiled.

What helps is to disable PHP warnings or Plugin (IMHO both should be disabled on live site anyway).

Update: this seems to be Less compiler issue (lessc.php), already described here: open_basedir restriction when parsing LESS files

And in lessphp Issues: http/https @import.

rbuelund commented 11 years ago

This issue is still there - in 0.7.2 beta - any progress on this ??

piotr-cz commented 11 years ago

This is an issue of lessphp, and it's best to solve it there consulting developers that have more experience the parser. I posted a patch in the issue above but I'm not sure if it compiles developers intentions to use import directories.

ndeet commented 9 years ago

--Closing as this seems to be a problem with another 3rd party extension and no more feedback given.--

Edit: Closing as the pull request has been merged and the issue was fixed by @piotr-cz afair.