Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning and error if no connection #60

Open
ghost opened this issue Oct 11, 2013 · 0 comments
Open

warning and error if no connection #60

ghost opened this issue Oct 11, 2013 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 11, 2013

Created by gemal, 6th Jul 2010. (originally Lighthouse ticket #11):


If the SQL server for some reason isn't available and you do a $this->find(), you get the following:

Warning (2): sqlsrv_query() expects parameter 1 to be resource, boolean given [APP\models\datasources\dbo\dbo_sqlsrv.php, line 183]
Code | Context

$sql = "SELECT * FROM [Misc] AS [Misc] WHERE 1 = 1 "

sqlsrv_query - [internal], line ??
DboSqlsrv::_execute() - APP\models\datasources\dbo\dbo_sqlsrv.php, line 183
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 250
DboSource::fetchAll() - CORE\cake\libs\model\datasources\dbo_source.php, line 407
DboSource::read() - CORE\cake\libs\model\datasources\dbo_source.php, line 812
DboSqlsrv::read() - APP\models\datasources\dbo\dbo_sqlsrv.php, line 667
Model::find() - CORE\cake\libs\model\model.php, line 2090
UserRoles::getList() - APP\models\user_roles.php, line 8
AdminController::users() - APP\controllers\admin_controller.php, line 145
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - D:\index.php, line 88

Warning (512): SQL Error: An invalid parameter was passed to sqlsrv_query.
[CORE\cake\libs\model\datasources\dbo_source.php, line 673]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants