I Get this error code!
Fatal error: Uncaught Error: Class "Twig_Environment" not found in /home/r269737/public_html/storage/modification/system/library/template/twig.php:49 Stack trace: #0 /home/r269737/public_html/storage/modification/system/library/template.php(57): Template\Twig->render('default/templat...', '1') #1 /home/r269737/public_html/storage/modification/system/engine/loader.php(128): Template->render('default/templat...', '1') #2 /home/r269737/public_html/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array) #3 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array) #4 /home/r269737/public_html/storage/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #5 /home/r269737/public_html/catalog/controller/common/home.php(12): Loader->controller('common/column_l...') #6 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerCommonHome->index() #7 /home/r269737/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #8 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #9 /home/r269737/public_html/system/engine/router.php(67): Action->execute(Object(Registry)) #10 /home/r269737/public_html/system/engine/router.php(56): Router->execute(Object(Action)) #11 /home/r269737/public_html/system/framework.php(167): Router->dispatch(Object(Action), Object(Action)) #12 /home/r269737/public_html/system/startup.php(104): require_once('/home/r269737/p...') #13 /home/r269737/public_html/index.php(22): start('catalog') #14 {main} thrown in /home/r269737/public_html/storage/modification/system/library/template/twig.php on line 49
Why?!?
What can I do?
Page did work okay 6h ago...
Thanks!
Fatal error: Uncaught Error: Class "Twig_Environment" not found in /home/r269737/public_html/storage/modification/system/library/template/twig.php:49 Stack trace: #0 /home/r269737/public_html/storage/modification/system/library/template.php(57): Template\Twig->render('default/templat...', '1') #1 /home/r269737/public_html/storage/modification/system/engine/loader.php(128): Template->render('default/templat...', '1') #2 /home/r269737/public_html/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array) #3 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array) #4 /home/r269737/public_html/storage/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #5 /home/r269737/public_html/catalog/controller/common/home.php(12): Loader->controller('common/column_l...') #6 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerCommonHome->index() #7 /home/r269737/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #8 /home/r269737/public_html/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #9 /home/r269737/public_html/system/engine/router.php(67): Action->execute(Object(Registry)) #10 /home/r269737/public_html/system/engine/router.php(56): Router->execute(Object(Action)) #11 /home/r269737/public_html/system/framework.php(167): Router->dispatch(Object(Action), Object(Action)) #12 /home/r269737/public_html/system/startup.php(104): require_once('/home/r269737/p...') #13 /home/r269737/public_html/index.php(22): start('catalog') #14 {main} thrown in /home/r269737/public_html/storage/modification/system/library/template/twig.php on line 49
Why?!?
What can I do?
Page did work okay 6h ago...
Thanks!
It would be helpful to post more information, such as your OpenCart version and PHP version. If you didn't make any changes to your site, check with your host in case they changed something such as the PHP version.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
You most likely did an upgrade to OC 3.0.3.8 and failed to do it correctly, because there is no reference to Twig_Environment in the file system/library/template/twig.php. Rather, it now uses something like this:
If you can provide more details according to the forum rules, we can easily help you to fix it.
Code: Select all
$twig = new \Twig\Environment($loader, $config);
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 22 guests