#32 ✓resolved
Jenna

Chron Job Logged...Then Nothing

Reported by Jenna | June 23rd, 2008 @ 05:30 PM

I set up WebChron to run the "WebCron-ready URL" every hour, which is working.

WP-o-matic is happy to log that it happened but the posts never get updated to the database. (However, if I run the manual fetching, it does work)

Here's a sample from the logs:

Latest log entries (view all)

  • June 23, 4:22 pm — Running cron job
  • June 23, 3:26 pm — Running cron job
  • June 23, 2:26 pm — Running cron job
  • June 23, 1:27 pm — Running cron job
  • June 23, 12:29 pm — Running cron job
  • June 23, 11:27 am — Running cron job
  • June 23, 10:31 am — Running cron job

I ONLY get the following messages if I fetch the feed manually:

  • June 19, 9:41:03 pm - Processing campaign zzzzzzz(ID: z)
  • June 19, 9:41:03 pm - Processing feed zzzzzz(ID: z)
  • June 19, 9:41:03 pm - Processing item
  • June 19, 9:41:03 pm - Caching images

Help!

Comments and changes to this ticket

  • Gustavo

    Gustavo June 24th, 2008 @ 12:23 PM

    The same error here.

    Wordpress 2.5.1, WP-o-Matic 1.0RC3-7

  • Jenna

    Jenna June 24th, 2008 @ 02:16 PM

    I found another post that suggested a fix.

    Here you go. Works beautifully. Guillermo, would it be possible to fix the source code to incorporate this patch? Thanks for all your work. Love this plugin.

    http://pixca.net/blog/code-progr...

    Major snaps to MaEl.

    Here's a summary:

    Open File: wpomatic.php

    FIND CODE: (approximately line 961)

    if($unparsed)

    $where .= " AND active = 1 AND (frequency + lastactive) < ". current_time('timestamp', true) . " ";

    REPLACE WITH:

    // FIX FOR CRON CAMPAIGN ERROR

    if($unparsed)

    $where .= " AND active = 1 AND (frequency + UNIX_TIMESTAMP(lastactive)) < ". (current_time('timestamp',1) - ($gmt ? 0 : (get_option('gmt_offset') * 3600))) . " ";

    // END FIX FOR CRON CAMPAIGN ERROR

  • Jenna

    Jenna June 24th, 2008 @ 02:17 PM

    By the way, this fixed it for me. This request can be closed now. :-)

  • Guillermo Rauch

    Guillermo Rauch July 18th, 2008 @ 09:40 AM

    • Milestone cleared.
    • State changed from “new” to “resolved”
    • Tag cleared.

    Fixed in RC4

  • Ricardo Rauch

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

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

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.

People watching this ticket

Pages