Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Shivamyadav's avatar

php twig class error

I don't know how to resolve this i am unable to find my Twig\Loader\ArrayLoader trying to check wheather twig is intalled or not by this cmd composer show twig/twig but my cmd thow this error composer : The term 'composer' is not recognized as the name of a cmdlet, function, script file, or operable what to do now?

Uncaught Error: Class "Twig\Loader\ArrayLoader" not found in C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_library_template_twig.php:36 Stack trace: #0
0 likes
4 replies
Shivamyadav's avatar

@Snapey here is the whole error

 Uncaught Error: Class "Twig\Loader\ArrayLoader" not found in C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_library_template_twig.php:36 Stack trace: #0 C:\xampp\htdocs\__MACOSX\system\library\template.php(51): Template\Twig->render('so-emarket/temp...', '{% if modules %...') #1 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_engine_loader.php(125): Template->render('so-emarket/temp...', '') #2 C:\xampp\htdocs\__MACOSX\catalog\controller\common\column_left.php(72): Loader->view('common/column_l...', Array) #3 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_engine_action.php(79): ControllerCommonColumnLeft->index(Array) #4 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_engine_loader.php(48): Action->execute(Object(Registry), Array) #5 C:\xampp\htdocs\__MACOSX\catalog\controller\common\home.php(12): Loader->controller('common/column_l...') #6 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_engine_action.php(79): ControllerCommonHome->index() #7 C:\xampp\htdocs\__MACOSX\catalog\controller\startup\router.php(25): Action->execute(Object(Registry)) #8 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_engine_action.php(79): ControllerStartupRouter->index() #9 C:\xampp\htdocs\__MACOSX\system\engine\router.php(67): Action->execute(Object(Registry)) #10 C:\xampp\htdocs\__MACOSX\system\engine\router.php(56): Router->execute(Object(Action)) #11 C:\xampp\htdocs\__MACOSX\system\framework.php(169): Router->dispatch(Object(Action), Object(Action)) #12 C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_startup.php(104): require_once('C:\xampp\htdocs...') #13 C:\xampp\htdocs\__MACOSX\index.php(23): start('catalog') #14 {main} thrown in C:\xampp\htdocs\__MACOSX\vqmod\vqcache\vq2-system_library_template_twig.php on line 36

Please or to participate in this conversation.