Setting up a Cron Job

Discussion in 'aMember Pro v.4' started by gswaim, Oct 26, 2011.

  1. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I am working with aMember V4Beta and am trying to set up a cron job. I can't find cron.php anywhere. Am I overlooking the file or does V4 do this differently than V3? It is not yet in the V4 instruction wiki.

    Thanks.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    That is now called "cron" not "cron.php" - just replace in URL.
  3. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I did this but cron job is not running.
    I don't see any file in the root "/amember/" named "cron"
    Am I missing a file?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    There is no cron file, as there is no signup file , login file or member file. It is all controlled by rewrite rules. actual file processing the cron request is
    application/default/controllers/CronController.php

    What happens if you access
    http://www.yoursite.com/amember/cron
    from browser ?
    What's written to aMember CP -> Logs ?
    Have you enabled external cron at aMember Cp -> Setup -> Advanced ?
  5. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I get a blank white screen

    This is the last email:

    Status: 404 Not Found
    X-Powered-By: PHP/5.2.11
    Content-type: text/html

    No input file specified.
    No log handling enabled - turning on stderr logging
    read_config_store open failure on /var/net-snmp/snmpapp.conf
    read_config_store open failure on /var/net-snmp/snmpapp.conf
    read_config_store open failure on /var/net-snmp/snmpapp.conf

    This is the last error log:


    Time
    URL
    IP
    Message
    Trace
    10/26/11 10:16 PM /amember/cron 198.86.109.253 cron.php started
    Click to Expand
    CronController->indexAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1324 ]
    Am_App->run [ index.php : 41 ]


    10/26/11 10:16 PM /amember/cron 198.86.109.253 cron.php finished (hourly.)
    Click to Expand
    CronController->indexAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1324 ]

    Yes
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    From what I can see the cron is working normally, but you are accessing some wrong URL within your browser. Feel free to email me URL you are accessing to find out the problem.
  7. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I'll start a ticket an send you all login info.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021

Share This Page