Post by OC2PS » Thu Jun 24, 2021 4:55 am

After upgrading from 3.0.3.1 to 3.0.3.7, when I visit
domain.com/admin I get the error

Code: Select all

Notice: Undefined property: Template\Twig::$twig in /domain.com/store-cst-storage/modification/system/library/template/twig.php on line 35
Fatal error: Uncaught Error: Call to a member function addExtension() on null in /domain.com/store-cst-storage/modification/system/library/template/twig.php:35 Stack trace: #0 /domain.com/store-cst-storage/modification/system/library/template.php(59): Template\Twig->render('common/header', '<!DOCTYPE html>...') #1 /domain.com/store-cst-storage/modification/system/engine/loader.php(133): Template->render('common/header', '') #2 /domain.com/store-cst-storage/modification/admin/controller/common/header.php(112): Loader->view('common/header', Array) #3 /domain.com/store-cst-storage/modification/system/engine/action.php(79): ControllerCommonHeader->index(Array) #4 /domain.com/store-cst-storage/modification/system/engine/loader.php(54): Action->execute(Object(Registry), Array) #5 /domain.com/public_html/admin/controller/common/login.ph in /domain.com/store-cst-storage/modification/system/library/template/twig.php on line 35

OC2PS
OC 3.0.3.1, vQmod 2.6.4, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by ADD Creative » Thu Jun 24, 2021 7:10 am

Looks like an extension issue. You could try clearing the store-cst-storage/modification directory.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Thu Jun 24, 2021 5:06 pm

As Add Creative said, one of your extensions appears to be causing this issue. You should try to identify this poorly written extension and then remove it, or replace it with another one from the marketplace, because there should be no need for any extension to modify the twig.php core file.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by xxvirusxx » Thu Jun 24, 2021 7:23 pm

Also is better to upgrade TWIG engine to 3.x version.

My converted modules | Buy me a beer | Opencart upgrade service


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by JNeuhoff » Thu Jun 24, 2021 9:09 pm

Also, don't use Journal3 which does indeed do crazy things like trying to modify the twig.php, go for a proper web theme!

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 4 guests