Skip to content

ErrorException : Undefined index: ApiUrl #105

Open
@alpesh-savitriya

Description

@alpesh-savitriya

Hi when i find customer like
$customer = $shopify->Customer->search("email:"any email");
than it will give me exception like

ErrorException : Undefined index: ApiUrl
at /home/ubuntu/sites/staging.api.brewchime.com/vendor/phpclassic/php-shopify/lib/ShopifyResource.php:122
118| $this->id = $id;
119|
120| $config = ShopifySDK::$config;
121|

122| $this->resourceUrl = ($parentResourceUrl ? $parentResourceUrl . '/' : $config['ApiUrl']) . $this->getResourcePath() . ($this->id ? '/' . $this->id : '');
123|
124| if (isset($config['AccessToken'])) {
125| $this->httpHeaders['X-Shopify-Access-Token'] = $config['AccessToken'];
126| } elseif (!isset($config['ApiKey']) || !isset($config['Password'])) {

Exception trace:

1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Undefined index: ApiUrl", "/home/ubuntu/sites/staging.api.brewchime.com/vendor/phpclassic/php-shopify/lib/ShopifyResource.php", [""])
/home/ubuntu/sites/staging.api.brewchime.com/vendor/phpclassic/php-shopify/lib/ShopifyResource.php:122

2 PHPShopify\ShopifyResource::__construct()
/home/ubuntu/sites/staging.api.brewchime.com/vendor/phpclassic/php-shopify/lib/ShopifySDK.php:289


So how can i fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions