on line booking
B&B Palazzo del Capitolo ©2012
Bosco Street 9 Road 73014 GALLIPOLI Lecce ITALY
VAT # IT04142620758
Phone: + 39 392 4280793
info@palazzodelcapitolo.it
NEWSLETTER
Sign up to get more information about our many offers.
Missing Database Connection
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[28000] [1045] Access denied for user 'Sql531372'@'31.11.36.138' (using password: YES)
Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 260 → Mysql->connect()
));
}
if ($autoConnect) {
$this->connect();
}
- CORE/Cake/Model/ConnectionManager.php line 105 → DboSource->__construct(array)
'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 )
- CORE/Cake/Model/Model.php line 3476 → ConnectionManager::getDataSource(string)
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
'default'
- CORE/Cake/Model/Model.php line 1126 → Model->setDataSource(string)
* @return void
*/
public function setSource($tableName) {
$this->setDataSource($this->useDbConfig);
$db = ConnectionManager::getDataSource($this->useDbConfig);
'default'
- CORE/Cake/Model/Model.php line 3498 → Model->setSource(string)
public function getDataSource() {
if (!$this->_sourceConfigured && $this->useTable !== false) {
$this->_sourceConfigured = true;
$this->setSource($this->useTable);
}
'emails'
- CORE/Cake/Model/Model.php line 1355 → Model->getDataSource()
*/
public function schema($field = false) {
if ($this->useTable !== false && (!is_array($this->_schema) || $field === true)) {
$db = $this->getDataSource();
$db->cacheSources = ($this->cacheSources && $db->cacheSources);
- CORE/Cake/View/Helper/FormHelper.php line 207 → Model->schema()
if ($key === 'fields') {
if (!isset($this->fieldset[$model]['fields'])) {
$this->fieldset[$model]['fields'] = $object->schema();
foreach ($object->hasAndBelongsToMany as $alias => $assocData) {
- CORE/Cake/View/Helper/FormHelper.php line 459 → FormHelper->_introspectModel(string, string)
if ($model !== false) {
$this->setEntity($model, true);
$this->_introspectModel($model, 'fields');
}
'Email' 'fields'
- APP/View/Themed/Site/Layouts/default.ctp line 298 → FormHelper->create(string, array)
<h1>NEWSLETTER</h1>
<p><?php echo __('desc_newsletter'); ?></p>
<?php
echo $this->Form->create('Email', array('url' => $newsletter_action, 'inputDefaults' => array('format' => array('before', 'error', 'label', 'between', 'input', 'after'))));
echo $this->Form->input('email', array('label' => false, 'class' => 'mail', 'id' => 'mail', 'title' => __('title_privacy'), 'placeholder' => 'e-mail'));
'Email' array( 'url' => array( 'controller' => 'site', 'action' => 'booking', 'ext' => 'html' ), 'inputDefaults' => array( 'format' => array( [maximum depth reached] ) ) )
- CORE/Cake/View/View.php line 935 → include(string)
extract($dataForView);
ob_start();
include $this->__viewFile;
'/web/htdocs/www.palazzodelcapitolo.it/home/app/View/Themed/Site/Layouts/default.ctp'
- CORE/Cake/View/View.php line 897 → View->_evaluate(string, array)
$beforeEvent = new CakeEvent('View.beforeRenderFile', $this, array($viewFile));
$eventManager->dispatch($beforeEvent);
$content = $this->_evaluate($viewFile, $data);
'/web/htdocs/www.palazzodelcapitolo.it/home/app/View/Themed/Site/Layouts/default.ctp' array( 'iPad' => false, 'newsletter_action' => array( 'controller' => 'site', 'action' => 'booking', 'ext' => 'html' ), 'isPrenotazione' => true, 'styleCss' => 'style_pages_prenota', 'title_for_layout' => 'Bed & Breakfast in the heart of the beautiful old Gallipoli.', 'content_for_layout' => '<div id="prenota"> <h1>on line booking</h1><br/> <form action="/en/complete_booking.html" id="Inizia_PrenotazioneForm" name="Inizia_PrenotazioneForm" method="post" accept-charset="utf-8"><div style="display:none;"><input type="hidden" name="_method" value="POST"/></div> <div class="demo" id="prenota_img"> Check-In Date:<input name="data[Inizia_Prenotazione][dal]" placeholder="Inserisci data arrivo" type="text" id="Inizia_PrenotazioneDal"/>Check-Out Date:<input name="data[Inizia_Prenotazione][al]" placeholder="Inserisci data partenza" type="text" id="Inizia_PrenotazioneAl"/> Adults:<select name="data[Inizia_Prenotazione][num_adulti]" id="adulti"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> Children:<select name="data[Inizia_Prenotazione][num_bambino]" id="bambini"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> Children < 3 year:<select name="data[Inizia_Prenotazione][num_min_3_anni]" id="treanni"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </div> <button class="bottone" type="submit" value="Prenota" name="invio">Book</button> </form> </div> <br/>', 'scripts_for_layout' => '' )
- CORE/Cake/View/View.php line 529 → View->_render(string)
}
$this->_currentType = self::TYPE_LAYOUT;
$this->Blocks->set('content', $this->_render($layoutFileName));
'/web/htdocs/www.palazzodelcapitolo.it/home/app/View/Themed/Site/Layouts/default.ctp'
- CORE/Cake/View/View.php line 474 → View->renderLayout(string, string)
$layout = $this->layout;
}
if ($layout && $this->autoLayout) {
$this->Blocks->set('content', $this->renderLayout('', $layout));
}
'' 'default'
- CORE/Cake/Controller/Controller.php line 952 → View->render(null, null)
}
$this->autoRender = false;
$this->response->body($this->View->render($view, $layout));
return $this->response;
null null
- CORE/Cake/Routing/Dispatcher.php line 192 → Controller->render()
}
if ($render && $controller->autoRender) {
$response = $controller->render();
} elseif (!($result instanceof CakeResponse) && $response->body() === null) {
- CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(SiteController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(SiteController) { name => 'Site' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Site' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'prenota' layout => 'default' autoRender => false autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => object(View) {} ext => '.ctp' plugin => null cacheAction => false passedArgs => array([maximum depth reached]) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'EmailForm' modelKey => 'site' validationErrors => null Session => object(SessionComponent) {} RequestHandler => object(RequestHandlerComponent) {} Cookie => object(CookieComponent) {} Captcha => object(CaptchaComponent) {} Paypal => object(PaypalComponent) {} theme => 'site' [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 => 'en/booking.html' base => '' webroot => '/' here => '/en/booking.html' [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] ) }
- APP/webroot/index.php line 110 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'en/booking.html' base => '' webroot => '/' here => '/en/booking.html' [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] ) }