Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes

SOLVED - Cron setting for CiviCRM 4.x.x on Drupal 7.x via cPanel Cron admin panel

The cron job you have there looks like a Drupal cron job. You should look at the scheduled jobs wiki page for full details, but in the case of a Drupal site using wget (since that is the direction ...
Andie Hunt's user avatar
  • 7,452
6 votes

What is Cron? It keeps on telling me that it's not running

See here: https://en.wikipedia.org/wiki/Cron It's probably not that it's stopping - but that it was never set up. CiviCRM won't do any tasks that need to happen automatically - including sending ...
Jon G - Megaphone Tech's user avatar
6 votes
Accepted

How Smart Groups Work

Smart groups are kind of complicated. If you've got a small install, using the defaults will generally just work, i.e. there will be temporary caching that gets refreshed when necessary. To answer ...
Alan Dixon's user avatar
  • 6,851
6 votes
Accepted

Cron not running since updating to 5.39.0

I would upvote @Demerit if his comment was an answer, but instead I posted some additional info at the link they gave. To satisfy Stack Exchange guidelines, I'll post it below: In Administer menu ยป ...
Jon G - Megaphone Tech's user avatar
4 votes

Cron breaks after upgrading PHP

As PHP develops, some code that used to work in older versions fails in newer versions. The CiviCRM code gets updated to accommodate those changes - but obviously if you don't upgrade you don't get ...
Aidan's user avatar
  • 13.5k
4 votes

Cron job has started producing output

Not sure why it's suddenly started producing output when it didn't previously, but you could use: #!/bin/sh a=`drush -r /home/crwheelmen/www/www --quiet civicrm-api job.execute` if echo $a | grep -qv ...
Aidan's user avatar
  • 13.5k
4 votes
Accepted

What is the easiest way to set up cron for CiviCRM on a Drupal 7 installation?

Welcome to SE! Setting up cron can be confusing since there are many variations and it touches several aspects: OS users & permissions, CMS users & permissions, other tools, cron - and the ...
Aidan's user avatar
  • 13.5k
4 votes
Accepted

Why am I getting a warning about hook_civicrm when Civi's cron runs?

I'm assuming you have the civicrm_entity module installed. There's an open pull request for this at https://github.com/eileenmcnaughton/civicrm_entity/pull/238 If you're able to test out that patch ...
Demerit's user avatar
  • 23.1k
3 votes

Cron error after upgrading to 4.7.14 - Function "is_admin()" is missing, even though WordPress is the user framework

The error message comes from here and indicates that cron.php is not bootstrapping the WordPress CMS, so WordPress functions aren't available. WordPress is_admin() is defined in wp-includes/load.php. ...
Chris Burgess's user avatar
3 votes

To prevent cron emails do I need to redirect output to /dev/null?

What I've done to fix this is create a bash script that executes the civicrm api command, captures the output to a variable, tests for the string [is_error] => 0, if there's no match, then it echos ...
onefiftyfour's user avatar
3 votes

Has anyone run into scheduled jobs drifting on Centos7?

I don't know if this is the case here, and it seems more regular than my experience, but my coworkers and I have seen cron jobs walk fairly regularly. (We're more commonly using Ubuntu 14.04 or 12.04,...
Andie Hunt's user avatar
  • 7,452
3 votes

Why are all bulk mailings delayed by 5 hours?

I would look at the scheduled_date on the mailings in your database: SELECT name,scheduled_date FROM civicrm_mailing; If the scheduled_date is off, then it might be that MySQL has a time mismatch - ...
Jon G - Megaphone Tech's user avatar
3 votes
Accepted

Long running Scheduled Job

If you run the schedulded job as a cron job and don't use the http-method for the setup you will not face a php runtime timeout. We did have no issues with schedulded jobs running multiple hours.
Thomas Schüttler's user avatar
3 votes

cron setting in cPanel error

The cron url seem to be wrong, it should have been https://mysite/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=<username>&pass=<password>&key=<site-key>
Pradeep Nayak's user avatar
3 votes

DB Error: connect failed when trying to call Job.execute using cli.php?

First, you can view the error with greater detail if you enable "Debug and Backtrace", or view the CiviCRM log. The troubleshooting documentation will tell you how to do both. Second, I would assume ...
Jon G - Megaphone Tech's user avatar
3 votes

process_mailing processing addresses when called in UI but not CRON

Had the same problem, on Ubuntu change the system time zone with "sudo dpkg-reconfigure tzdata". Restart the mysql service with "sudo service mysql restart". Can confirm that this gets the cron ...
Stephen Sloan's user avatar
3 votes
Accepted

Upgraded to 5.3.2 from 5.3.1, now warning Cron not running - log shows it is at 10 minute intervals - Ignore?

Can you please check MYSQL and PHP are using the same timezone? This sometimes happens when both are running on different timezones. You can find a solution for similar sorts of issues here.
Pradeep Nayak's user avatar
3 votes

CiviMail cron job unable to find: civicrm.config.php, built with: roundearth/drupal-civicrm-project

You should run CV commands from the root of the website (especially on Drupal 8/9 - where support isn't as well tested for "pathing" - i.e finding the correct files to bootstrap CiviCRM). If your ...
HomoTechsual's user avatar
  • 1,138
3 votes

BackdropCMS & cron

Ok, The CLI version works out of the box: /usr/local/bin/php /home/#dir#/public_html/modules/civicrm/bin/cli.php -s #domain# -u #cronuser# -p #cronpwd# -e Job -a execute The HTTP version needs a ...
Catorghans's user avatar
  • 3,544
3 votes

Upgrade to 5.47.2 now cron does nothing - how to fix?

The cause was a folder permissions problem. The folders at the 2 bottom levels of www.mysite.com/sites/all/modules/civicrm/bin/cron.php had got changed from 755 to 777. When I tried to execute the ...
Andy Clark's user avatar
  • 4,845
3 votes

Cronjob for CiviCRM with drush 10: The "-u" option does not exist

I don't know if there still is a way to use drush but I got the cronjob working with cv: composer require civicrm/cv And then the crontab is: * * * * * /var/www/path_to_civi_project/vendor/civicrm/cv/...
Tobias Krause's user avatar
3 votes

Why does Drupal 9 complain when my CiviCRM cron runs?

I have one Drupal 9 site with this problem, and several more that don't. I don't know the root cause of the issue, but I know that adding --level=cms-full to the cv command fixes the issue.
Jon G - Megaphone Tech's user avatar
2 votes
Accepted

Cron failing after 4.6.16 upgrade

So CLI's memory limit was set to -1 like this: memory_limit = -1 // no memory limit Setting the limit to other than no limit solved the issue. I'm not sure why this happened as CLI's memory limit ...
Andrei's user avatar
  • 2,321
2 votes

System Status: Error "Cron Not Running" after update to 4.7.4

A similar-sounding bug report has been filed here: https://issues.civicrm.org/jira/browse/CRM-18514 There are scattered reports of cron-related issues in 4.7 but people have been not giving detailed ...
Coleman's user avatar
  • 18.7k
2 votes

MyISAM, Cron, ERROR

It seems like you have several errors listed. I would start by addressing the most serious first. You'll need to reinstall CiviCRM after enabling the InnoDB database engine in your MySQL instance (see ...
Joe Murray's user avatar
  • 6,741
2 votes
Accepted

Cron is running, but not running

check out this very detailed answer on a different SE site by Chris: https://drupal.stackexchange.com/questions/136722/drupal-7-cron-does-not-run-civicrm-scheduled-jobs
KarinG - Semper IT's user avatar
2 votes
Accepted

Can I turn off Drupal cron while the CiviCRM upgrade script is running?

My standard for Drupal cron is to only run it every 8 hours. Unless you use modules that expect a more frequent update (e.g. to pull in RSS feeds in a timely manner) you should be fine turning it off ...
Jon G - Megaphone Tech's user avatar
2 votes

Has anyone run into scheduled jobs drifting on Centos7?

This extension might solve this issue: Cron Plus
luciano_s's user avatar
  • 566
2 votes

"Cron not running" (but it is), trying to use wp-cli in crontab, with WordPress

whereis wp showed wp: /usr/bin/wp, so I tried that in crontab and the problem appears to be solved! System Status no longer says cron is not running and the "Last Run" column on Scheduled Jobs ...
user1147171's user avatar
2 votes

Cron failing on Update Membership Statuses and Send Renewal Reminders

I solved the issue with the help of xurizaemon on the Mattermost chat channel. The script was failing because it was trying to delete a membership that looked like it was already deleted. Hints ...
joewickert's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible