phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Error 500 #210

Open dylan-uurainen opened 3 years ago

dylan-uurainen commented 3 years ago

I keep getting Error 500 with a basic setup. Using a private and and ive enabled all permissions to make sure it wasnt that.

`require_once 'vendor/autoload.php';

$config = array( 'ShopUrl' => 'XXX', 'ApiKey' => 'XXX', 'Password' => 'XXX' );

$shopify = new PHPShopify\ShopifySDK($config);

$productCount = $shopify->Product->count();

if ($productCount) { echo $productCount; }`

It is a custom server which may be the issue, but its a client requirement. I looked for server requirements for php-shopify and only found that CURL has to be enabled. To see servers php settings, see here: http://inventory.mikedeans.com

shahnCM commented 3 years ago

Try to provide Error log