Notice (8): Undefined index: products [APP/Controller/CustomersController.php, line 1131]Code Context $product = json_decode($rlt['response'], true);
$response['product'] = $product['products'][0]['title'];
$shop = array(
'Customer' => array(
'id' => '11421',
'charge_id' => '27136163996',
'charge_id2' => null,
'shop_name' => 'a9f69f-3c.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'nyt',
'customer_name' => null,
'name' => 'venom',
'shop_created' => '2024-06-20T21:14:54+01:00',
'money_format' => '{{amount}} dh',
'plan_display_name' => 'Basic Shopify',
'email' => '[email protected]',
'phone' => null,
'country' => 'MA',
'currency' => 'MAD',
'language' => 'fra',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-06-21 17:26:03'
)
)
$product_id = '8164419993756'
$data = array()
$access_token = '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'
$shop_name = 'a9f69f-3c.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8164419993756'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 402
',
'date' => 'Fri, 22 Nov 2024 21',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '155',
'x-sorting-hat-shopid' => '64114983068',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '64114983068',
'x-shardid' => '155',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '502307946652',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'server-timing' => 'cfRequestDuration;dur=237.000227',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6beb0eeb0bf154-CDG'
),
'response' => '{"errors":"Unavailable Shop"}'
)
$product = array(
'errors' => 'Unavailable Shop'
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1131
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
Notice (8): Undefined index: products [APP/Controller/CustomersController.php, line 1132]Code Context
$response['product'] = $product['products'][0]['title'];
$response['product_id'] = $product['products'][0]['id'];
$shop = array(
'Customer' => array(
'id' => '11421',
'charge_id' => '27136163996',
'charge_id2' => null,
'shop_name' => 'a9f69f-3c.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'nyt',
'customer_name' => null,
'name' => 'venom',
'shop_created' => '2024-06-20T21:14:54+01:00',
'money_format' => '{{amount}} dh',
'plan_display_name' => 'Basic Shopify',
'email' => '[email protected]',
'phone' => null,
'country' => 'MA',
'currency' => 'MAD',
'language' => 'fra',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-06-21 17:26:03'
)
)
$product_id = '8164419993756'
$data = array()
$access_token = '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'
$shop_name = 'a9f69f-3c.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8164419993756'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 402
',
'date' => 'Fri, 22 Nov 2024 21',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '155',
'x-sorting-hat-shopid' => '64114983068',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '64114983068',
'x-shardid' => '155',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '502307946652',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'server-timing' => 'cfRequestDuration;dur=237.000227',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6beb0eeb0bf154-CDG'
),
'response' => '{"errors":"Unavailable Shop"}'
)
$product = array(
'errors' => 'Unavailable Shop'
)
$response = array(
'product' => null
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1132
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
Notice (8): Undefined index: products [APP/Controller/CustomersController.php, line 1133]Code Context $response['product'] = $product['products'][0]['title'];
$response['product_id'] = $product['products'][0]['id'];
$response['price'] = $product['products'][0]['variants'][0]['price'];
$shop = array(
'Customer' => array(
'id' => '11421',
'charge_id' => '27136163996',
'charge_id2' => null,
'shop_name' => 'a9f69f-3c.myshopify.com',
'token' => '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',
'token2' => null,
'discount' => 'nyt',
'customer_name' => null,
'name' => 'venom',
'shop_created' => '2024-06-20T21:14:54+01:00',
'money_format' => '{{amount}} dh',
'plan_display_name' => 'Basic Shopify',
'email' => '[email protected]',
'phone' => null,
'country' => 'MA',
'currency' => 'MAD',
'language' => 'fra',
'countrie_id' => null,
'contacted' => null,
'checked' => null,
'created' => '2024-06-21 17:26:03'
)
)
$product_id = '8164419993756'
$data = array()
$access_token = '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'
$shop_name = 'a9f69f-3c.myshopify.com'
$header = array(
(int) 0 => 'Authorization: Basic Og=='
)
$product_end_points = '/admin/api/2023-10/products.json?ids=8164419993756'
$rlt = array(
'headers' => array(
'status' => 'HTTP/2 402
',
'date' => 'Fri, 22 Nov 2024 21',
'content-type' => 'application/json; charset=utf-8',
'x-sorting-hat-podid' => '155',
'x-sorting-hat-shopid' => '64114983068',
'referrer-policy' => 'origin-when-cross-origin',
'x-frame-options' => 'DENY',
'x-shopid' => '64114983068',
'x-shardid' => '155',
'x-stats-userid' => '',
'x-stats-apiclientid' => '4507285',
'x-stats-apipermissionid' => '502307946652',
'x-shopify-api-version' => '2024-01',
'x-shopify-api-version-warning' => 'https',
'http_x_shopify_shop_api_call_limit' => '1/40',
'x-shopify-shop-api-call-limit' => '1/40',
'strict-transport-security' => 'max-age=7889238',
'x-request-id' => '46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'server-timing' => 'cfRequestDuration;dur=237.000227',
'content-security-policy' => 'default-src 'self' data',
'x-content-type-options' => 'nosniff',
'x-download-options' => 'noopen',
'x-permitted-cross-domain-policies' => 'none',
'x-xss-protection' => '1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=46127284-75be-4a34-9b40-5b0536fa2e4f-1732309951',
'x-dc' => 'gcp-europe-west3,gcp-us-central1,gcp-us-central1',
'alt-svc' => 'h3="',
'cf-cache-status' => 'DYNAMIC',
'report-to' => '{"endpoints"',
'nel' => '{"success_fraction"',
'server' => 'cloudflare',
'cf-ray' => '8e6beb0eeb0bf154-CDG'
),
'response' => '{"errors":"Unavailable Shop"}'
)
$product = array(
'errors' => 'Unavailable Shop'
)
$response = array(
'product' => null,
'product_id' => null
)
CustomersController::getProduct() - APP/Controller/CustomersController.php, line 1133
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
{"product":null,"product_id":null,"price":null}