Notice (8): Undefined offset: 1 [APP/Config/routes.php, line 41]Code Context $request_uri_params = split("/",$_SERVER['REQUEST_URI']);
$request_uri_params = array_filter($request_uri_params);
if($site_code !== strtolower($request_uri_params[1])){
$db = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
),
'unsigned' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'decimal' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => (int) 2
numRows => (int) 2
took => (float) 0
configKeyName => 'default'
virtualFieldSeparator => '__'
connected => true
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
cacheSources => true
map => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array([maximum depth reached])
)
[protected] _connection => object(PDO) {}
[protected] _useAlias => true
[protected] _charsets => array()
[protected] _result => object(PDOStatement) {}
[protected] _queriesCnt => (int) 1
[protected] _queriesTime => (float) 0
[protected] _queriesLog => array(
(int) 0 => array(
[maximum depth reached]
)
)
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array(
'select * from sites' => array(
[maximum depth reached]
)
)
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'or',
(int) 3 => 'not',
(int) 4 => 'in',
(int) 5 => 'between',
(int) 6 => 'regexp',
(int) 7 => 'similar to'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null
)
[protected] _methodCacheChange => false
[protected] _descriptions => array()
[protected] _sources => null
[protected] _transactionStarted => false
}
$res = array(
(int) 0 => array(
'sites' => array(
'id' => '1',
'sites_code' => 'NEWS',
'reserves_no' => '39999',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
),
(int) 1 => array(
'sites' => array(
'id' => '2',
'sites_code' => 'COMPANY',
'reserves_no' => '1003',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
)
)
$v = array(
'sites' => array(
'id' => '1',
'sites_code' => 'NEWS',
'reserves_no' => '39999',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
)
$site_code = 'news'
$request_uri_params = array()include - APP/Config/routes.php, line 41
Router::_loadRoutes() - CORE/Cake/Routing/Router.php, line 1272
Router::parse() - CORE/Cake/Routing/Router.php, line 597
Dispatcher::parseParams() - CORE/Cake/Routing/Dispatcher.php, line 217
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 145
[main] - APP/webroot/index.php, line 108
Notice (8): Undefined offset: 1 [APP/Config/routes.php, line 41]Code Context $request_uri_params = split("/",$_SERVER['REQUEST_URI']);
$request_uri_params = array_filter($request_uri_params);
if($site_code !== strtolower($request_uri_params[1])){
$db = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
),
'unsigned' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'decimal' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => (int) 2
numRows => (int) 2
took => (float) 0
configKeyName => 'default'
virtualFieldSeparator => '__'
connected => true
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
cacheSources => true
map => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array([maximum depth reached])
)
[protected] _connection => object(PDO) {}
[protected] _useAlias => true
[protected] _charsets => array()
[protected] _result => object(PDOStatement) {}
[protected] _queriesCnt => (int) 1
[protected] _queriesTime => (float) 0
[protected] _queriesLog => array(
(int) 0 => array(
[maximum depth reached]
)
)
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array(
'select * from sites' => array(
[maximum depth reached]
)
)
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'or',
(int) 3 => 'not',
(int) 4 => 'in',
(int) 5 => 'between',
(int) 6 => 'regexp',
(int) 7 => 'similar to'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null
)
[protected] _methodCacheChange => false
[protected] _descriptions => array()
[protected] _sources => null
[protected] _transactionStarted => false
}
$res = array(
(int) 0 => array(
'sites' => array(
'id' => '1',
'sites_code' => 'NEWS',
'reserves_no' => '39999',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
),
(int) 1 => array(
'sites' => array(
'id' => '2',
'sites_code' => 'COMPANY',
'reserves_no' => '1003',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
)
)
$v = array(
'sites' => array(
'id' => '2',
'sites_code' => 'COMPANY',
'reserves_no' => '1003',
'created' => '0000-00-00 00:00:00',
'modified' => null
)
)
$site_code = 'company'
$request_uri_params = array()include - APP/Config/routes.php, line 41
Router::_loadRoutes() - CORE/Cake/Routing/Router.php, line 1272
Router::parse() - CORE/Cake/Routing/Router.php, line 597
Dispatcher::parseParams() - CORE/Cake/Routing/Dispatcher.php, line 217
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 145
[main] - APP/webroot/index.php, line 108
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/opsys/lib/Cake/Utility/Debugger.php:801) [APP/Controller/AppController.php, line 46]Code Context if(!isset($request_uri_params[1])){
//サイトコードがない場合はメンテナンスページへ遷移する
header("Location: http://".@$_SERVER['HTTP_HOST'].'/maintenance.html', true, 302);
$request_uri_params = array()
header - [internal], line ??
AppController::beforeFilter() - APP/Controller/AppController.php, line 46
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108