Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка при создании сайта Unknown


Recommended Posts

Здравствуйте. Почему сверху висит ошибка? Что это значит и что исправить?

Unknown: Using the "Twig_Loader_Array" class is deprecated since Twig version 2.7, use "Twig\Loader\ArrayLoader" instead. in C:\Opencart\xampp\htdocs\new\system\storage\vendor\twig\twig\lib\Twig\Loader\Array.php on line 7Unknown: Using the "Twig_Loader_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Loader\FilesystemLoader" instead. in C:\Opencart\xampp\htdocs\new\system\storage\vendor\twig\twig\lib\Twig\Loader\Filesystem.php on line 7Unknown: Using the "Twig_Loader_Chain" class is deprecated since Twig version 2.7, use "Twig\Loader\ChainLoader" instead. in C:\Opencart\xampp\htdocs\new\system\storage\vendor\twig\twig\lib\Twig\Loader\Chain.php on line 7

Снимок2.PNG

Снимок.PNG

Edited by Victoria_Victoria
Link to comment
Share on other sites


  • Victoria_Victoria changed the title to Ошибка при создании сайта Unknown
  • 2 weeks later...
  • 1 year later...

Версія PHP 7 більше не підтримується розробниками мови -- https://www.php.net/supported-versions.php

 

В ocStore 3.0.3.7 фіксиця шляхом зміни файлу system/library/template/twig.php

 

//$loader = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));

$loader1 = new \Twig_Loader_Array(array($filename . '.twig' => $code));
$loader2 = new \Twig_Loader_Filesystem(array(DIR_TEMPLATE)); // to find further includes
$loader = new \Twig_Loader_Chain(array($loader1, $loader2));

$twig = new \Twig\Environment($loader, $config);

 

->

$loader = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));

//$loader1 = new \Twig_Loader_Array(array($filename . '.twig' => $code));
//$loader2 = new \Twig_Loader_Filesystem(array(DIR_TEMPLATE)); // to find further includes
//$loader = new \Twig_Loader_Chain(array($loader1, $loader2));

$twig = new \Twig\Environment($loader, $config);

 

  • +1 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.