# Uncaught exception 'Enlight\_Controller\_Exception' with message 'Controller "\<controllerName\>" not found' in \<path\>/engine/Library/Enlight/Controller/Dispatcher/Default.php:486 Stack trace: #0

**URL:** <https://forum.shopware.com/t/uncaught-exception-enlight-controller-exception-with-message-controller-controllername-not-found-in-path-engine-library-enlight-controller-dispatcher-default-php-486-stack-trace-0/87522>\
**Category:** Shopware 5\
**Created:** [10. Mai 2021 um 04:56 UTC](https://forum.shopware.com/t/uncaught-exception-enlight-controller-exception-with-message-controller-controllername-not-found-in-path-engine-library-enlight-controller-dispatcher-default-php-486-stack-trace-0/87522 "2021-05-10T04:56:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [10. Mai 2021 um 04:56 UTC](https://forum.shopware.com/t/uncaught-exception-enlight-controller-exception-with-message-controller-controllername-not-found-in-path-engine-library-enlight-controller-dispatcher-default-php-486-stack-trace-0/87522/1 "2021-05-10T04:56:02Z")

</div>

Below SW 5.4 or so you have to add your controller manually,

For example, add the following lines of code in the subscriber

‚Enlight\_Controller\_Dispatcher\_ControllerPath\_Frontend\_ControllerName‘ =\> ‚functionName‘,

public function functionName()  
{  
return **DIR**. ‚/…/Controllers/Frontend/ControllerName.php‘;  
}
