调试opencart 3时出现异常
exception when debugging opencart 3
我正在尝试使用 twig 调试带有主题的 opencart 3 应用程序。
当应用程序启动时,twig/Autoloader.php
抛出异常:
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
有什么想法吗?
已弃用 Twig_Autoloader 问题在 OpenCart 中已经存在一段时间了。
但这只是一个警告,不应阻止您使用 Translate Mate,除非您 PHP 设置为严格模式。
当您加载 Translate Mate 页面时,您是从错误日志中得到的吗?
查看版本 3.0.2 https://github.com/chrisrollins65/cr_translate_mate/issues/18
我知道它已经是 post,但我遇到了同样的问题。在我的例子中,这是通过安装 PHP 依赖项解决的,例如:
apt-get install php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml
我正在尝试使用 twig 调试带有主题的 opencart 3 应用程序。
当应用程序启动时,twig/Autoloader.php
抛出异常:
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
有什么想法吗?
已弃用 Twig_Autoloader 问题在 OpenCart 中已经存在一段时间了。
但这只是一个警告,不应阻止您使用 Translate Mate,除非您 PHP 设置为严格模式。
当您加载 Translate Mate 页面时,您是从错误日志中得到的吗?
查看版本 3.0.2 https://github.com/chrisrollins65/cr_translate_mate/issues/18
我知道它已经是 post,但我遇到了同样的问题。在我的例子中,这是通过安装 PHP 依赖项解决的,例如:
apt-get install php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml