Uncaught exception ‘Zend_Application_Resource_Exception’ with message ‘Bootstrap file found for module “default”

8 August, 2011 | | No Comment

Getting this error after moving your ZF application to use modules?

Fatal error: Uncaught exception 'Zend_Application_Resource_Exception'
with message 'Bootstrap file found for module "default" but
bootstrap class "Default_Bootstrap" not found'

This usually happens if you declare your controllerDirectory on Front Controller before defining a different defaultModule.

Something like this on application.ini:

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.defaultModule = "core"

Removing controllerDirectory declaration should do the trick ( it’s not necessary since you are using modules ).

Or, you can simply place it below defaultModule declaration.

Leave a Reply

We love to hear your views.