check presence of database.php before calling _init() #333

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Member

rchavik commented Nov 24, 2011

Installers might need to know what datasources are available before
database.php has been configured.

@rchavik rchavik check presence of database.php before calling _init()
Installers might need to know what datasources are available before
database.php has been configured.
8a109d7
Owner

lorenzo commented Nov 24, 2011

What is this trying to prevent?

Member

rchavik commented Nov 25, 2011

I encountered this issue because Croogo Install plugin runs before database.php has been created.

Without this, it will get errors similar to this:

Warning (2): include_once(APP/Config/database.php): failed to open stream: No such file or directory [CORE/Cake/ModelConnectionManager.php, line 65]
ConnectionManager::_init() - CORE/Cake/Model/ConnectionManager.php, line 65
ConnectionManager::_init() - CORE/Cake/Model/ConnectionManager.php, line 65
ConnectionManager::enumConnectionObjects() - CORE/Cake/Model/ConnectionManager.php, line 187
Member

rchavik commented Jan 20, 2012

Does not seem to happen anymore.

rchavik closed this Jan 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment