#296 new
chovy

Creating duplicate posts every fetch

Reported by chovy | November 19th, 2009 @ 04:49 AM | in 1.5

I'm getting duplicate posts in wordpress everytime the fetch happens.
The feed itself does not have any duplicates in it.

Here is the blog: http://seo-chart.com/
Here is the feed: http://directoryofdirectories.info/directories.rss

No dups:
$ curl http://directoryofdirectories.info/directories.rss -s | grep ''

Many dups on blog.

Comments and changes to this ticket

  • chovy

    chovy November 19th, 2009 @ 04:50 AM

    that grep is supposed to be the beginning html title tag: <title>

  • Ricardo Rauch

    Ricardo Rauch April 15th, 2010 @ 08:50 AM

    • Assigned user changed from “Guillermo Rauch” to “Ricardo Rauch”
  • Ricardo Rauch

    Ricardo Rauch April 15th, 2010 @ 09:01 AM

    We are fixing this issue in 1.5

  • Ricardo Rauch

    Ricardo Rauch April 15th, 2010 @ 09:01 AM

    • Milestone set to 1.5
  • chovy

    chovy April 15th, 2010 @ 01:37 PM

    So is this fixed now?

  • Ricardo Rauch

    Ricardo Rauch April 18th, 2010 @ 02:19 PM

    Coming in the new version.

  • chovy

    chovy June 3rd, 2010 @ 04:18 AM

    This is still a problem.

    I've seen several proposed solutions but I'd rather not hack the code to do this.

  • chovy

    chovy June 3rd, 2010 @ 04:21 AM

    http://linuxil.wordpress.com/2008/02/24/wp-o-matic-quick-dirty-dupl...

    Here is a clean fix to the duplicate post issue:
    in wpomatic.php around line 622, replace

    $row = $wpdb->get_row(“SELECT * FROM {$this-&gt;db['campaign_post']}
    WHERE campaign_id = {$campaign->id}, feed_id = {$feed->id}, hash = ‘$hash’ “);
    
    by
    $row = $wpdb->get_row(“SELECT * FROM {$this-&gt;db['campaign_post']}
    WHERE campaign_id = {$campaign->id} AND
    feed_id = {$feed->id} AND hash = ‘$hash’ “);
    

    That’s it !

  • Robert

    Robert June 27th, 2010 @ 12:32 PM

    • Milestone order changed from “0” to “0”

    Chovy,

    once I replaced the code, everything stopped working, including the site, just got blank white page. Luckily ftp still worked, I replaced the file with the original.

    I simply copied and pasted to replace the code.

    Did this fix worked for you?? I have wordpress 2.9. and wp-o.matic 1.0RC4-6

  • Robert

    Robert June 27th, 2010 @ 01:00 PM

    one more thing,

    that's not a bug issue but can't find a place or forum to ask question,

    I ran the site with Unix Cron unchecked but I would like to run the unix cron

    what do I put in my cron tab in Plesk Control panel.

    do I put

    {wget or similar command here} then the URL for the cron location

    or just the URL

    I don't seem to get this one!!! the window in w-o-matic includes more stuff on the left of that line. What do I need to put in the cron tab?

    thank you

  • Robert

    Robert July 3rd, 2010 @ 08:41 PM

    anyone would like to take a shot at my questions? Please!!!!!

  • chovy

    chovy July 6th, 2010 @ 03:47 PM

    look at the date of my original request. i don't think the author develops wp-o-matic anymoer. I'm still running RC1.04.

  • chovy

    chovy July 6th, 2010 @ 03:48 PM

    by the way, i had only suggested that code as a fix -- I did not try it. Its from the link above it (a bunch of suggested solutions).

  • PadillaAnita

    PadillaAnita July 7th, 2010 @ 03:25 AM

    It is cool that people can take the home loans moreover, that opens new possibilities.

  • medyum

    medyum July 22nd, 2010 @ 12:23 PM

    by the way, i had only suggested Medyum that code as a fix -- I did not try it. Its from the link above it (a bunch of suggested solutions).

  • MDaniels

    MDaniels July 29th, 2010 @ 01:04 PM

    I am experiencing this same problem; even when it is restricted to creating only one item for a feed, it will still create anywhere from 1 to 10.

    1.5 was anticipated in April. It's the end of July.

    Is 1.5 coming?

    Thanks!

  • Mario

    Mario March 7th, 2011 @ 02:03 PM

    I'm getting duplicate posts in wordpress every time the fetch happens.
    The feed itself does not have any duplicates in it.

    I even set the Max items to create on each fetch to: 1 but still getting duplicate posts.

    Version: WP-o-Matic 1.0RC4-6
    I am using WordPress 3.1.
    I really need to fix this ongoing issue ASAP and i appropriate your prompt response.

    Thanks

    Mario

  • Mario

    Mario March 15th, 2011 @ 06:36 PM

    Unfortunately This Plugin support STAFF are so BAD. I have posted two issues and they have not responded.

    It Creates duplicate posting all the time and sometime more than that.

    Mario

  • HotModelsIntl

    HotModelsIntl April 10th, 2011 @ 12:02 AM

    Well, if the creator's are not working on WP-o-Matic anymore, can anyone suggest another plugin that would work in it's place?

  • Alan Bomberger

    Alan Bomberger April 23rd, 2013 @ 11:08 PM

    The problem is that for reasons not yet known Wpomatic is called
    at runCron every 12 seconds after the first call from the Unix cron
    job. If processing the feeds goes past 12 seconds (or so) a second
    thread starts processing the feeds. The processing and duplicate
    post checking is not thread safe so no matter what you do, you are
    just moving the problem around. If processing takes over 25 seconds
    a third thread is started and you may get triple posts.

    The solution that I used, short of locating the cause of the
    multiple threads, is to add code in runCron that checks the time.
    Since I set the Unix cron for once an hour on the hour, any call
    to runCron more that 15 seconds after the hour is ignored.

    function runCron($log = true)
    { $tdate = getdate(); $min = $tdate['minutes']; $sec = $tdate['seconds'];

    $this->log(‘Running cron job ‘ . $min . ‘:’ . $sec);

    if ( ($min != 0) || ($sec > 10) ) {
    $this->log(‘Skipping processAll’ . $min . ‘:’ . $sec); return;
    }

    // $this->log(‘Running cron job’);

    $this->processAll(); }

    Problem solved!

    I have read code till I am blue in the face and cannot figure out the
    cause of the multiple threads.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WP-o-Matic project.

Pages