Product adding failed. Woocommerce error. HTTP Error 500 Internal Server Error


#1

Happens when trying to import products into Woocommerce from theprintful.com

Any idea how to fix this? =) I hope…

Thank you. Jeremiah

`

WordPress Environment

Home URL: https://lazulu.com Site URL: https://lazulu.com WC Version: 2.7.0 Log Directory Writable: :heavy_check_mark: WP Version: 4.7.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: :heavy_check_mark: WP Cron: :heavy_check_mark: Language: en_US

Server Environment

Server Info: nginx/1.10.0 PHP Version: 7.0.14-2+deb.sury.org~xenial+1 PHP Post Max Size: 100 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g

SUHOSIN Installed: – Max Upload Size: 100 MB Default Timezone is UTC: :heavy_check_mark: fsockopen/cURL: :heavy_check_mark: SoapClient: :heavy_check_mark: DOMDocument: :heavy_check_mark: GZip: :heavy_check_mark: Multibyte String: :heavy_check_mark: Remote Post: :heavy_check_mark: Remote Get: :heavy_check_mark:

Database

WC Database Version: 2.7.0 WC Database Prefix: wp_ woocommerce_sessions: :heavy_check_mark: woocommerce_api_keys: :heavy_check_mark: woocommerce_attribute_taxonomies: :heavy_check_mark: woocommerce_downloadable_product_permissions: :heavy_check_mark: woocommerce_order_items: :heavy_check_mark: woocommerce_order_itemmeta: :heavy_check_mark: woocommerce_tax_rates: :heavy_check_mark: woocommerce_tax_rate_locations: :heavy_check_mark: woocommerce_shipping_zones: :heavy_check_mark: woocommerce_shipping_zone_locations: :heavy_check_mark: woocommerce_shipping_zone_methods: :heavy_check_mark: woocommerce_payment_tokens: :heavy_check_mark: woocommerce_payment_tokenmeta: :heavy_check_mark:

Security

Secure connection (HTTPS): :heavy_check_mark: Hide errors from visitors: :heavy_check_mark:

Active Plugins (6)

Cornerstone: by Themeco – 1.3.3 Jetpack by WordPress.com: by Automattic – 4.4.2 Nginx Helper: by rtCamp – 1.9.9 Redis Object Cache: by Till Krüss – 1.3.5 WooCommerce PayPal Powered by Braintree Gateway: by WooThemes – 1.2.6 WooCommerce: by WooThemes – 2.7.0-beta-1

Settings

API Enabled: :heavy_check_mark: Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable)

WC Pages

Shop base: #6 - / Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/

Theme

Name: X – Child Theme Version: 1.0.0 Author URL: http://theme.co/ Child Theme: :heavy_check_mark: Parent Theme Name: X Parent Theme Version: 4.6.4 Parent Theme Author URL: http://theme.co/ WooCommerce Support: :heavy_check_mark:

Templates

Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

Overrides: x/woocommerce/cart/cart-empty.php x/woocommerce/cart/cross-sells.php x/woocommerce/loop/loop-end.php x/woocommerce/loop/loop-start.php x/woocommerce/loop/pagination.php x/woocommerce/notices/error.php x/woocommerce/notices/notice.php x/woocommerce/notices/success.php x/woocommerce/single-product/product-image.php x/woocommerce/single-product/product-thumbnails.php x/woocommerce/single-product/related.php x/woocommerce/single-product/tabs/tabs.php x/woocommerce/single-product/up-sells.php x/woocommerce/single-product-reviews.php

`


[14-Jan-2017 10:08:42 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 170 [14-Jan-2017 10:08:42 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 29 [14-Jan-2017 10:08:42 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 182 [14-Jan-2017 10:09:09 UTC] PHP Notice: WC_Product::get_rating_html is deprecated since version 2.7! Use wc_get_rating_html instead. in /var/www/lazulu.com/htdocs/wp-includes/functions.php on line 3828 [14-Jan-2017 10:10:03 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 170 [14-Jan-2017 10:10:03 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 29 [14-Jan-2017 10:10:03 UTC] PHP Notice: Trying to get property of non-object in /var/www/lazulu.com/htdocs/wp-content/plugins/jetpack/modules/custom-css/migrate-to-core.php on line 182 [14-Jan-2017 10:10:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267 Stack trace: #0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) #1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() #2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() #3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() #4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/lazulu.com/htdocs/wp-inclu in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php on line 267 [14-Jan-2017 10:16:47 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267 Stack trace: #0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) #1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() #2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() #3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() #4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/lazulu.com/htdocs/wp-inclu in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php on line 267 [14-Jan-2017 10:16:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267 Stack trace: #0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) #1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() #2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() #3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() #4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/lazulu.com/htdocs/wp-inclu in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php on line 267 [14-Jan-2017 10:40:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267 Stack trace: #0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) #1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() #2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() #3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() #4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/lazulu.com/htdocs/wp-inclu in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php on line 267 [14-Jan-2017 10:40:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267 Stack trace: #0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) #1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() #2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() #3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() #4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) #5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/lazulu.com/htdocs/wp-inclu in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php on line 267


0 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(372): WC_API_Products->create_product(Array) 1 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-server.php(223): WC_API_Server->dispatch() 2 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(269): WC_API_Server->serve_request() 3 /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-legacy-api.php(101): WC_Legacy_API->handle_v2_rest_api_request() 4 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(298): WC_Legacy_API->handle_rest_api_requests(Object(WP)) 5 /var/www/lazulu.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) 6" while reading response header from upstream, client: 52.52.37.39, server: lazulu.com, request: “POST /wc-api/v2/products?consumer_key=ck_acd0997ae80faqwed6bc76e8b2e9c1c64004e3d&consumer_secret=cs_d1ce4de259719ddfbcf49caechjbb9e444ad65190&_rand=2262062 HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9070”, host: “lazulu.com

2017/01/14 06:52:05 [error] 3169#3169: *24598 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variable::create() in /var/www/lazulu.com/htdocs/wp-content/plugins/woocommerce/includes/api/legacy/v2/class-wc-api-products.php:267


#2

It seems you are missing some requirement to your plugins and/or theme.

This is not an EasyEngine issue; instead, it is very specific, and unless someone had the exact same problem in past, you probably won’t get a straight answer to your question. :frowning:


#3