• Resolved atlantafawkes

    (@atlantafawkes)


    I am having trouble with my products. It appears that not all images are being uploaded to my store. Currently only the initial feature image is being uploaded, but it is not associated to the product. I don’t see any errors in any logs. Any help would be greatly appreciated.

    ##### Printful Checklist #####
    * Connection to Printful API => OK
    * Printful API key is set => OK
    * WordPress Permalinks => OK
    * WordPress version => OK
    * WooCommerce Webhooks => OK
    * WooCommerce API keys are set => OK
    * WooCommerce authentication URL access=> OK
    * WordPress remote requests => OK
    * WordPress Site URL => OK
    * Recent store sync errors => OK
    * Write permissions => OK
    * PHP memory limit => OK
    * PHP script time limit => OK

    ##### Printful Last Sync’s #####

    ##### Environment #####
    * home_url => https://hooligantees.com
    * site_url => https://hooligantees.com
    * version => 4.8.0
    * log_directory => /home/site/wwwroot/wp-content/uploads/wc-logs/
    * wp_version => 5.6
    * language => en_US
    * server_info => nginx/1.14.0
    * php_version => 7.2.13
    * curl_version => 7.61.1, LibreSSL/2.0.0
    * mysql_version => 5.7.29
    * mysql_version_string => 5.7.29-log
    * default_timezone => UTC

    ##### Database #####
    * wc_database_version => 4.8.0
    * database_prefix => wp_
    * maxmind_geoip_database =>

    ##### Active Plugins #####
    * Query Monitor (3.6.5)
    * WP Data Access (4.0.1)
    * Akismet Anti-Spam (4.1.7)
    * Clever Addons for Elementor (2.0.14)
    * Clever Addons Pro for Elementor (1.2.5)
    * Clever Addons (1.0.2)
    * Clever Portfolio (1.0.3)
    * Clever Swatches (2.2.3)
    * Clever WhatsApp Chat (1.0.0)
    * Clever WooCommerce Product Filter (1.0.3)
    * Cloudflare (3.8.7)
    * Contact Form 7 (5.3.2)
    * Elementor (3.0.15)
    * Facebook for WooCommerce (2.2.0)
    * Facebook Messenger Live Chat for WordPress (1.0.0)
    * Google Ads & Marketing by Kliken (1.0.6)
    * Mailchimp for WooCommerce (2.5.0)
    * MC4WP: Mailchimp for WordPress (4.8.1)
    * Meta Box (5.3.5)
    * Printful Integration for WooCommerce (2.1.18)
    * W3 Total Cache (2.0.1)
    * WooCommerce Payments (1.8.0)
    * WooCommerce Shipping & Tax (1.25.4)
    * WooCommerce (4.8.0)
    * WP-Sweep (1.1.3)
    * WP User Avatar (2.2.8)

    ##### Theme #####
    * name => Anon
    * version => 1.7.3
    * author_url => https://www.zootemplate.com/contact-us
    * parent_name =>
    * parent_version =>
    * parent_version_latest =>
    * parent_author_url =>

    ##### WooCommerce settings #####
    * currency => USD
    * currency_symbol => $
    * currency_position => left
    * thousand_separator => ,
    * decimal_separator => .
    * woocommerce_com_connected => no

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support alicezin

    (@alicezin)

    Hey @atlantafawkes! The most common issue for this usually is the customer’s server. Kindly reach out to our Customer Support via [email protected], and our team will have a look. If we don’t find any product issues from our side, it’s best to contact your hosting for further information on resolving this

    Thread Starter atlantafawkes

    (@atlantafawkes)

    Thanks @alicezin – I will email support with as much information as possible. I will post any updates / resolutions here for future printful integration generations of folks like me. I am a software developer so I will be happy to work with the team in diagnostics. I am in full control with hosting / deployment so I will be able to get into logs / code if need be.

    Plugin Support alicezin

    (@alicezin)

    @atlantafawkes thanks for letting me know—it’s great to hear that you have full control on your side. Keep us updated on the go.

    Thread Starter atlantafawkes

    (@atlantafawkes)

    For future people – this was an issue with W3 total cache (W3TC) database caching. Printful relies on the woocommerce rest API to manage products in WordPress and the database cache causes issues with queries/data used in the API. I needed to configure W3TC to not cache queries within the scope of the woocommerce rest API.

    Short answer – you need to add the following in the “Never cache the following pages:” section in the database cache settings in W3TC (v1 and v2 are optional I think, I just put them in for good measure):
    /wc/v3/*
    /wc/v2/*
    /wc/v1/*

    Detailed answer – I noticed that Printful was uploading the first image and product information, but the featured image was not set and would stop progress from there. After speaking with support, I was notified they were receiving the following error from the woocommerce rest API: #3270 is an invalid image ID. and woocommerce_product_invalid_image_id

    This gave me some clue. It appeared the API thought the uploaded image did not exist. I assumed this was occurring in the code to set the featured image – so I did some digging. It appeared other people were having this problem. My first thought was that the data was stale (or .. a race condition in the code) so I tried the first solution I dug up involving the error code and my caching plugin (W3TC): https://www.ads-software.com/support/topic/w3-total-cache-restapi-problem/page/2/

    I was happy to find it fixed the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Product Images not all syncing’ is closed to new replies.