Skip to content

Undefined index: ApiUrl #151

Closed
Closed
@bruceviljoen

Description

@bruceviljoen

I've updated and double checked the my settings in ShopifySDK.php

$config = array(
'ShopUrl' => 'yourshop.myshopify.com',
'ApiKey' => 'YOUR-PRIVATE-API-KEY',
'Password' => 'YOUR-PRIVATE-API-PASSWORD',
);

I can't get rid of this error:

Notice: Undefined index: ApiUrl in C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\ShopifyResource.php on line 145

Fatal error: Uncaught PHPShopify\Exception\CurlException: 6 : Could not resolve host: products.json in C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\CurlRequest.php:173 Stack trace: #0 C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\CurlRequest.php(84): PHPShopify\CurlRequest::processRequest(Resource id #1) #1 C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\HttpRequestJson.php(71): PHPShopify\CurlRequest::get('products.json', Array) #2 C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\ShopifyResource.php(337): PHPShopify\HttpRequestJson::get('products.json', Array) #3 C:\inetpub\wwwroot\Shopify\php-shopify-master\index.php(8): PHPShopify\ShopifyResource->get() #4 {main} thrown in C:\inetpub\wwwroot\Shopify\php-shopify-master\lib\CurlRequest.php on line 173

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions