• Resolved aqdezigns

    (@aqdezigns)


    Hello,

    Product Images are not being pulled from WooCommerce. On the MailChimp dashboard, the products show broken images. When setting up emails with recommended products, the URL for product images are relative paths (“https:///wp-content/uploads/2019/etc…”) that exclude the domain name instead of absolute paths.

    What could be the issue? I’ve tried forcing a resync, as well as disconnecting and reconnecting to the MailChimp account.

    Any help or suggestions would be super useful!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Same issue. Currently forcing a resync as all images are broken.

    Thread Starter aqdezigns

    (@aqdezigns)

    @stevennorth Tried disconnecting and reconnecting as well as forcing a resync and nothing.

    Did your force resync fix the issue?

    Plugin Support khungate

    (@khungate)

    @aqdezigns thanks so much for reaching out about your issue. We’ll take things from here and do some testing on our end and report back as soon as we can.

    Please note, the best way to reach us is over at the GitHub plugin page. From there, you can receive direct responses from the development team, log new issues, download the latest version and track existing support tickets.

    Thread Starter aqdezigns

    (@aqdezigns)

    @khungate thank you so much for responding! Sorry about, will keep that in mind moving forward. Anxious to hear back from your testing, thanks again.

    @aqdezigns no it didn’t although I’m looking at Github as per @khungate response.

    Plugin Support khungate

    (@khungate)

    @aqdezigns @stevennorth thank you for your patience. We’ve tested on multiple dev stores and unfortunately, we’re unable to reproduce the problem you all are experiencing. Steps to replicate were fairly simple, but let us know if we’re missing anything:

    1. Add Mailchimp for WooCommerce plugin and perform a sync
    2. Verify images come through on Mailchimp’s campaign builder, content studio and recommended products
    3. Execute a Force Resync inside the plugin
    4. Check again to ensure images are available for use in the campaign builder, content studio and recommended products

    Given our testing results, I would suggest testing on your end with a new Audience and perform a fresh install of the plugin and follow the same steps outlined in our testing. If that still doesn’t fix the issue, we may want to check for a plugin conflict somewhere. Happy to keep this thread open and work through the problem until it’s resolved.

    Thread Starter aqdezigns

    (@aqdezigns)

    @khungate Thank you so much for looking into this—much appreciated!

    I noticed the product image urls on MailChimp are relative (“https:///wp-content/uploads/ etc…”) instead of absolute. The domain name is missing.

    Any ideas?

    Plugin Support khungate

    (@khungate)

    @aqdezigns that is strange. Do you have any other plugins running that could impact your site’s photos? Also, did you try a fresh uninstall and reinstall as outlined?

    Thread Starter aqdezigns

    (@aqdezigns)

    @khungate I did do a fresh reinstall of the plugin. I disabled a thumbnail regeneration but nothing still.

    Thread Starter aqdezigns

    (@aqdezigns)

    @khungate In debug mode of the site, the following PHP notices/undefined indexes showed up referencing the functions.php file:

    –1536×1536
    –2048×2048
    –woocommerce_thumbnail
    –woocommerce_single
    –woocommerce_gallery_thumbnail

    Wondering if this might have anything to do with it or if there is an “easy” fix?

    Plugin Author ryanhungate

    (@ryanhungate)

    @aqdezigns can you please check your wp-includes/default-constants.php file and see if your site has something different than this:

    define( ‘WP_CONTENT_URL’, get_option(‘siteurl’) . ‘/wp-content’);

    I think this may have something to do with your relative path issue. Can you please check this and let us know? We’ll look out for your reply here.

    Thread Starter aqdezigns

    (@aqdezigns)

    @ryanhungate This is what I’m seeing

    if ( ! defined( 'WP_CONTENT_DIR' ) ) {
    		define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
    }

    Then further down….

    function wp_plugin_directory_constants() {
    	if ( ! defined( 'WP_CONTENT_URL' ) ) {
    		define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); // full url - WP_CONTENT_DIR is defined further up
    	}

    Those were the only two things containing WP_CONTENT_URL similar to what you provided in your reply.

    Plugin Author ryanhungate

    (@ryanhungate)

    @aqdezigns yeah this is pretty strange. I think you might need to look into 2 areas. We have a function called getProductImage inside the transform-products.php class which we might need to adjust for folks in your situation. The following 2 situations describe how we’re pulling the product image.

    The first one is when the function wp_get_attachment_image is called. We’re pulling the initial info from get_post_meta and there is an item in that array called _thumbnail_id. We then use the setting from your product image settings of the plugin, the default is using the medium image. If that is not returning an absolute URL, I would wonder “why” first, but that is something we can also try to do some checks against to prevent it in the future releases.

    The second way is by calling the function get_the_post_thumbnail_url – that’s the same process as above, where we’re asking for the size specified in the settings area of our plugin.

    That being said, we’ve seen this type of problem happen before, not common, but a handful. We will be able to add this to the next dev cycle and ping you when this has been updated. This is something we could add some better checks to assure it’s an absolute URL on our end too.

    Thread Starter aqdezigns

    (@aqdezigns)

    @ryanhungate Thank you so much for this, really appreciate it. Looking forward to that update :)!

    Plugin Support khungate

    (@khungate)

    Hi @aqdezigns @stevennorth, we just wanted to let you know that this issue has been patched in our latest release (v2.3.3). Please upgrade the plugin when you get a moment and execute a Force Resync from the plugin’s overview page; you can also perform a fresh install as well.

    We appreciate you all bringing this issue to our attention, please let us know if there’s anything else we can do. Also, if the plugin is working well for your business, please consider leaving us a positive review!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Product Images Missing’ is closed to new replies.