News and articles
Error after installing the Simple module in OpenCart 3: Twig_Loader_Array not found

The Simple module is one of the most popular modules for simplifying checkout and registration in OpenCart 3. However, after its installation, a critical error may occur related to an outdated modification of the Twig template engine.

 
 
 
 
 
Best-selling Templates and Extensions in June 2025

Best-selling templates and extensions in June 2025: cookie notice, Yandex.Goods in search, sitemap.

 
 
 
 
 
Selection of new modules for Opencart - June 2025

New in June 2025: Personal Data and Cookie Information, MAX Notifications, Simple Shortcodes

 
 
 
 
 
Personal data and OpenCart online store in 2025

Personal Data and OpenCart Online Store in 2025. What You Need to Know and Do to Sleep Peacefully.

 
 
 
 
 
Most popular templates and extensions in May 2025

Most popular templates and extensions in May 2025: Cookie Notification, ChatGPT, Online Chat.

 
 
 
 
 

Error after installing the Simple module in OpenCart 3: Twig_Loader_Array not found

 
Error after installing the Simple module in OpenCart 3: Twig_Loader_Array not found

After installing the popular Simple module for simplified registration and checkout in OpenCart 3, some users may encounter an error when updating the modification cache:

 Fatal error: Uncaught Error: Class 'Twig_Loader_Array' not found

Cause of the error

This error is caused by an incompatibility of one of the old modifications installed with the Simple module with newer versions of OсStore.

The culprit is the modification file: /system/simple_twig_fix.ocmod.xml

It is intended for older versions of OpenCart (up to 3.0.2.x), but may conflict with current installations.

How to fix the error

To fix the error, you need to delete or rename the file simple_twig_fix.ocmod.xml so that it is not applied when the modification cache is updated.

  1. Navigate to the /system/ directory of your site.
  2. Find the file simple_twig_fix.ocmod.xml
  3. Delete the file completely or rename it so it won’t be picked up by the system (for example): simple_twig_fix.ocmod.xml-disabled
  4. After that, go to the OpenCart admin panel and update the modification cache:
    Go to the Extensions - Modifications section.
    Click the “Refresh” button in the top right corner (blue arrows icon).

After deleting or renaming the file and updating the cache, the error Class 'Twig_Loader_Array' not found should disappear. The Simple module will continue to work correctly, since this modification is no longer needed in modern versions of OcStore, such as OcStore Liveopencart.


Рекомендуем посмотреть
Our Choice
6000 sales
Simple registration and ordering Simple 4.11.9
450 ₽
Рекомендуем прочитать
 
 


Yet, no one has left a comment to the entry.