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 = '32.00000000'
$long = '128.35000000'
$elevation = '0.0000000'
$naisou_flg = '0'
$cache_name = 'WeatherApi_5044'
$baseURL = 'http://10.3.0.61/api'
$url = 'http://10.3.0.61/api/forecast/v3?lat=32.00000000&long=128.35000000&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:30:53 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' => '5044',
'lattitude' => '32.00000000',
'longitude' => '128.35000000',
'course_name' => '女島',
'course_yomi' => 'めしま',
'course_kana' => 'メシマ',
'course_alphabet' => '',
'pref_id' => '42',
'city_id' => '422118',
'post_code' => '853-0026',
'address' => '長崎県五島市浜町',
'tel' => '-',
'url' => '-',
'station' => '-',
'parking' => '0',
'toilet' => '0',
'shop' => '0',
'info' => '-',
'field_id' => '1',
'category' => ':1:',
'point_id' => '300786',
'yohou_point_id' => '300786',
'week_point_id' => '8440',
'tide_id' => '100420',
'wave_wind_id' => '216529',
'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' => '