-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Hi,
I have a fatal error no matter what endpoint I use.
Here is my php code where I make the request:
require __DIR__ . '/vendor/autoload.php';
use Automattic\WooCommerce\Client;
$woocommerce = new Client(
'http://newsite.evp.fr',
'ck_***************',
'cs_***************',
[
'wp_api' => true,
'version' => 'wc/v1',
]
);
$product = $woocommerce->get("products/1698");
And here are my server logs:
[Tue Feb 28 10:42:40.686137 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686191 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686199 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686204 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686209 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686214 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686219 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686224 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686229 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686234 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686239 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686244 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686249 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686254 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
[Tue Feb 28 10:42:40.686259 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: position in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 431
[Tue Feb 28 10:42:40.686264 2017] [fcgid:warn] [pid 28285] mod_fcgid: stderr: PHP Notice: Undefined index: is_variation in /home/evp/public_html/wp-content/plugins/woocommerce/includes/api/class-wc-rest-products-controller.php on line 433
I'm totally lost here, don't know what to do to solve these errors...
Does any one had this issue before ?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels