Warning (2): Creating default object from empty value [APP/Controller/Component/WeatherapiComponent.php, line 405]Code Context $data = json_decode($str);
// expire_date を追加
$data->expire_date = $this->getDuration();
$lat = '33.05000000'
$long = '129.75000000'
$elevation = '0.0000000'
$naisou_flg = '0'
$cache_name = 'WeatherApi_4601'
$baseURL = 'http://10.3.0.61/api'
$url = 'http://10.3.0.61/api/forecast/v3?lat=33.05000000&long=129.75000000&elevation=0.0000000&wave=true'
$data = null
$options = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false
)
)
$http_response_header = array(
(int) 0 => 'HTTP/1.1 500 Internal Server Error',
(int) 1 => 'Server: nginx/1.15.10',
(int) 2 => 'Date: Tue, 15 Jul 2025 19:23:01 GMT',
(int) 3 => 'Content-Type: application/json',
(int) 4 => 'Content-Length: 36',
(int) 5 => 'Connection: close'
)
$str = false
WeatherapiComponent::getWeatherAPI() - APP/Controller/Component/WeatherapiComponent.php, line 405
GolfWeatherController::getOneOrThreeHoursData() - APP/Controller/GolfweatherController.php, line 572
GolfWeatherController::detail() - APP/Controller/GolfweatherController.php, line 195
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 98
Warning (2): Invalid argument supplied for foreach() [APP/Controller/GolfweatherController.php, line 583]Code Context $lastHour = null;
$flg = false;
foreach( $weathers as $w ) {
$course_data = array(
(int) 0 => array(
'Course' => array(
'course_id' => '4601',
'lattitude' => '33.05000000',
'longitude' => '129.75000000',
'course_name' => '伊ノ浦',
'course_yomi' => 'いのうら',
'course_kana' => 'イノウラ',
'course_alphabet' => 'Ioshima',
'pref_id' => '42',
'city_id' => '423220',
'post_code' => '851-3421',
'address' => '長崎県西海市西彼町伊ノ浦郷',
'tel' => '-',
'url' => '-',
'station' => '-',
'parking' => '0',
'toilet' => '0',
'shop' => '0',
'info' => '-',
'field_id' => '1',
'category' => ':1:',
'point_id' => '300748',
'yohou_point_id' => '300748',
'week_point_id' => '8410',
'tide_id' => '100440',
'wave_wind_id' => '203936',
'weather_warning_id' => '8400',
'sea_warning_id' => '5100',
'windmap_zoom' => '16',
'elevation' => '0.0000000',
'naisou_flg' => '0',
'naisou_point' => null,
'display_flg' => '1',
'delete_flg' => '0',
'geometry' => '