We are currently working on our servers, so there may be outages on the domains.Zurzeit wird an unseren Servern gearbeitet, deshalb kann es zu Ausfällen bei den Domains kommen.
- Twig updated to version 3, Twig Version 3.x Migration von Version 1.x. oder 2.x Remove Twig Autoloader in your add-on Twig_Autoloader::register(); search for $loader = new Twig_Loader_Filesystem(..) change to $loader = new \Twig\Loader\FilesystemLoader(..) search for $twig = new Twig_Environment(...) change to $twig = new \Twig\Environment(...) search for $twig->addFilter(new Twig_SimpleFilter('strftime', 'strftime_filter')); change to $twig->addFilter(new \Twig\TwigFilter('strftime', 'strftime_filter')); search for $tpl = $twig->loadTemplate(...) change to tpl = $twig->load(...)
Hallo zusammen,Der Addon File Editor v3.1.2 zeigt folgende Meldung an:There was an uncatched exceptionClass 'Twig_Loader_Filesys tem' not foundin line (49) of (/modules/AddonFileEditor/tool.php):
Hallo,bedingt durch die Aktualisierung der Twig-Version sind an Modulen, die Twig benutzen, ein paar Änderungen durchzuführen. Was zu tun ist, ist in der CHANGELOG von WB beschrieben:Code: [Select]- Twig updated to version 3, Twig Version 3.x Migration von Version 1.x. oder 2.x Remove Twig Autoloader in your add-on Twig_Autoloader::register(); search for $loader = new Twig_Loader_Filesystem(..) change to $loader = new \Twig\Loader\FilesystemLoader(..) search for $twig = new Twig_Environment(...) change to $twig = new \Twig\Environment(...) search for $twig->addFilter(new Twig_SimpleFilter('strftime', 'strftime_filter')); change to $twig->addFilter(new \Twig\TwigFilter('strftime', 'strftime_filter')); search for $tpl = $twig->loadTemplate(...) change to tpl = $twig->load(...)Betrifft in deinem Fall wohl den AFE.GrußMatthias
Es gibt schon einige Module die für die 2.13 und php7.4 gefixt sind.Melde dich hier anhttps://addon.WebsiteBaker.org/account/signup.phpDann bekommst du Zugang zur "Terser Area Tester Area"Hier sind alle gefixten Module zum download aufgelistet.
I'm so SorryThis shouldn't have happened.!Sorry, you do not have permission to view this page (Tester Area)Please try again later or go to the Home page.
I created account under tester area but I cant log in too.
if (class_exists('\Twig\Environment') && is_readable($sAddonThemePath.'/groups.twig')) { // create twig template object $loader = new \Twig\Loader\FilesystemLoader($sAddonThemePath); $twig = new \Twig\Environment($loader, [ 'autoescape' => false, 'cache' => false, 'strict_variables' => false, 'debug' => false, 'auto_reload' => true, ]); $aJsonRespond['out'] = $twig->render('groups.twig', $aTplData); } else { // Twig not exists $aJsonRespond['out'] = '<br>TWIG is not initialized!'; }
$aJsonRespond['out'] = $twig->render('groups.twig', $aTplData);
$groups_twig = ' .... '; / content of groups.twig file stored in database $aJsonRespond['out'] = $twig->render($groups_twig, $aTplData);
// Instead echo $oTwig->render('groups.twig', $aTplData); // Use $sTpl = ' template (from database etc..)'; $oTpl = $oTwig->createTemplate($sTpl); echo $oTpl->render($aTplData);