Notice (8): Undefined index: countryCode [APP/Controller/ApiController.php, line 546]Code Context
try{
$countryCode = $this->request->data['countryCode'];
ApiController::getCompanyInfo() - APP/Controller/ApiController.php, line 546
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 111
Notice (8): Undefined index: nif [APP/Controller/ApiController.php, line 547]Code Context try{
$countryCode = $this->request->data['countryCode'];
$nif = $this->request->data['nif'];
$countryCode = null
ApiController::getCompanyInfo() - APP/Controller/ApiController.php, line 547
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 111
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mycloudpie/web/site/cakephp-2.4.10/lib/Cake/Utility/Debugger.php:800) [APP/View/Layouts/json.ctp, line 25]Code Context break;
case 412:
header("HTTP/1.1 412 Precondition Failed");
$viewFile = '/var/www/vhosts/mycloudpie/web/site/public_html/View/Layouts/json.ctp'
$dataForView = array(
'ajaxResponse' => array(),
'ajaxResponseCode' => (int) 412,
'helpSection' => 'api_getcompanyinfo',
'lu' => null,
'toc' => array(),
'title_for_layout' => 'myCloud PIE',
'appName' => 'myCloud PIE',
'showStore' => false,
'entitiesTypeLabel' => array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
),
'agentEntityId' => null,
'projectUrl' => '',
'projectDescription' => 'GrupoPIE DN',
'projectBaseref' => 'GPIEDN',
'projectId' => (int) 1,
'entityLevel2Full' => null,
'entityLevel2' => null,
'entityLevel1Full' => null,
'entityLevel1' => null,
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$ajaxResponse = array()
$ajaxResponseCode = (int) 412
$helpSection = 'api_getcompanyinfo'
$lu = null
$toc = array()
$title_for_layout = 'myCloud PIE'
$appName = 'myCloud PIE'
$showStore = false
$entitiesTypeLabel = array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
)
$agentEntityId = null
$projectUrl = ''
$projectDescription = 'GrupoPIE DN'
$projectBaseref = 'GPIEDN'
$projectId = (int) 1
$entityLevel2Full = null
$entityLevel2 = null
$entityLevel1Full = null
$entityLevel1 = null
$content_for_layout = ''
$scripts_for_layout = ''
header - [internal], line ??
include - APP/View/Layouts/json.ctp, line 25
View::_evaluate() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 934
View::_render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 896
View::renderLayout() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 528
View::render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 473
Controller::render() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 954
ApiController::getCompanyInfo() - APP/Controller/ApiController.php, line 557
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 111
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mycloudpie/web/site/cakephp-2.4.10/lib/Cake/Utility/Debugger.php:800) [APP/View/Layouts/json.ctp, line 26]Code Context case 412:
header("HTTP/1.1 412 Precondition Failed");
header("Status: 412 Precondition Failed");
$viewFile = '/var/www/vhosts/mycloudpie/web/site/public_html/View/Layouts/json.ctp'
$dataForView = array(
'ajaxResponse' => array(),
'ajaxResponseCode' => (int) 412,
'helpSection' => 'api_getcompanyinfo',
'lu' => null,
'toc' => array(),
'title_for_layout' => 'myCloud PIE',
'appName' => 'myCloud PIE',
'showStore' => false,
'entitiesTypeLabel' => array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
),
'agentEntityId' => null,
'projectUrl' => '',
'projectDescription' => 'GrupoPIE DN',
'projectBaseref' => 'GPIEDN',
'projectId' => (int) 1,
'entityLevel2Full' => null,
'entityLevel2' => null,
'entityLevel1Full' => null,
'entityLevel1' => null,
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$ajaxResponse = array()
$ajaxResponseCode = (int) 412
$helpSection = 'api_getcompanyinfo'
$lu = null
$toc = array()
$title_for_layout = 'myCloud PIE'
$appName = 'myCloud PIE'
$showStore = false
$entitiesTypeLabel = array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
)
$agentEntityId = null
$projectUrl = ''
$projectDescription = 'GrupoPIE DN'
$projectBaseref = 'GPIEDN'
$projectId = (int) 1
$entityLevel2Full = null
$entityLevel2 = null
$entityLevel1Full = null
$entityLevel1 = null
$content_for_layout = ''
$scripts_for_layout = ''
header - [internal], line ??
include - APP/View/Layouts/json.ctp, line 26
View::_evaluate() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 934
View::_render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 896
View::renderLayout() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 528
View::render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 473
Controller::render() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 954
ApiController::getCompanyInfo() - APP/Controller/ApiController.php, line 557
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 111
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mycloudpie/web/site/cakephp-2.4.10/lib/Cake/Utility/Debugger.php:800) [APP/View/Layouts/json.ctp, line 58]Code Context foreach($ajaxResponseHeaders as $k => $v){
if($k == $v || is_numeric($k)){ header($v); }
else{ header($k.': '.$v); }
$viewFile = '/var/www/vhosts/mycloudpie/web/site/public_html/View/Layouts/json.ctp'
$dataForView = array(
'ajaxResponse' => array(),
'ajaxResponseCode' => (int) 412,
'helpSection' => 'api_getcompanyinfo',
'lu' => null,
'toc' => array(),
'title_for_layout' => 'myCloud PIE',
'appName' => 'myCloud PIE',
'showStore' => false,
'entitiesTypeLabel' => array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
),
'agentEntityId' => null,
'projectUrl' => '',
'projectDescription' => 'GrupoPIE DN',
'projectBaseref' => 'GPIEDN',
'projectId' => (int) 1,
'entityLevel2Full' => null,
'entityLevel2' => null,
'entityLevel1Full' => null,
'entityLevel1' => null,
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$ajaxResponse = array()
$ajaxResponseCode = (int) 412
$helpSection = 'api_getcompanyinfo'
$lu = null
$toc = array()
$title_for_layout = 'myCloud PIE'
$appName = 'myCloud PIE'
$showStore = false
$entitiesTypeLabel = array(
(int) 1 => 'Master',
(int) 6 => 'Distribuidor BN4POS',
(int) 7 => 'Agente',
(int) 8 => 'Sub-Revendedor',
(int) 4 => 'Cliente',
(int) 5 => 'Sub-Cliente',
(int) 2 => 'Utilizador',
(int) 3 => 'Auditor'
)
$agentEntityId = null
$projectUrl = ''
$projectDescription = 'GrupoPIE DN'
$projectBaseref = 'GPIEDN'
$projectId = (int) 1
$entityLevel2Full = null
$entityLevel2 = null
$entityLevel1Full = null
$entityLevel1 = null
$content_for_layout = ''
$scripts_for_layout = ''
$ajaxResponseHeaders = array(
'Content-Type' => 'application/json'
)
$v = 'application/json'
$k = 'Content-Type'
header - [internal], line ??
include - APP/View/Layouts/json.ctp, line 58
View::_evaluate() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 934
View::_render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 896
View::renderLayout() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 528
View::render() - ROOT/cakephp-2.4.10/lib/Cake/View/View.php, line 473
Controller::render() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 954
ApiController::getCompanyInfo() - APP/Controller/ApiController.php, line 557
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - ROOT/cakephp-2.4.10/lib/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - ROOT/cakephp-2.4.10/lib/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 111