Open alebak opened 7 years ago
You have to require the composer autoloader instead of include the file "lessc.inc.php" :
require __DIR__ . '/vendor/autoload.php';
@neilime Thanks for response. I have this code:
$composerAutoload = dirname(__DIR__) . '/lib/vendor/autoload.php';
if (!file_exists($composerAutoload))
{
return;
}
require_once $composerAutoload;
The error is with composer autoload.php. The ClassLoader.php on line 412 is this function:
function includeFile($file)
{
include $file;
}
You should try to require the last version : 0.5.0
Hello, I have this problem using lessphp with composer. This is my composer.json:
And this it the error:
Warning: include(C:\xampp\home\joomla\public_html\templates\xim_sbadmin2\lib\vendor\composer/../leafo/lessphp/lessc.inc.php): failed to open stream: No such file or directory in C:\xampp\home\joomla\public_html\libraries\vendor\composer\ClassLoader.php on line 412
How to fix?