2 use Cake\Core\Configure;
3 use Cake\Error\Debugger;
5 $this->layout = 'error';
7 if (Configure::read('debug')):
8 $this->layout = 'dev_error';
10 $this->assign('title', $message);
11 $this->assign('templateName', 'error500.ctp');
15 <?php if (!empty($error->queryString)) : ?>
17 <strong>SQL Query: </strong>
18 <?= h($error->queryString) ?>
21 <?php if (!empty($error->params)) : ?>
22 <strong>SQL Query Params: </strong>
23 <?php Debugger::dump($error->params) ?>
25 <?php if ($error instanceof Error) : ?>
26 <strong>Error in: </strong>
27 <?= sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
30 echo $this->element('auto_table_warning');
32 if (extension_loaded('xdebug')):
33 xdebug_print_function_stack();
39 <h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
41 <strong><?= __d('cake', 'Error') ?>: </strong>