• Resolved barbazul

    (@barbazul)


    I changed the “cron” that imports the videos to run hourly instead of daily because I needed such frecuency, but now every time I add videos to my youtube channel, they get imported multiple times in my website.

    http://www.sanjustoonline.com/sanvalentin/

    I tried running the thing manually and they get imported only once but they get scheduled to be published an hour later, so I thought that maybe it was a timing issue, ie: external-videos checks the channel, and creates scheduled posts for each video that’s not published on the site. Then an hour later when the cron runs again, the scheduled posts didn’t get published so external videos would import it again duplicating the post.

    I really don’t know how to track if this is what’s going on, but I suppose it isn’t because in reality, videos get imported THREE times!

    Any help on this would be VERY much appreciated, I am completely stuck

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter barbazul

    (@barbazul)

    Update on this.

    It looks like the multiplication of posts happens when the videos are imported from youtube and not when they are published because more than one scheduled post is being created at that time, and all duplicated posts are signed with the same time and date.

    A weird thing is that not all posts are being multiplied and not all of the multiplied posts are triplicated some of them are duplicated. I can’t find a pattern on this :s

    Maybe you have two crons running at the same time?

    Thread Starter barbazul

    (@barbazul)

    Silvia, thanks for taking the time to answer to my post.

    Do you know how I can check the crons that are running?

    Thread Starter barbazul

    (@barbazul)

    Ok I deserialized the option “cron” from the wp_options table and found the event. It’s correctly set up and only once, here’s the dump

    [...]
    1297123771 =>
      array (
        'ev_daily_event' =>
        array (
          '40cd750bba9870f18aada2478b24840a' =>
          array (
            'schedule' => 'hourly',
            'args' =>
            array (
            ),
            'interval' => 3600,
          ),
        ),
      )
    [...]

    Hmm, I don’t know how else videos would be taken in twice. Will have to check this out.

    Did you get the problem sorted in the end?

    How did you set it to videos “cron”? Did you change it in external-videos.php where it says /// *** Daily “Cron” Setup *** /// ?

    Thread Starter barbazul

    (@barbazul)

    I kind of fixed it.

    Actually what I did was set the cron to run every 12 hours and I didn’t have any more duplicated videos

    silviapfeiffer1

    (@silviapfeiffer1)

    OK, I’ll close this for now. Let me know if it happens again. As I see it, “daily”, “twicedaily” and “hourly” should work according to http://codex.wordpress.org/Function_Reference/wp_schedule_event , but I’ve seen other people have problems with the “hourly” settings. Also, it seems custom time settings are possible: http://wpengineer.com/1908/use-wordpress-cron/

    silviapfeiffer1

    (@silviapfeiffer1)

    Hmm… I cannot mark this bug as resolved..

    Thread Starter barbazul

    (@barbazul)

    The website where this issue was found was a short marketing campaign that was online for nearly two weeks.

    I seem to have been the only person experiencing this bug and I even found a workaround for it. There is no way to test that behaviour online enymore because the site is down.

    Even if this bug is not fixed, it is definitely expired

    silviapfeiffer1

    (@silviapfeiffer1)

    Could you mark it as resolved? (I try to keep track of the open issues…) Thanks.

    Thread Starter barbazul

    (@barbazul)

    There you go! 🙂

    silviapfeiffer1

    (@silviapfeiffer1)

    Thanks heaps 🙂

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘[Plugin: external-videos] – Videos imported multiple times’ is closed to new replies.