amteich / kirby-twig

Twig templating support for Kirby CMS
MIT License
48 stars 12 forks source link

open_basedir error in LoaderFilesystem.php #4

Closed MathiasGmeiner closed 5 years ago

MathiasGmeiner commented 5 years ago

It get an open_basedir error if I'm using kirby-twig on an Plesk Onyx installation with activated open_basedir restrictions. I'm not able to change the default value of {WEBSPACEROOT}{/}{:}{TMP}{/} (role restrictions).

It works fine if I remove these lines in site/plugins/kirby-twig/src/classes/LoaderFilesystem.php:

Line 219: $templatevariants[] = $shortname . '/' . $templatename . '.twig';

Line 229: if (is_file($path.'/'.$templatevariant)) {

Line 335: }

felipep commented 5 years ago

I had the same problem with uberspace

seehat commented 5 years ago

Should be fixed in 1.0.8