I had an issue with the ext
I moved the index.php to the root folder
require './vendor/autoload.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__,
'public' => __DIR__,
'storage' => __DIR__.'/storage',
])
);
it gives me an error while opening the page
the Error trace
Less_Exception_Parser
File `forum/Pusher.less` not found. in variables.less
/home/xxxx/public_html/demos/forum/vendor/oyejorge/less.php/lib/Less/Parser.php
$type = gettype($arg);
if( $type === 'object'){
$string = $arg->cache_string;
unset($arg->cache_string);
return $string;
}elseif( $type === 'array' ){
$string = ' Array(';
foreach($arg as $k => $a){
$string .= var_export($k,true).' => '.self::ArgString($a).',';
}
return $string . ')';
}
return var_export($arg,true);
}
public function Error($msg){
throw new Less_Exception_Parser($msg, null, $this->furthest, $this->env->currentFileInfo);
}
public static function WinPath($path){
return str_replace('\\', '/', $path);
}
public static function AbsPath($path, $winPath = false){
if (strpos($path, '//') !== false && preg_match('_^(https?:)?//\\w+(\\.\\w+)+/\\w+_i', $path)) {
return $winPath ? '' : false;
} else {
$path = realpath($path);
if ($winPath) {
$path = self::WinPath($path);
}
return $path;
}
thanks