Notice (8) : Undefined offset: 0 [APP/Plugin/Football/Controller/LeaguesController.php , line 1150 ]Code Context file_put_contents ( $filePath , $jsonData );
} else { // CUP
$standings = $data [ 'response' ][ 0 ][ 'league' ][ 'standings' ];
$slug = 'super-cup-germany'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 63,
'name' => 'Super Cup - Đức',
'slug' => 'super-cup-germany',
'vietnamese_name' => 'Super Cup - Đức',
'seo_title' => 'Tin tức giải đấu Super Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2512a6bfa.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá Super Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải Super Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '529',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 0,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 0,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 1,
'season' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'prediction' => array(
[maximum depth reached]
),
'sport_json' => array(
[maximum depth reached]
)
)
),
'total_count' => (int) 1,
'total_pages' => (int) 1,
'prev_page' => '',
'current_page' => (int) 1,
'next_page' => ''
)
$standings = ''
$season = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"529","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '529',
'season' => '2023'
),
'errors' => array(),
'results' => (int) 0,
'paging' => array(
'current' => (int) 1,
'total' => (int) 1
),
'response' => array()
)
$json = array()
$http_response_header = array(
(int) 0 => 'HTTP/1.1 200 OK',
(int) 1 => 'Date: Thu, 21 Nov 2024 09:29:32 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=4pmro4lquosvvrf8tnr1udajcv; expires=Thu, 21-Nov-2024 13:29:32 GMT; Max-Age=14400; path=/; secure; HttpOnly',
(int) 6 => 'X-Frame-Options: SAMEORIGIN',
(int) 7 => 'X-XSS-Protection: 1; mode=block',
(int) 8 => 'X-Content-Type-Options: nosniff',
(int) 9 => 'CF-Cache-Status: DYNAMIC',
(int) 10 => 'Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=Nplz8zsprc%2FbCmzNgFc%2Flxf%2BKWjLQ8%2FVWUFLTiJnvW7MoE%2FTgZ8HvDiRhKpjh6NLSx5eGqxn1z%2FQLl13dFVl%2ByFK2hGAy9dbww6fkb0BkypY%2FZ9To3x51LjdA5vSB6%2B%2FPKPQ%2FnuQrqXyPUb2L8804Q%3D%3D"}],"group":"cf-nel","max_age":604800}',
(int) 11 => 'NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
(int) 12 => 'Strict-Transport-Security: max-age=15552000; includeSubDomains; preload',
(int) 13 => 'Server: cloudflare',
(int) 14 => 'CF-RAY: 8e5fa7e77c634a35-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=2356&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3015&recv_bytes=839&delivery_rate=1788589&cwnd=138&unsent_bytes=0&cid=da6e67721abbf7ae&ts=78&x=0"'
) LeaguesController::ranking() - APP/Plugin/Football/Controller/LeaguesController.php, line 1150
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 491
CroogoAppController::invokeAction() - APP/Vendor/croogo/croogo/Croogo/Controller/CroogoAppController.php, line 220
Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 105
[main] - APP/index.php, line 18 Warning (2) : Invalid argument supplied for foreach() [APP/Plugin/Football/Controller/LeaguesController.php , line 1151 ]Code Context } else { // CUP
$standings = $data [ 'response' ][ 0 ][ 'league' ][ 'standings' ];
foreach ( $standings as $key_ranking => $standing ) {
$slug = 'super-cup-germany'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 63,
'name' => 'Super Cup - Đức',
'slug' => 'super-cup-germany',
'vietnamese_name' => 'Super Cup - Đức',
'seo_title' => 'Tin tức giải đấu Super Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2512a6bfa.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá Super Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải Super Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '529',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 0,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 0,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 1,
'season' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'prediction' => array(
[maximum depth reached]
),
'sport_json' => array(
[maximum depth reached]
)
)
),
'total_count' => (int) 1,
'total_pages' => (int) 1,
'prev_page' => '',
'current_page' => (int) 1,
'next_page' => ''
)
$standings = null
$season = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"529","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '529',
'season' => '2023'
),
'errors' => array(),
'results' => (int) 0,
'paging' => array(
'current' => (int) 1,
'total' => (int) 1
),
'response' => array()
)
$json = array()
$http_response_header = array(
(int) 0 => 'HTTP/1.1 200 OK',
(int) 1 => 'Date: Thu, 21 Nov 2024 09:29:32 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=4pmro4lquosvvrf8tnr1udajcv; expires=Thu, 21-Nov-2024 13:29:32 GMT; Max-Age=14400; path=/; secure; HttpOnly',
(int) 6 => 'X-Frame-Options: SAMEORIGIN',
(int) 7 => 'X-XSS-Protection: 1; mode=block',
(int) 8 => 'X-Content-Type-Options: nosniff',
(int) 9 => 'CF-Cache-Status: DYNAMIC',
(int) 10 => 'Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=Nplz8zsprc%2FbCmzNgFc%2Flxf%2BKWjLQ8%2FVWUFLTiJnvW7MoE%2FTgZ8HvDiRhKpjh6NLSx5eGqxn1z%2FQLl13dFVl%2ByFK2hGAy9dbww6fkb0BkypY%2FZ9To3x51LjdA5vSB6%2B%2FPKPQ%2FnuQrqXyPUb2L8804Q%3D%3D"}],"group":"cf-nel","max_age":604800}',
(int) 11 => 'NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
(int) 12 => 'Strict-Transport-Security: max-age=15552000; includeSubDomains; preload',
(int) 13 => 'Server: cloudflare',
(int) 14 => 'CF-RAY: 8e5fa7e77c634a35-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=2356&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3015&recv_bytes=839&delivery_rate=1788589&cwnd=138&unsent_bytes=0&cid=da6e67721abbf7ae&ts=78&x=0"'
) LeaguesController::ranking() - APP/Plugin/Football/Controller/LeaguesController.php, line 1151
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 491
CroogoAppController::invokeAction() - APP/Vendor/croogo/croogo/Croogo/Controller/CroogoAppController.php, line 220
Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 105
[main] - APP/index.php, line 18
Bảng xếp hạng giải Super Cup - Đức