Notice (8): Trying to access array offset on value of type bool [APP/Controller/AppController.php, line 125]Code Context
$this->agent = checkAgentClass::check();
$this->dir = $this->agent["category"]=="phone"?"phone":"pc";
AppController::beforeFilter() - APP/Controller/AppController.php, line 125
IndexController::beforeFilter() - APP/Controller/IndexController.php, line 42
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - /home/kir060294/public_html/group.cross-test.xyz/index.php, line 111
Notice (8): Trying to access array offset on value of type bool [APP/Controller/AppController.php, line 125]Code Context
$this->agent = checkAgentClass::check();
$this->dir = $this->agent["category"]=="phone"?"phone":"pc";
AppController::beforeFilter() - APP/Controller/AppController.php, line 125
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 158
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 95
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ??
Missing Datasource Configuration
Error:
The datasource configuration kir060294_newohprd was not found in database.php.
Notice:
If you want to customize this error message, create group.cross-test.xyz/View/Errors/missing_datasource_config.ctp
Stack Trace
- CORE/Cake/Model/ConnectionManager.php line 91 → ConnectionManager::_getConnectionObject()
}
if (empty(static::$_connectionsEnum[$name])) {
static::_getConnectionObject($name);
}
- CORE/Cake/Model/Model.php line 3659 → ConnectionManager::getDataSource()
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
- APP/Model/AppModel.php line 52 → Model->setDataSource()
}
public function setDb($dbName,$DbConfig='default'){
$this->setDataSource($DbConfig);
$db = ConnectionManager::getDataSource($this->useDbConfig);
- APP/Controller/AppController.php line 211 → AppModel->setDb()
"conditions"=>["id"=>empty($shopId) ? $this->settings["fix"]["shopId"]:$shopId],
]);
$this->Setting->setDb($re["Shop"]["db_name"],$re["Shop"]["db_name"]);
- APP/Controller/AppController.php line 343 → AppController->fetchSettingsSys()
foreach(Hash::extract($re,'{n}.'.$this->Shop->name) as $record){
$this->displayShopList[$record["db_name"]]["fromShopTable"] = $record;
$this->displayShopList[$record["db_name"]]["settings"]["fix"] = $this->fetchSettingsFix($record["domain"]);
$this->displayShopList[$record["db_name"]]["settings"]["sys"] = $this->fetchSettingsSys($record["id"]);
}
- APP/Controller/AppController.php line 148 → AppController->createDisplayShopList()
];
$this->createSiteList();
$this->createDisplayShopList();
$this->createShopList();
- APP/Controller/IndexController.php line 42 → AppController->beforeFilter()
];
public function beforeFilter() {
parent::beforeFilter();
}
- CORE/Cake/Event/CakeEventManager.php line 244 → IndexController->beforeFilter()
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
- CORE/Cake/Controller/Controller.php line 682 → CakeEventManager->dispatch()
* @triggers Controller.startup $this
*/
public function startupProcess() {
$this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));
$this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));
- CORE/Cake/Routing/Dispatcher.php line 189 → Controller->startupProcess()
*/
protected function _invoke(Controller $controller, CakeRequest $request) {
$controller->constructClasses();
$controller->startupProcess();
- CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke()
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
- /home/kir060294/public_html/group.cross-test.xyz/index.php line 111 → Dispatcher->dispatch()
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);