Warning (2) : PDO::__construct(): MySQL server has gone away [CORE/Cake/Model/Datasource/Database/Mysql.php , line 149 ]Code Context $config['password'],
$flags
); $config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=sql.fabrykawchmurach.home.pl;port=3306;dbname=10095882_0000079' PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 149
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 101
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3157
Model::setSource() - CORE/Cake/Model/Model.php, line 1092
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3179
Model::find() - CORE/Cake/Model/Model.php, line 2630
AppController::beforeFilter() - ROOTappROOTControllerROOTAppController.php, line 42
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOTappROOTwebrootROOTindex.php, line 92 Warning (2) : PDO::__construct() [pdo.construct ]: Error while reading greeting packet. PID=34605 [CORE/Cake/Model/Datasource/Database/Mysql.php , line 149 ]Code Context $config['password'],
$flags
); $config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=sql.fabrykawchmurach.home.pl;port=3306;dbname=10095882_0000079' PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 149
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 101
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3157
Model::setSource() - CORE/Cake/Model/Model.php, line 1092
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3179
Model::find() - CORE/Cake/Model/Model.php, line 2630
AppController::beforeFilter() - ROOTappROOTControllerROOTAppController.php, line 42
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOTappROOTwebrootROOTindex.php, line 92 Warning (2) : PDO::__construct() [pdo.construct ]: MySQL server has gone away [CORE/Cake/Model/Datasource/Database/Mysql.php , line 149 ]Code Context $config['password'],
$flags
); $config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=sql.fabrykawchmurach.home.pl;port=3306;dbname=10095882_0000079' PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 149
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 101
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3181
Model::find() - CORE/Cake/Model/Model.php, line 2630
AppController::beforeFilter() - ROOTappROOTControllerROOTAppController.php, line 42
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ?? Warning (2) : PDO::__construct() [pdo.construct ]: Error while reading greeting packet. PID=34605 [CORE/Cake/Model/Datasource/Database/Mysql.php , line 149 ]Code Context $config['password'],
$flags
); $config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=sql.fabrykawchmurach.home.pl;port=3306;dbname=10095882_0000079' PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 149
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 101
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3181
Model::find() - CORE/Cake/Model/Model.php, line 2630
AppController::beforeFilter() - ROOTappROOTControllerROOTAppController.php, line 42
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ??
Errors - Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 20 ]Code Context gtag('config', 'UA-42886722-2');
</script>
<title><?php if( $this -> params [ 'controller' ] == 'stronaglowna' || $this -> params [ 'controller' ] == 'Stronaglowna' ) { echo $settings [ 'page_title' ]; } else { echo $title_for_layout ; ?> - <?php echo $settings [ 'page_title' ]; ?><?php } ?> </title> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 20
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ??
Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 31 ]Code Context <!-- <link rel="stylesheet" href="css/style.css" /> -->
<meta name="robots" content="index, follow" />
<meta name="description" content="<?php echo $settings [ 'description' ]; ?> " /> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 31
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? " />
Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 32 ]Code Context <meta name="robots" content="index, follow" />
<meta name="description" content="<?php echo $settings [ 'description' ]; ?> " />
<meta name="keywords" content="<?php echo $settings [ 'keywords' ]; ?> " /> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 32
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? " />
Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 36 ]Code Context <meta property="og:url" content="http://maglo.com.pl/">
<meta property="og:locale" content="pl_PL" />
<meta property="og:site_name" content="<?php echo $settings [ 'page_title' ]; ?> "> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 36
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? ">
Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 37 ]Code Context <meta property="og:locale" content="pl_PL" />
<meta property="og:site_name" content="<?php echo $settings [ 'page_title' ]; ?> ">
<meta property="og:title" content="<?php echo $settings [ 'page_title' ]; ?> "> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 37
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? ">
Notice (8) : Undefined variable: settings [ROOTappROOTViewROOTLayoutsROOTdefault.ctp , line 39 ]Code Context <meta property="og:title" content="<?php echo $settings [ 'page_title' ]; ?> ">
<meta property="og:type" content="website" />
<meta property="og:description" content="<?php echo $settings [ 'description' ]; ?> "/> $viewFile = '//app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [2006] MySQL server has gone away',
'enabled' => true,
'code' => (int) 500,
'url' => '/kategoria/142/Regaly_z_wysuwanymi_polkami',
'name' => 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'SQLSTATE[HY000] [2006] MySQL server has gone away'
$enabled = true
$code = (int) 500
$url = '/kategoria/142/Regaly_z_wysuwanymi_polkami'
$name = 'Database connection "SQLSTATE[HY000] [2006] MySQL server has gone away" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [2006] MySQL server has gone away requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'settings'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">ROOTappROOTControllerROOTAppController.php line 42</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> parent::beforeFilter();</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->set( 'settings', $this->Setting->find('list', array( 'fields' => array( 'name', 'value' ) )) );</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'fields' => array(
(int) 0 => 'name',
(int) 1 => 'value'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ProduktyController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Controller->startupProcess()</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->_invoke(ProduktyController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(ProduktyController) {
name => 'Produkty'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Produkty'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'kategoria'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
components => array(
[maximum depth reached]
)
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Site'
modelKey => 'produkty'
validationErrors => null
Session => object(SessionComponent) {}
Setting => object(Setting) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">ROOTappROOTwebrootROOTindex.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'kategoria/142/Regaly_z_wysuwanymi_polkami'
base => ''
webroot => '/'
here => '/kategoria/142/Regaly_z_wysuwanymi_polkami'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - ROOTappROOTViewROOTLayoutsROOTdefault.ctp, line 39
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? "/>