Warning (512): _cake_core_ cache was unable to write 'cake_dev_eng' to File cache [CORE/Cake/Cache/Cache.php, line 325]Code Context),
E_USER_WARNING
);
$key = 'cake_dev_eng' $value = array( 'LC_MESSAGES' => array() ) $config = '_cake_core_' $settings = array( 'prefix' => '*****', 'engine' => 'File', 'path' => '/home/grupofachas/public_html/app/tmp/cache/persistent/', 'serialize' => true, 'duration' => (int) 10, 'lock' => true, 'isWindows' => false, 'mask' => (int) 436, 'probability' => (int) 100, 'groups' => array() ) $success = falseCache::write() - CORE/Cake/Cache/Cache.php, line 325 I18n::translate() - CORE/Cake/I18n/I18n.php, line 175 __d - CORE/Cake/basics.php, line 613 CakeException::__construct() - CORE/Cake/Error/exceptions.php, line 236 MissingConnectionException::__construct() - CORE/Cake/Error/exceptions.php, line 385 Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 186 DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260 ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 105 Model::setDataSource() - CORE/Cake/Model/Model.php, line 3476 Model::setSource() - CORE/Cake/Model/Model.php, line 1126 Model::getDataSource() - CORE/Cake/Model/Model.php, line 3498 Model::_readDataSource() - CORE/Cake/Model/Model.php, line 2902 Model::find() - CORE/Cake/Model/Model.php, line 2874 AppController::beforeFilter() - APP/Controller/AppController.php, line 11 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 247 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674
Warning (2): file_put_contents() [function.file-put-contents]: Only 0 of 1832 bytes written, possibly out of free disk space [CORE/Cake/Log/Engine/FileLog.php, line 142]Code Context$pathname = $this->_path . $filename;
if (empty($this->_config['mask'])) {
return file_put_contents($pathname, $output, FILE_APPEND);
$type = 'error' $message = '[MissingConnectionException] Database connection "Mysql" is missing, or could not be created. Exception Attributes: array ( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, ) Request URL: /app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg Stack Trace: #0 /home/grupofachas/public_html/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect() #1 /home/grupofachas/public_html/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array) #2 /home/grupofachas/public_html/lib/Cake/Model/Model.php(3476): ConnectionManager::getDataSource('default') #3 /home/grupofachas/public_html/lib/Cake/Model/Model.php(1126): Model->setDataSource('default') #4 /home/grupofachas/public_html/lib/Cake/Model/Model.php(3498): Model->setSource('sliders') #5 /home/grupofachas/public_html/lib/Cake/Model/Model.php(2902): Model->getDataSource() #6 /home/grupofachas/public_html/lib/Cake/Model/Model.php(2874): Model->_readDataSource('all', Array) #7 /home/grupofachas/public_html/app/Controller/AppController.php(11): Model->find('all') #8 [internal function]: AppController->beforeFilter(Object(CakeEvent)) #9 /home/grupofachas/public_html/lib/Cake/Event/CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent)) #10 /home/grupofachas/public_html/lib/Cake/Controller/Controller.php(674): CakeEventManager->dispatch(Object(CakeEvent)) #11 /home/grupofachas/public_html/lib/Cake/Routing/Dispatcher.php(182): Controller->startupProcess() #12 /home/grupofachas/public_html/lib/Cake/Routing/Dispatcher.php(160): Dispatcher->_invoke(Object(AppController), Object(CakeRequest), Object(CakeResponse)) #13 /home/grupofachas/public_html/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #14 {main}' $output = '2024-04-19 06:16:22 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created. Exception Attributes: array ( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, ) Request URL: /app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg Stack Trace: #0 /home/grupofachas/public_html/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect() #1 /home/grupofachas/public_html/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array) #2 /home/grupofachas/public_html/lib/Cake/Model/Model.php(3476): ConnectionManager::getDataSource('default') #3 /home/grupofachas/public_html/lib/Cake/Model/Model.php(1126): Model->setDataSource('default') #4 /home/grupofachas/public_html/lib/Cake/Model/Model.php(3498): Model->setSource('sliders') #5 /home/grupofachas/public_html/lib/Cake/Model/Model.php(2902): Model->getDataSource() #6 /home/grupofachas/public_html/lib/Cake/Model/Model.php(2874): Model->_readDataSource('all', Array) #7 /home/grupofachas/public_html/app/Controller/AppController.php(11): Model->find('all') #8 [internal function]: AppController->beforeFilter(Object(CakeEvent)) #9 /home/grupofachas/public_html/lib/Cake/Event/CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent)) #10 /home/grupofachas/public_html/lib/Cake/Controller/Controller.php(674): CakeEventManager->dispatch(Object(CakeEvent)) #11 /home/grupofachas/public_html/lib/Cake/Routing/Dispatcher.php(182): Controller->startupProcess() #12 /home/grupofachas/public_html/lib/Cake/Routing/Dispatcher.php(160): Dispatcher->_invoke(Object(AppController), Object(CakeRequest), Object(CakeResponse)) #13 /home/grupofachas/public_html/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #14 {main} ' $filename = 'error.log' $pathname = '/home/grupofachas/public_html/app/tmp/logs/error.log'file_put_contents - [internal], line ?? FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 142 CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 452 ErrorHandler::_log() - CORE/Cake/Error/ErrorHandler.php, line 178 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 111 [main] - [internal], line ??
tel. (506) 8888-2001 / 8390-2424 / contáctenos / inicio
<!-- SLOGAN -->
<div id="slogan">
<img src="<?php echo $PATH;?>includes/timthumb.php?src=<?php echo $PATH;?>img/slogan.png&w=1000&h=113" />
$viewFile = '/home/grupofachas/public_html/app/View/Layouts/default.ctp' $dataForView = array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, 'code' => (int) 500, 'url' => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg', 'name' => 'Database connection "Mysql" is missing, or could not be created.', 'error' => object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( [maximum depth reached] ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 }, '_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 = 'Mysql' $message = 'SQLSTATE[HY000] [2002] Connection refused' $enabled = true $code = (int) 500 $url = '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' $name = 'Database connection "Mysql" is missing, or could not be created.' $error = object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 } $_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 - APP/View/Layouts/default.ctp, line 50 View::_evaluate() - CORE/Cake/View/View.php, line 935 View::_render() - CORE/Cake/View/View.php, line 897 View::renderLayout() - CORE/Cake/View/View.php, line 529 View::render() - CORE/Cake/View/View.php, line 474 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 273 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 197 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 175 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120 [main] - [internal], line ??
Notice (8): Undefined variable: PATH [APP/View/Layouts/default.ctp, line 50]img/slogan.png&w=1000&h=113" />Code Context<!-- SLOGAN -->
<div id="slogan">
<img src="<?php echo $PATH;?>includes/timthumb.php?src=<?php echo $PATH;?>img/slogan.png&w=1000&h=113" />
$viewFile = '/home/grupofachas/public_html/app/View/Layouts/default.ctp' $dataForView = array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, 'code' => (int) 500, 'url' => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg', 'name' => 'Database connection "Mysql" is missing, or could not be created.', 'error' => object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( [maximum depth reached] ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 }, '_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 = 'Mysql' $message = 'SQLSTATE[HY000] [2002] Connection refused' $enabled = true $code = (int) 500 $url = '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' $name = 'Database connection "Mysql" is missing, or could not be created.' $error = object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 } $_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 - APP/View/Layouts/default.ctp, line 50 View::_evaluate() - CORE/Cake/View/View.php, line 935 View::_render() - CORE/Cake/View/View.php, line 897 View::renderLayout() - CORE/Cake/View/View.php, line 529 View::render() - CORE/Cake/View/View.php, line 474 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 273 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 197 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 175 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120 [main] - [internal], line ??
Notice (8): Undefined variable: slider [APP/View/Layouts/default.ctp, line 81]Code Context<ul class="bjqs">
<?php
foreach ($slider as $slider) { ?>
$viewFile = '/home/grupofachas/public_html/app/View/Layouts/default.ctp' $dataForView = array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, 'code' => (int) 500, 'url' => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg', 'name' => 'Database connection "Mysql" is missing, or could not be created.', 'error' => object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( [maximum depth reached] ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 }, '_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 = 'Mysql' $message = 'SQLSTATE[HY000] [2002] Connection refused' $enabled = true $code = (int) 500 $url = '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' $name = 'Database connection "Mysql" is missing, or could not be created.' $error = object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 } $_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 - APP/View/Layouts/default.ctp, line 81 View::_evaluate() - CORE/Cake/View/View.php, line 935 View::_render() - CORE/Cake/View/View.php, line 897 View::renderLayout() - CORE/Cake/View/View.php, line 529 View::render() - CORE/Cake/View/View.php, line 474 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 273 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 197 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 175 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120 [main] - [internal], line ??
Warning (2): Invalid argument supplied for foreach() [APP/View/Layouts/default.ctp, line 81]Code Context<ul class="bjqs">
<?php
foreach ($slider as $slider) { ?>
$viewFile = '/home/grupofachas/public_html/app/View/Layouts/default.ctp' $dataForView = array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, 'code' => (int) 500, 'url' => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg', 'name' => 'Database connection "Mysql" is missing, or could not be created.', 'error' => object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( [maximum depth reached] ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 }, '_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 = 'Mysql' $message = 'SQLSTATE[HY000] [2002] Connection refused' $enabled = true $code = (int) 500 $url = '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' $name = 'Database connection "Mysql" is missing, or could not be created.' $error = object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 183 } $_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> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</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 style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></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 105</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"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></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 )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3476</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"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></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 1126</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></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 3498</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"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'sliders'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2902</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"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></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')">CORE/Cake/Model/Model.php line 2874</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 11</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $slider </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Sliders</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'slider'</span><span style="color: #007700">, </span><span style="color: #0000BB">$slider</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all'</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Event/CakeEventManager.php line 247</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 182</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->startupProcess()</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeResponse $response</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" 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 => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</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 - APP/View/Layouts/default.ctp, line 81 View::_evaluate() - CORE/Cake/View/View.php, line 935 View::_render() - CORE/Cake/View/View.php, line 897 View::renderLayout() - CORE/Cake/View/View.php, line 529 View::render() - CORE/Cake/View/View.php, line 474 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 273 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 197 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 175 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120 [main] - [internal], line ??
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] Connection refused
Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp
));
}
if ($autoConnect) {
$this->connect();
}
'message' => 'Datasource is not found in Model/Datasource package.'
));
}
self::$_dataSources[$name] = new $class(self::$config->{$name});
self::$_dataSources[$name]->configKeyName = $name;
array( 'password' => '*****', 'login' => '*****', 'host' => '*****', 'database' => '*****', 'prefix' => '*****', 'datasource' => 'Database/Mysql', 'persistent' => false )
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
'default'
* @return void
*/
public function setSource($tableName) {
$this->setDataSource($this->useDbConfig);
$db = ConnectionManager::getDataSource($this->useDbConfig);
'default'
public function getDataSource() {
if (!$this->_sourceConfigured && $this->useTable !== false) {
$this->_sourceConfigured = true;
$this->setSource($this->useTable);
}
'sliders'
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
return null;
}
return $this->_readDataSource($type, $query);
}
'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
function beforeFilter() {
$slider = $this->Sliders->find('all');
$this->set('slider', $slider);
'all'
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
array( (int) 0 => object(AppController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }
* @return void
*/
public function startupProcess() {
$this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));
$this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(AppController) {} [protected] _stopped => false }
*/
protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {
$controller->constructClasses();
$controller->startupProcess();
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(AppController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'App' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'App' layoutPath => null viewVars => array([maximum depth reached]) view => 'webroot' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array([maximum depth reached]) modelClass => 'Section' modelKey => 'app' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Sliders => object(Sliders) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' base => '' webroot => '/' here => '/app/webroot/files/GaleriasImages/images/104_20171220_065757.jpg' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }
Warning (512): _cake_core_ cache was unable to write 'file_map' to File cache [CORE/Cake/Cache/Cache.php, line 325]Code Context),
E_USER_WARNING
);
$key = 'file_map' $value = array( 'Configure' => '/home/grupofachas/public_html/lib/Cake/Core/Configure.php', 'Hash' => '/home/grupofachas/public_html/lib/Cake/Utility/Hash.php', 'Cache' => '/home/grupofachas/public_html/lib/Cake/Cache/Cache.php', 'FileEngine' => '/home/grupofachas/public_html/lib/Cake/Cache/Engine/FileEngine.php', 'CacheEngine' => '/home/grupofachas/public_html/lib/Cake/Cache/CacheEngine.php', 'Inflector' => '/home/grupofachas/public_html/lib/Cake/Utility/Inflector.php', 'ErrorHandler' => '/home/grupofachas/public_html/lib/Cake/Error/ErrorHandler.php', 'CakeLog' => '/home/grupofachas/public_html/lib/Cake/Log/CakeLog.php', 'LogEngineCollection' => '/home/grupofachas/public_html/lib/Cake/Log/LogEngineCollection.php', 'ObjectCollection' => '/home/grupofachas/public_html/lib/Cake/Utility/ObjectCollection.php', 'FileLog' => '/home/grupofachas/public_html/lib/Cake/Log/Engine/FileLog.php', 'BaseLog' => '/home/grupofachas/public_html/lib/Cake/Log/Engine/BaseLog.php', 'CakeLogInterface' => '/home/grupofachas/public_html/lib/Cake/Log/CakeLogInterface.php', 'Debugger' => '/home/grupofachas/public_html/lib/Cake/Utility/Debugger.php', 'String' => '/home/grupofachas/public_html/lib/Cake/Utility/String.php', 'Dispatcher' => '/home/grupofachas/public_html/lib/Cake/Routing/Dispatcher.php', 'CakeEventListener' => '/home/grupofachas/public_html/lib/Cake/Event/CakeEventListener.php', 'CakeRequest' => '/home/grupofachas/public_html/lib/Cake/Network/CakeRequest.php', 'CakeResponse' => '/home/grupofachas/public_html/lib/Cake/Network/CakeResponse.php', 'CakeEvent' => '/home/grupofachas/public_html/lib/Cake/Event/CakeEvent.php', 'CakeEventManager' => '/home/grupofachas/public_html/lib/Cake/Event/CakeEventManager.php', 'AssetDispatcher' => '/home/grupofachas/public_html/lib/Cake/Routing/Filter/AssetDispatcher.php', 'DispatcherFilter' => '/home/grupofachas/public_html/lib/Cake/Routing/DispatcherFilter.php', 'CacheDispatcher' => '/home/grupofachas/public_html/lib/Cake/Routing/Filter/CacheDispatcher.php', 'CakePlugin' => '/home/grupofachas/public_html/lib/Cake/Core/CakePlugin.php', 'Router' => '/home/grupofachas/public_html/lib/Cake/Routing/Router.php', 'CakeRoute' => '/home/grupofachas/public_html/lib/Cake/Routing/Route/CakeRoute.php', 'AppController' => '/home/grupofachas/public_html/app/Controller/AppController.php', 'Controller' => '/home/grupofachas/public_html/lib/Cake/Controller/Controller.php', 'Object' => '/home/grupofachas/public_html/lib/Cake/Core/Object.php', 'ComponentCollection' => '/home/grupofachas/public_html/lib/Cake/Controller/ComponentCollection.php', 'SessionComponent' => '/home/grupofachas/public_html/lib/Cake/Controller/Component/SessionComponent.php', 'Component' => '/home/grupofachas/public_html/lib/Cake/Controller/Component.php', 'CookieComponent' => '/home/grupofachas/public_html/lib/Cake/Controller/Component/CookieComponent.php', 'ClassRegistry' => '/home/grupofachas/public_html/lib/Cake/Utility/ClassRegistry.php', 'Sliders' => '/home/grupofachas/public_html/app/Model/Sliders.php', 'AppModel' => '/home/grupofachas/public_html/app/Model/AppModel.php', 'Model' => '/home/grupofachas/public_html/lib/Cake/Model/Model.php', 'BehaviorCollection' => '/home/grupofachas/public_html/lib/Cake/Model/BehaviorCollection.php', 'ConnectionManager' => '/home/grupofachas/public_html/lib/Cake/Model/ConnectionManager.php', 'Mysql' => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/Database/Mysql.php', 'DboSource' => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/DboSource.php', 'DataSource' => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/DataSource.php', 'I18n' => '/home/grupofachas/public_html/lib/Cake/I18n/I18n.php', 'L10n' => '/home/grupofachas/public_html/lib/Cake/I18n/L10n.php', 'CakeSession' => '/home/grupofachas/public_html/lib/Cake/Model/Datasource/CakeSession.php', 'ExceptionRenderer' => '/home/grupofachas/public_html/lib/Cake/Error/ExceptionRenderer.php', 'CakeErrorController' => '/home/grupofachas/public_html/lib/Cake/Controller/CakeErrorController.php', 'View' => '/home/grupofachas/public_html/lib/Cake/View/View.php', 'HelperCollection' => '/home/grupofachas/public_html/lib/Cake/View/HelperCollection.php', 'ViewBlock' => '/home/grupofachas/public_html/lib/Cake/View/ViewBlock.php', 'HtmlHelper' => '/home/grupofachas/public_html/lib/Cake/View/Helper/HtmlHelper.php', 'AppHelper' => '/home/grupofachas/public_html/app/View/Helper/AppHelper.php', 'Helper' => '/home/grupofachas/public_html/lib/Cake/View/Helper.php' ) $config = '_cake_core_' $settings = array( 'prefix' => '*****', 'engine' => 'File', 'path' => '/home/grupofachas/public_html/app/tmp/cache/persistent/', 'serialize' => true, 'duration' => (int) 10, 'lock' => true, 'isWindows' => false, 'mask' => (int) 436, 'probability' => (int) 100, 'groups' => array() ) $success = falseCache::write() - CORE/Cake/Cache/Cache.php, line 325 App::shutdown() - CORE/Cake/Core/App.php, line 897 [main] - [internal], line ??