Opencart upgrade error `Could not load template adaptor`

Upgrading one of my stores I encountered the following error:

Fatal error: 
Uncaught Exception: 
Error: Could not load template adaptor ! in /home/u572407319/public_html/system/library/template.php:11 
Stack trace: #0 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(81): 

Template->__construct(NULL) #1 /home/u572407319/public_html/install/controller/common/header.php(14): Loader-

>view('common/header', Array) #2 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): 

ControllerCommonHeader->index(Array) #3 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(24): Action-

>execute(Object(Registry), Array) #4 /home/u572407319/public_html/install/controller/upgrade/upgrade.php(28): Loader-

>controller('common/header') #5 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): ControllerUpgradeUpgrade->index() 

#6 /home/u572407319/public_html/system/engine/router.php(34): Action->execute(Object(Registry)) 

#7 /home/u572407319/public_html/system/engine/router.php(29): Router in /home/u572407319/public_html/system/library/template.php on line 11

Below is what can be done to fix this:

The issue is the template adapters are set by system/config/catalog.php

// Template
$_[‘template_engine’] = ‘twig’;

Way to resolve it is, clear your modification directory! (system/storage/modification)

Make sure you leave index.html but clear everything else out of that directory then refresh your main site/page.

If this helped you in any way I would be super appreciative of any donation you can give by clicking the button below:

Leave a Reply

Your email address will not be published. Required fields are marked *