Hi there, having a bit of a weird issue that I can’t seem to figure out today.
When I go to create a new product in printful, and sync it with my woo commerce, the REST API call is triggering patreon, which is then throwing an error back at printful.
2025/02/18 00:16:10 [error] 2762823#2762823:
*11584 FastCGI sent in stderr:
“PHP message: PHP Warning: Attempt to read property “ID” on null in [REDACTED]/patreon-connect/classes/patreon_wordpress.php on line 1609
PHP message: PHP Warning: Attempt to read property “ID” on null [REDACTED]/patreon-connect/classes/patreon_wordpress.php on line 1612”
while reading response header from upstream, client: [REDACTED IP ADDRESS] server: [SERVER], request: “POST /wp-json/wc/v2/products?consumer_key=[VALIDCONSUMERKEY]&consumer_secret=[VALIDCONSUMERSECRET] HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.1-fpm.sock:”, host: “[HOST]”
I’m reading that correctly, right? Essentially, Printful is sending a valid API request to our system that should be processed by WooCommerce (handling tasks like adding or removing products). However, the Patreon add-on is intercepting these API calls. Instead of letting WooCommerce process the request, the add-on attempts to handle it, fails due to unexpected input (such as a missing post object), and returns an error. As a result, Printful receives an invalid response.