Jump to content
  • 0

Cron Job


Chris

Question

I'm having a heck of time with getting the cron to run properly. I know the cron jobs are working cause I did get this email error 

X-Powered-By: PHP/5.4.25
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us" dir="ltr">
        <head>
                <title>Blesta</title>
                <link rel="stylesheet" type="text/css" href="/app/views/errors/css/styles.css" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        </head>

        <body>
                        <div class="program_error">
                <h3>Oh noes!</h3>
                <div class="contents">
                        <p>Undefined variable: argv on line <strong>24</strong> in <strong>/home/a5d8w7s6/public_html/clients/index.php</strong></p>
                </div>
        </div>  </body>
</html>
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
55 minutes ago, technologist said:

Hi there,

If we can't set  register_argc_argv for PHP CLI, is there an alternative for running the cron job?

Jez.

You can use wget, GET, lynx, or another web-based method for your cron. See https://docs.blesta.com/display/user/Installing+Blesta#InstallingBlesta-4.SetupaCronJob

There is a wget example, you'll just need the cron key shown under Settings > System > Automation. Using wget would be similar to running the cron manually in your browser, so if that works then this will work for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...