phpclassic / php-shopify

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

Error 500 on IIS - Not on apache (MAMP) #304

Closed benstromspa closed 1 year ago

benstromspa commented 1 year ago

Hi friends I'm not sleeping for 4 days about (I suppose to be) a stupid problem... I wrote and test my code on my development computer with MAMP, everything works fine, but on the production platform on IIS I have a 500 error each time I call a fonction. I installed the SDK through composer on booth platform.

My code :

require_once '../fct/fct.php';
require_once '../vendor/autoload.php';

PHPShopify\ShopifySDK:: config ($config_API_Shopify_test);

//FUNCTION OK
$shopify = new PHPShopify\ShopifySDK;
print_r($shopify); // ---> List of the object

//FUNCTION NOK
$response = $shopify->Product->get();
print_r($response); // ---> ERROR 500

Is someone had the same issue ???