Cron Job Stopped running

Discussion in 'Troubleshooting' started by garyvw, Mar 21, 2008.

  1. garyvw

    garyvw aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    13
    I got this error this morning: It was posted in BIG RED highlights on my control panel page.

    " Cron job has been running last time at 03/20/08 05:14:05, it is more than 24 hours before.
    Most possible external cron job has been set incorrectly. It may cause very serious problems with the script "


    It seems that my email routine did not send any emails this morning as it was supposed to.

    What do I have to do to fix this?

    PS. The search function in these forums doesn't seem to work.
  2. flowerdance

    flowerdance New Member

    Joined:
    Feb 22, 2008
    Messages:
    7
    I can't help you, Gary, but I'll tell you that I keep getting just the same message except for the time and date.

    I called tech support at my server and they said they "don't support" cron job questions. They couldn't even tell me if I'd set it up correctly in the first place. They told me to talk to my web developer.

    As I am the "web developer" and I haven't a clue, it puts me right into one of those crazy loops!

    So, good luck to both of us in getting an answer. I am crossing my fingers!
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Without your webhost giving you a specific answer its gonna be a guessing game.
    Try this:
    php -q /home/yoursite/public_html/amember/cron.php
    or
    /web/cgi-bin/php -q /home/yoursite/public_html/amember/cron.php

    One of my members suggested this for GoDaddy:
    /web/cgi-bin/php -q "$HOME/html/amember/cron.php"


    David
  4. flowerdance

    flowerdance New Member

    Joined:
    Feb 22, 2008
    Messages:
    7
    Thanks

    Thank you for posting, David. I appreciate it.

    I am, in fact, using GoDaddy for my server so this info really helps.

    Question:
    How do I know if the cron job is running or not?


    The only way I've been notified in any way is if I log onto the control panel.

    Is there anything else I'm supposed to be looking for?

    Thanks,
    Catherine
  5. jaysteele

    jaysteele New Member

    Joined:
    May 1, 2008
    Messages:
    2
    I have the same question as Catherine. I used the first example given by David:


    php -q /home/yoursite/public_html/amember/cron.php

    I also realized I had a little error in the command I entered and didn't map to the file properly. I think that is what was causing my initial error. The cron job seems to be running fine now. I just want to know what it does - especially since I am set up for recurring billing. Thanks.

    Jay
  6. calisolllc

    calisolllc Member

    Joined:
    Feb 19, 2007
    Messages:
    194
    Because cron jobs are a function of your server set up and not of amember then the notifications are contained in your server logs.
    Set up your server to post logs of errors to the webmaster daily.

Share This Page