You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
The text was updated successfully, but these errors were encountered:
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]
The text was updated successfully, but these errors were encountered: