• Resolved underro

    (@underro)


    Hi there.
    I have a situation: all feeds created are duplicated, some tripled.
    I tried to delete the duplicates. Some are completely gone, others have reappeared, and I repeat, they keep reappearing.
    Also, all the entities that use the respective feeds have reported errors and that they cannot see the feeds.
    If I download the feeds, all the products are there.

    • This topic was modified 2 months, 3 weeks ago by underro.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @underro ,

    We’re still investigating this issue as it’s hard to replicate but we do have a fix for this. Please add the snippet to your child theme’s functions.php or through WPCode

    // Remove invalid product feed post
    add_action('admin_init', 'delete_post_with_adt_product_feed');
    function delete_post_with_adt_product_feed()
    {
    $args = array(
    'post_type' => 'adt_product_feed',
    'posts_per_page' => -1,
    'meta_query' => array(
    'relation' => 'OR',
    array(
    'key' => 'adt_file_name',
    'value' => '',
    'compare' => '=',
    ),
    array(
    'key' => 'legacy_project_hash',
    'value' => '',
    'compare' => '=',
    ),
    ),
    );
    $posts = get_posts($args);
    foreach ($posts as $post) {
    wp_delete_post($post->ID, true);
    }
    wp_reset_postdata();
    }

    Remove the snippets once everything’s fixed.

    • This reply was modified 2 months, 3 weeks ago by Jeff Alvarez.
    Thread Starter underro

    (@underro)

    Thank you for the answer.
    In the meantime, I tried several options and succeeded by changing the name of one of the duplicates/triples.
    That’s how I managed to delete the others, but even though the url was left behind, the entities that browsed the url didn’t see it correctly.
    I refreshed the feed several times, cleaned the cache, transients,… and only after a few days, they saw the feed correctly.
    Now it seems that everything is ok.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.