Warning (2): Trying to access array offset on value of type null [APP/Controller/AuthController.php, line 212]Code Context if ($tw_token !== '' || $tw_token !== null) {
//ログイン中
$connection = new TwitterOAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, $tw_token['oauth_token'], $tw_token['oauth_token_secret']);
AuthController::twitter() - APP/Controller/AuthController.php, line 212
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 504
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 121
Warning (2): Trying to access array offset on value of type null [APP/Controller/AuthController.php, line 212]Code Context if ($tw_token !== '' || $tw_token !== null) {
//ログイン中
$connection = new TwitterOAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, $tw_token['oauth_token'], $tw_token['oauth_token_secret']);
AuthController::twitter() - APP/Controller/AuthController.php, line 212
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 504
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 121
Warning (2): Attempt to read property "id" on null [APP/Controller/AuthController.php, line 216]Code Context
//データを取得できたらIDで会員を検索する
$result = $this->searchByTwitterId($data->id);
AuthController::twitter() - APP/Controller/AuthController.php, line 216
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 504
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 121
Warning (2): Attempt to read property "id" on null [APP/Controller/AuthController.php, line 224]Code Context //Twitterのデータをセッションに保存
$tw_data = [
'id' => $data->id,
AuthController::twitter() - APP/Controller/AuthController.php, line 224
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 504
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 121
Warning (2): Attempt to read property "name" on null [APP/Controller/AuthController.php, line 225]Code Context $tw_data = [
'id' => $data->id,
'name' => $data->name,
AuthController::twitter() - APP/Controller/AuthController.php, line 225
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 504
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 121