Warning (512): /home/repo/public_html/portal/can2013/site/app/tmp/cache/ is not writable [CORE/Cake/Cache/Engine/FileEngine.php, line 336]Code Contextif ($this->_init && !($dir->isDir() && $dir->isWritable())) {
$this->_init = false;
trigger_error(__d('cake_dev', '%s is not writable', $this->settings['path']), E_USER_WARNING);
$dir = object(SplFileInfo) { }FileEngine::_active() - CORE/Cake/Cache/Engine/FileEngine.php, line 336 FileEngine::init() - CORE/Cake/Cache/Engine/FileEngine.php, line 91 Cache::_buildEngine() - CORE/Cake/Cache/Cache.php, line 164 Cache::config() - CORE/Cake/Cache/Cache.php, line 135 include - APP/Config/bootstrap.php, line 99 Configure::bootstrap() - CORE/Cake/Core/Configure.php, line 92 include - CORE/Cake/bootstrap.php, line 146 [main] - APP/webroot/index.php, line 77
Warning (2): file_put_contents(/home/repo/public_html/portal/can2013/site/app/tmp/logs/error.log) [function.file-put-contents]: failed to open stream: No such file or directory [CORE/Cake/Log/Engine/FileLog.php, line 87]Code Context}
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $output, FILE_APPEND);
$type = 'error' $message = '[MissingConnectionException] Database connection "Mysql" is missing, or could not be created. #0 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Datasource/DboSource.php(261): Mysql->connect() #1 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/ConnectionManager.php(101): DboSource->__construct(Array) #2 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(3164): ConnectionManager::getDataSource('default') #3 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(1096): Model->setDataSource('default') #4 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(3186): Model->setSource('sports_news') #5 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(2637): Model->getDataSource() #6 /home/repo/public_html/portal/can2013/site/app/Model/SportsNews.php(10): Model->find('all', Array) #7 /home/repo/public_html/portal/can2013/site/app/Controller/IndexController.php(24): SportsNews->getHeadlineNews(4) #8 [internal function]: IndexController->index('') #9 /home/repo/public_html/portal/can2013/site/lib/Cake/Controller/Controller.php(485): ReflectionMethod->invokeArgs(Object(IndexController), Array) #10 /home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest)) #11 /home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(IndexController), Object(CakeRequest), Object(CakeResponse)) #12 /home/repo/public_html/portal/can2013/site/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #13 {main}' $debugTypes = array( (int) 0 => 'notice', (int) 1 => 'info', (int) 2 => 'debug' ) $filename = '/home/repo/public_html/portal/can2013/site/app/tmp/logs/error.log' $output = '2024-04-25 22:01:44 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created. #0 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Datasource/DboSource.php(261): Mysql->connect() #1 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/ConnectionManager.php(101): DboSource->__construct(Array) #2 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(3164): ConnectionManager::getDataSource('default') #3 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(1096): Model->setDataSource('default') #4 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(3186): Model->setSource('sports_news') #5 /home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php(2637): Model->getDataSource() #6 /home/repo/public_html/portal/can2013/site/app/Model/SportsNews.php(10): Model->find('all', Array) #7 /home/repo/public_html/portal/can2013/site/app/Controller/IndexController.php(24): SportsNews->getHeadlineNews(4) #8 [internal function]: IndexController->index('') #9 /home/repo/public_html/portal/can2013/site/lib/Cake/Controller/Controller.php(485): ReflectionMethod->invokeArgs(Object(IndexController), Array) #10 /home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest)) #11 /home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(IndexController), Object(CakeRequest), Object(CakeResponse)) #12 /home/repo/public_html/portal/can2013/site/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #13 {main} 'file_put_contents - [internal], line ?? FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87 CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 452 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 117 [main] - [internal], line ??
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [1045] Access denied for user 'repo_xyz'@'localhost' (using password: YES)
Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp.
));
}
if ($autoConnect) {
$this->connect();
}
$conn = self::$_connectionsEnum[$name];
$class = $conn['classname'];
self::$_dataSources[$name] = new $class(self::$config->{$name});
self::$_dataSources[$name]->configKeyName = $name;
array( 'password' => '*****', 'login' => '*****', 'host' => '*****', 'database' => '*****', 'prefix' => '*****', 'datasource' => 'Database/Mysql', 'persistent' => false )
if ($dataSource != null) {
$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);
}
'sports_news'
return null;
}
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
/* var $useDbConfig = 'bg';*/
function getHeadlineNews(){
return $this->find('all', array('conditions'=>array('status'=>1, 'headline_news'=>1, 'tags LIKE' => '%can2013%'), 'order'=>array('SportsNews.newsdate DESC'), 'limit'=>'1'));
}
'all' array( 'conditions' => array( 'status' => (int) 1, 'headline_news' => (int) 1, 'tags LIKE' => '%can2013%' ), 'order' => array( (int) 0 => 'SportsNews.newsdate DESC' ), 'limit' => '1' )
public function index(){
$featured_news = $this->SportsNews->getHeadlineNews(4);
(int) 4
''
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(IndexController) { name => 'Index' uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) cacheAction => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Index' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} components => array( [maximum depth reached] ) viewClass => 'View' View => null ext => '.ctp' plugin => null passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Can2012Fixture' modelKey => 'index' validationErrors => null Session => object(SessionComponent) {} SportsNews => object(SportsNews) {} } array( (int) 0 => '' )
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => false base => '/portal/can2013/site' webroot => '/portal/can2013/site/' here => '/portal/can2013/site/' }
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(IndexController) { name => 'Index' uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) cacheAction => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Index' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} components => array( [maximum depth reached] ) viewClass => 'View' View => null ext => '.ctp' plugin => null passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Can2012Fixture' modelKey => 'index' validationErrors => null Session => object(SessionComponent) {} SportsNews => object(SportsNews) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => false base => '/portal/can2013/site' webroot => '/portal/can2013/site/' here => '/portal/can2013/site/' } object(CakeResponse) { }
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => false base => '/portal/can2013/site' webroot => '/portal/can2013/site/' here => '/portal/can2013/site/' } object(CakeResponse) { }
Warning (512): _cake_core_ cache was unable to write 'file_map' to File cache [CORE/Cake/Cache/Cache.php, line 309]Code Context),
E_USER_WARNING
);
$key = 'file_map' $value = array( 'Configure' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Core/Configure.php', 'Hash' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/Hash.php', 'Cache' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Cache/Cache.php', 'FileEngine' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Cache/Engine/FileEngine.php', 'CacheEngine' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Cache/CacheEngine.php', 'I18n' => '/home/repo/public_html/portal/can2013/site/lib/Cake/I18n/I18n.php', 'L10n' => '/home/repo/public_html/portal/can2013/site/lib/Cake/I18n/L10n.php', 'CakeRequest' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Network/CakeRequest.php', 'Inflector' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/Inflector.php', 'CakePlugin' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Core/CakePlugin.php', 'ErrorHandler' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Error/ErrorHandler.php', 'Debugger' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/Debugger.php', 'String' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/String.php', 'CakeLog' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Log/CakeLog.php', 'LogEngineCollection' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Log/LogEngineCollection.php', 'ObjectCollection' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/ObjectCollection.php', 'FileLog' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Log/Engine/FileLog.php', 'BaseLog' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Log/Engine/BaseLog.php', 'CakeLogInterface' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Log/CakeLogInterface.php', 'Dispatcher' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Dispatcher.php', 'CakeEventListener' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Event/CakeEventListener.php', 'CakeResponse' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Network/CakeResponse.php', 'CakeEvent' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Event/CakeEvent.php', 'CakeEventManager' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Event/CakeEventManager.php', 'AssetDispatcher' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Filter/AssetDispatcher.php', 'DispatcherFilter' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/DispatcherFilter.php', 'CacheDispatcher' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Filter/CacheDispatcher.php', 'Router' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Router.php', 'CakeRoute' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Routing/Route/CakeRoute.php', 'IndexController' => '/home/repo/public_html/portal/can2013/site/app/Controller/IndexController.php', 'AppController' => '/home/repo/public_html/portal/can2013/site/app/Controller/AppController.php', 'Controller' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Controller/Controller.php', 'Object' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Core/Object.php', 'ComponentCollection' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Controller/ComponentCollection.php', 'SessionComponent' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Controller/Component/SessionComponent.php', 'Component' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Controller/Component.php', 'ClassRegistry' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Utility/ClassRegistry.php', 'ConnectionManager' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/ConnectionManager.php', 'SportsNews' => '/home/repo/public_html/portal/can2013/site/app/Model/SportsNews.php', 'AppModel' => '/home/repo/public_html/portal/can2013/site/app/Model/AppModel.php', 'Model' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/Model.php', 'BehaviorCollection' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/BehaviorCollection.php', 'Mysql' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/Datasource/Database/Mysql.php', 'DboSource' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/Datasource/DboSource.php', 'DataSource' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Model/Datasource/DataSource.php', 'ExceptionRenderer' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Error/ExceptionRenderer.php', 'CakeErrorController' => '/home/repo/public_html/portal/can2013/site/lib/Cake/Controller/CakeErrorController.php', 'View' => '/home/repo/public_html/portal/can2013/site/lib/Cake/View/View.php', 'HelperCollection' => '/home/repo/public_html/portal/can2013/site/lib/Cake/View/HelperCollection.php', 'ViewBlock' => '/home/repo/public_html/portal/can2013/site/lib/Cake/View/ViewBlock.php', 'HtmlHelper' => '/home/repo/public_html/portal/can2013/site/lib/Cake/View/Helper/HtmlHelper.php', 'AppHelper' => '/home/repo/public_html/portal/can2013/site/app/View/Helper/AppHelper.php', 'Helper' => '/home/repo/public_html/portal/can2013/site/lib/Cake/View/Helper.php' ) $config = '_cake_core_' $settings = array( 'prefix' => '*****', 'engine' => 'File', 'path' => '/home/repo/public_html/portal/can2013/site/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 309 App::shutdown() - CORE/Cake/Core/App.php, line 893 [main] - [internal], line ??