L
L
Lana2019-05-28 14:40:38
Yandex maps
Lana, 2019-05-28 14:40:38

Why does Opencart give an error after installing the Yandex Maps script?

I created a map in Yandex and uploaded the script to opencart (in the footer), after which opencart gives an error.
I removed the map, returned everything as it was, cleared the cache in opencart, in chrome, nothing helps.
I can't find any other solution other than clearing the cache, please help.
Fatal error: Uncaught Twig_Error_Syntax: Unexpected end of template in "default/template/common/footer.twig" at line 26. in C:\xampp\htdocs\open\system\library\template\Twig\TokenStream.php:59 Stack trace: #0 C:\xampp\htdocs\open\system\library\template\Twig\TokenParser\If.php(40): Twig_TokenStream->next() #1 C:\xampp\htdocs\open\system\library \template\Twig\Parser.php(187): Twig_TokenParser_If->parse(Object(Twig_Token)) #2 C:\xampp\htdocs\open\system\library\template\Twig\Parser.php(100): Twig_Parser- >subparse(NULL, false) #3 C:\xampp\htdocs\open\system\library\template\Twig\Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #4 C:\xampp\ htdocs\open\system\library\template\Twig\Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #5 C:\xampp\htdocs\open\system\library\template\Twig\Environment.php(396): Twig_Environment->compileSource('\n loadTemplate('default/templat. in C:\xampp\htdocs\open\system\library \template\Twig\TokenStream.php on line 59

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2019-05-28
@caballero

Before doing this, you need to save a copy of the site. Somewhere they violated the syntax and so it remained.
find or download the same version and carefully replace the default/template/common/footer.twig file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question