array_keys - [internal], line ??
CartController::index() - APP/Controller/CartController.php, line 8
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 134
Warning (2): array_map() [<a href='http://php.net/function.array-map'>function.array-map</a>]: Expected parameter 2 to be an array, null given [APP/Controller/CartController.php, line 12]
array_map - [internal], line ??
CartController::index() - APP/Controller/CartController.php, line 12
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 134
Warning (2): Invalid argument supplied for foreach() [APP/Controller/CartController.php, line 65]
$checkout_datas = array();foreach ($json_datas["data"]["nodes"] as $json_data) {
$cart_datas = null
$variant_ids = null
$gids = null
$url = 'https://lavie-official-jp.myshopify.com/admin/api/2026-04/graphql.json'
$gql = '
query ($gids: [ID!]!) {
nodes(ids: $gids) {
... on ProductVariant {
id
title
availableForSale
price
image {
url
altText
width
height
}
product {
id
title
handle
status
publishedAt
featuredImage { url altText width height }
}
}
}
}'
$payload = '{"query":"\nquery ($gids: [ID!]!) {\n nodes(ids: $gids) {\n ... on ProductVariant {\n id\n title\n availableForSale\n price\n image {\n url\n altText\n width\n height\n }\n product {\n id\n title\n handle\n\t\t\t\tstatus\n\t\t\t\tpublishedAt\n\t\t\t\tfeaturedImage { url altText width height }\n\t\t\t}\n\t\t}\n }\n}","variables":{"gids":null}}'
$ch = resource
$res = '{"errors":[{"message":"Variable $gids of type [ID!]! was provided invalid value","locations":[{"line":2,"column":8}],"extensions":{"code":"INVALID_VARIABLE","value":null,"problems":[{"path":[],"explanation":"Expected value to not be null"}]}}]}'
$json_datas = array(
'errors' => array(
(int) 0 => array(
'message' => 'Variable $gids of type [ID!]! was provided invalid value',
'locations' => array(
[maximum depth reached]
),
'extensions' => array(
[maximum depth reached]
)
)
)
)
$item_datas = array()
$checkout_datas = array()
CartController::index() - APP/Controller/CartController.php, line 65
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 134