Code Context $checkout_datas = array();
foreach ($json_datas["data"]["nodes"] as $json_data) {
$cart_datas = array(
(int) 47273916530839 => array(
'variant_id' => '47273916530839',
'product_id' => '9498555875479',
'quantity' => '2470'
),
(int) 45688353390743 => array(
'variant_id' => '45688353390743',
'product_id' => '9132284215447',
'quantity' => '2493'
),
(int) 39575964156055 => array(
'variant_id' => '39575964156055',
'product_id' => '6628087103639',
'quantity' => '2439'
)
)
$variant_ids = array(
(int) 0 => (int) 47273916530839,
(int) 1 => (int) 45688353390743,
(int) 2 => (int) 39575964156055
)
$gids = array(
(int) 0 => 'gid://shopify/ProductVariant/47273916530839',
(int) 1 => 'gid://shopify/ProductVariant/45688353390743',
(int) 2 => 'gid://shopify/ProductVariant/39575964156055'
)
$url = 'https://lavie-official-jp.myshopify.com/admin/api/2026-07/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":["gid:\/\/shopify\/ProductVariant\/47273916530839","gid:\/\/shopify\/ProductVariant\/45688353390743","gid:\/\/shopify\/ProductVariant\/39575964156055"]}}'
$ch = resource
$res = '
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
'
$json_datas = null
$item_datas = array()
$checkout_datas = array()CartController::index() - APP/Controller/CartController.php, line 70
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