Warning (2): count(): Parameter must be an array or an object that implements Countable [APP/Controller/ProtocolsController.php, line 668]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$id = '100304'
$variable_mappings = []
$variables = [
(int) 0 => object(App\Model\Entity\Variable) {
'id' => (int) 4055,
'name' => 'PX100304_Current_Contraception_Use_Male_Last_Year',
'code' => 'PX100304010000',
'description' => 'Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?',
'version_num' => null,
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Variables'
}
]
$variable = object(App\Model\Entity\Variable) {
'id' => (int) 4055,
'name' => 'PX100304_Current_Contraception_Use_Male_Last_Year',
'code' => 'PX100304010000',
'description' => 'Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?',
'version_num' => null,
'[new]' => false,
'[accessible]' => [
'name' => true,
'code' => true,
'description' => true,
'protocol_id' => true,
'type' => true,
'units' => true,
'min' => true,
'max' => true,
'comment1' => true,
'comment2' => true,
'variable_values' => true,
'version_num' => true,
'created_dt' => true,
'protocol' => true,
'variable_gap_mappings' => true,
'variable_histories' => true,
'variable_history_mappings' => true,
'variable_keywords' => true
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Variables'
}
$variable_mappings_obj = [
'name' => 'PX100304_Current_Contraception_Use_Male_Last_Year',
'code' => 'PX100304010000',
'description' => 'Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?',
'version_num' => null,
'mappings' => ''
]
$mappings = object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT VariableGapMappings.gap_phv AS `VariableGapMappings__gap_phv`, VariableGapMappings.gap_study_name AS `VariableGapMappings__gap_study_name`, VariableGapMappings.gap_variable_desc AS `VariableGapMappings__gap_variable_desc` FROM variable_gap_mappings VariableGapMappings WHERE variable_id = :c0 ORDER BY gap_study_name ASC',
'params' => [
':c0' => [
[maximum depth reached]
]
],
'defaultTypes' => [
'VariableGapMappings__id' => 'integer',
'VariableGapMappings.id' => 'integer',
'id' => 'integer',
'VariableGapMappings__variable_id' => 'integer',
'VariableGapMappings.variable_id' => 'integer',
'variable_id' => 'integer',
'VariableGapMappings__gap_study_name' => 'string',
'VariableGapMappings.gap_study_name' => 'string',
'gap_study_name' => 'string',
'VariableGapMappings__gap_study_accession' => 'string',
'VariableGapMappings.gap_study_accession' => 'string',
'gap_study_accession' => 'string',
'VariableGapMappings__gap_phv' => 'string',
'VariableGapMappings.gap_phv' => 'string',
'gap_phv' => 'string',
'VariableGapMappings__gap_variable_name' => 'string',
'VariableGapMappings.gap_variable_name' => 'string',
'gap_variable_name' => 'string',
'VariableGapMappings__gap_variable_desc' => 'string',
'VariableGapMappings.gap_variable_desc' => 'string',
'gap_variable_desc' => 'string',
'VariableGapMappings__created_dt' => 'datetime',
'VariableGapMappings.created_dt' => 'datetime',
'created_dt' => 'datetime',
'VariableGapMappings__map_level' => 'string',
'VariableGapMappings.map_level' => 'string',
'map_level' => 'string',
'VariableGapMappings__variable_name' => 'string',
'VariableGapMappings.variable_name' => 'string',
'variable_name' => 'string',
'VariableGapMappings__variable_code' => 'string',
'VariableGapMappings.variable_code' => 'string',
'variable_code' => 'string',
'VariableGapMappings__tcors_variable_desc' => 'string',
'VariableGapMappings.tcors_variable_desc' => 'string',
'tcors_variable_desc' => 'string',
'VariableGapMappings__tcors_recode_id' => 'string',
'VariableGapMappings.tcors_recode_id' => 'string',
'tcors_recode_id' => 'string',
'VariableGapMappings__tcors_study_name' => 'string',
'VariableGapMappings.tcors_study_name' => 'string',
'tcors_study_name' => 'string',
'VariableGapMappings__tcors_variable_name' => 'string',
'VariableGapMappings.tcors_variable_name' => 'string',
'tcors_variable_name' => 'string'
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 0,
'mapReducers' => (int) 0,
'contain' => [],
'matching' => [],
'extraOptions' => [],
'repository' => object(App\Model\Table\VariableGapMappingsTable) {}
}
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
count - [internal], line ??
App\Controller\ProtocolsController::export() - APP/Controller/ProtocolsController.php, line 668
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 109
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 104
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 98
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 81
Warning (512): Unable to emit headers. Headers sent in file=/var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php line=850 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/csv',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Content-Security-Policy' => [
[maximum depth reached]
],
'Content-Disposition' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304
'
}
$maxBufferLength = (int) 8192
$file = '/var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 850
$message = 'Unable to emit headers. Headers sent in file=/var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php line=850'
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/csv',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Content-Security-Policy' => [
[maximum depth reached]
],
'Content-Disposition' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304
'
}
$reasonPhrase = 'OK'
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 177]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/csv',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Content-Security-Policy' => [
[maximum depth reached]
],
'Content-Disposition' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304
'
}
$cookies = []
$values = [
(int) 0 => 'text/csv; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/csv; charset=UTF-8'
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 177]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/csv',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Content-Security-Policy' => [
[maximum depth reached]
],
'Content-Disposition' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304
'
}
$cookies = []
$values = [
(int) 0 => 'default-src https: data: 'unsafe-inline' 'unsafe-eval' 'self' blob:;'
]
$name = 'Content-Security-Policy'
$first = true
$value = 'default-src https: data: 'unsafe-inline' 'unsafe-eval' 'self' blob:;'
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/PhenxToolkit/cakephp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 177]Code Context {
return parent::handleError($code, $description, $file, $line, $context);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/csv',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Content-Security-Policy' => [
[maximum depth reached]
],
'Content-Disposition' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304
'
}
$cookies = []
$values = [
(int) 0 => 'attachment; filename="export.csv"'
]
$name = 'Content-Disposition'
$first = true
$value = 'attachment; filename="export.csv"'
ErrorEmail\Error\ErrorHandler::_callParentHandleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 113
ErrorEmail\Error\ErrorHandler::handleError() - ROOT/vendor/ebrigham1/cakephp-error-email/src/Error/ErrorHandler.php, line 63
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
"Variable Name","Variable ID","Variable Description",Version,"dbGaP Mapping"
PX100304_Current_Contraception_Use_Male_Last_Year,PX100304010000,"Including any methods you may have already told me about and methods you may have used only once, during the last 12 months, which of these methods did you and she use to prevent pregnancy or sexually transmitted diseases?",,https://www.phenxtoolkit.org/protocols/view/100304