Warning (2): Use of undefined constant LANGUAGE - assumed 'LANGUAGE' (this will throw an Error in a future version of PHP) [APP/Controller/AppController.php, line 356]Code Context 'page_type' => PAGE,
'lang' => LANGUAGE,
'get_content' => true,
$path = '/tag/nuoc-suc-mieng'
$url = 'tag/nuoc-suc-mieng'
$result = [
'url' => 'tag/nuoc-suc-mieng'
]
$page_type = 'tag'
App\Controller\AppController::getPageByUrl() - APP/Controller/AppController.php, line 356
App\Controller\AppController::beforeRender() - APP/Controller/AppController.php, line 142
App\Controller\ErrorController::beforeRender() - APP/Controller/ErrorController.php, line 64
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 309
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 286
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 92
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 675
Cake\Error\ExceptionRenderer::_outputMessage() - CORE/src/Error/ExceptionRenderer.php, line 369
Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 248
Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 138
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 121
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 90
[main] - /www/wwwroot/tcr.vn/index.php, line 35
Warning (2): Use of undefined constant CODE_TEMPLATE - assumed 'CODE_TEMPLATE' (this will throw an Error in a future version of PHP) [APP/Model/Table/TemplatesPageTable.php, line 38]Code Context 'conditions' => [
'ContentMutiple.template_code' => CODE_TEMPLATE
],
$config = [
'alias' => 'TemplatesPage',
'className' => 'App\Model\Table\TemplatesPageTable',
'connection' => object(Cake\Database\Connection) {
'config' => [
[maximum depth reached]
],
'driver' => object(Cake\Database\Driver\Mysql) {},
'transactionLevel' => (int) 0,
'transactionStarted' => false,
'useSavePoints' => false,
'logQueries' => false,
'logger' => null
},
'associations' => object(Cake\ORM\AssociationCollection) {
[protected] _items => [
[maximum depth reached]
]
[protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) {}
},
'registryAlias' => 'TemplatesPage'
]App\Model\Table\TemplatesPageTable::initialize() - APP/Model/Table/TemplatesPageTable.php, line 38
Cake\ORM\Table::__construct() - CORE/src/ORM/Table.php, line 318
Cake\ORM\Locator\TableLocator::_create() - CORE/src/ORM/Locator/TableLocator.php, line 263
Cake\ORM\Locator\TableLocator::get() - CORE/src/ORM/Locator/TableLocator.php, line 217
Cake\ORM\TableRegistry::get() - CORE/src/ORM/TableRegistry.php, line 112
App\Controller\AppController::getPageByUrl() - APP/Controller/AppController.php, line 366
App\Controller\AppController::beforeRender() - APP/Controller/AppController.php, line 142
App\Controller\ErrorController::beforeRender() - APP/Controller/ErrorController.php, line 64
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 309
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 286
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 92
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 675
Cake\Error\ExceptionRenderer::_outputMessage() - CORE/src/Error/ExceptionRenderer.php, line 369
Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 248
Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 138
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 121
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Warning (2): Use of undefined constant CODE_TEMPLATE - assumed 'CODE_TEMPLATE' (this will throw an Error in a future version of PHP) [APP/Model/Table/TemplatesPageTable.php, line 56]Code Context $where = [
'TemplatesPage.template_code' => CODE_TEMPLATE
];
$params = [
'page_type' => 'page',
'lang' => 'LANGUAGE',
'get_content' => true,
'type' => 'tag'
]
$url = null
$code = null
$type = 'tag'
$lang = 'LANGUAGE'
$page_type = 'page'
$get_content = true
App\Model\Table\TemplatesPageTable::getInfoPage() - APP/Model/Table/TemplatesPageTable.php, line 56
App\Controller\AppController::getPageByUrl() - APP/Controller/AppController.php, line 366
App\Controller\AppController::beforeRender() - APP/Controller/AppController.php, line 142
App\Controller\ErrorController::beforeRender() - APP/Controller/ErrorController.php, line 64
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 309
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 286
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 92
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 675
Cake\Error\ExceptionRenderer::_outputMessage() - CORE/src/Error/ExceptionRenderer.php, line 369
Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 248
Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 138
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 121
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 90
[main] - /www/wwwroot/tcr.vn/index.php, line 35
Warning (512): Unable to emit headers. Headers sent in file=/www/wwwroot/tcr.vn/core/vendor/cakephp/cakephp/src/Error/Debugger.php line=841 [CORE/src/Http/ResponseEmitter.php, line 71]Code Context $message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => 'An Internal Server Error Occurred'
}
$file = '/www/wwwroot/tcr.vn/core/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 841
$message = 'Unable to emit headers. Headers sent in file=/www/wwwroot/tcr.vn/core/vendor/cakephp/cakephp/src/Error/Debugger.php line=841'Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 71
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - /www/wwwroot/tcr.vn/index.php, line 35
Warning (2): Cannot modify header information - headers already sent by (output started at /www/wwwroot/tcr.vn/core/vendor/cakephp/cakephp/src/Error/Debugger.php:841) [CORE/src/Http/ResponseEmitter.php, line 168]Code Context $response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => 'An Internal Server Error Occurred'
}
$reasonPhrase = 'Internal Server Error'header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 168
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 74
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - /www/wwwroot/tcr.vn/index.php, line 35
Warning (2): Cannot modify header information - headers already sent by (output started at /www/wwwroot/tcr.vn/core/vendor/cakephp/cakephp/src/Error/Debugger.php:841) [CORE/src/Http/ResponseEmitter.php, line 197]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => 'An Internal Server Error Occurred'
}
$cookies = []
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 197
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 75
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - /www/wwwroot/tcr.vn/index.php, line 35
An Internal Server Error Occurred