• Resolved Walter Lopez

    (@lopwalj)


    I am experiencing an issue where the XML file is empty. I see this issue reported here and here.

    Narrowed it down to the get_feed_products method in the FeedGenerator class. The problem is that the wc_get_products function returns 0 products (an empty array), caused because the parent_exclude query argument is an empty array.

    WordPress 6.5.3
    WooCommerce 8.8.3
    Pinterest for WooCommerce 1.3.24

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @lopwalj,

    Thanks for reaching out.

    I’m sorry to hear you are facing issues with your XML files. Can you please share with us a screenshot of your /wp-admin part of your site?

    You will need to go to “Marketing > Pinterest” then send as a screenshot of the 3 tabs. Here’s how to make a screenshot: https://wordpress.com/support/make-a-screenshot/

    You can use a screenshot sharing software like https://snipboard.io/ and paste the link here.

    Thread Starter Walter Lopez

    (@lopwalj)

    Hello @ckadenge, thanks for looking into this.

    Catalog tab (before query args change): https://snipboard.io/iMF4QO.jpg
    Settings tab: https://snipboard.io/ZR7LcV.jpg
    Catalog tab (after query args change): https://snipboard.io/Xh6a9W.jpg

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Walter Lopez

    Thanks for your reply.

    To confirm, were you able to fix the issue by changing the query arguments of the get_feed_products method in the FeedGenerator class?

    It would be helpful if you could share a screenshot of the changes you made.
    I will try to recreate this issue on my end.

    Also, could you send me a copy of your site’s System Status Report?
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Looking forward to your response. ??

    Best regards.

    Thread Starter Walter Lopez

    (@lopwalj)

    Hello @doublezed2, thanks for your reply.

    Yes, I changed the query arguments of the?get_feed_products?method in the?FeedGenerator?class; specifically removed the parent_exclude argument which is an empty array returned by the get_excluded_products_by_parent method. You can find the screenshot of my change here: https://snipboard.io/3Cd04P.jpg.

    You can also find the System Status Report here: https://pastebin.com/sRKDrdYn

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Walter Lopez

    Thank you for your reply.

    I have reviewed your site’s SSR and noticed that there are a few plugins such as Rank Math, that might interfere with the default functionality of the Pinterest for WooCommerce plugin.

    Just to make sure could you disable other plugins and then check if the issue occurs.
    If you are not comfortable with disabling plugins on the live site, I suggest using a Staging site.

    Please let me know how it goes. ??
    Appreciate your cooperation.

    Best regards.

    Thread Starter Walter Lopez

    (@lopwalj)

    @doublezed2 thanks for your reply.

    I tested with the Rank Math plugin deactivated and the generated feed is empty.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Walter Lopez

    Thank you for your reply and for deactivating the Rank Math plugin.

    It appears the problem is caused by a conflict with some other plugin.
    So to make sure, could you disable all other plugins except WooCommerce and Pinterest for WooCommerce?

    This conflict test will allow us to pinpoint the issue and then find a solution for it.
    Appreciate your cooperation and I will look forward to your results. ??

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Empty feed’ is closed to new replies.