Hot answers tagged

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 ...
user avatar
  • 7,337
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 ...
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 ...
user avatar
  • 5,974
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 » ...
user avatar
4 votes

Drupal's cron job has no access to CiviCRM custom fields (Anon access to custom data?)

You need to turn on "Access all custom data" for anonymous users for a lot of very popular features (e.g. custom fields for anonymous users in profiles and webform_civicrm) to work. Someone else can ...
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 ...
user avatar
  • 10.9k
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 ...
user avatar
  • 10.9k
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 ...
user avatar
  • 17.6k
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,...
user avatar
  • 7,337
3 votes
Accepted

Cron job with shared hosting CPanel

Thanks for helping. Looking at the log showed that everything after & was getting truncated. There should be "backslash" () sign before "and" (&) sign. /usr/bin/wget -O - -q -t 1 http://...
user avatar
3 votes

Cron job with shared hosting CPanel

You may want to try creating a wgetrc file that contains all your values. Check the man page for wget as a reference.. Here's a wgetrc of mine: post-data=name=civicron&pass=<password>&...
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 ...
user avatar
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 - ...
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.
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>
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 ...
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 ...
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.
user avatar
3 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 ...
user avatar
  • 10.9k
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 ...
user avatar
  • 4,244
2 votes

cron.php error with joomla 3.4 uri.php

I had exactly this problem too and it seemed to me that the missing class should have been loaded earlier in the sequence. In Civi 4.6 there is an extra statement on line 646 of /home/[USERNAME]/...
user avatar
2 votes

Mailings Scheduler fails after upgrade to 4.7.1

This is a known bug in CiviCRM 4.7.1. EDIT: Based on new information on this bug report, this problem does NOT exist when using wget. Also, someone in the community has stepped up to pay for this ...
user avatar
2 votes
Accepted

WP-CLI using GMT/UTC Timezone on cron jobs

wp-cli doesn't bootstrap the settings, so doesn't load the timezone. Because of this exact issue, I wrote a patched version of the CiviCRM extension for wp-cli to add timezone support. It's ...
user avatar
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 ...
user avatar
  • 6,641
2 votes

'invalid key sent' while cron script is executed

problem found... it was a confusion between 2 scripts /home/sitename/www/www/private/civicron.sh /home/sitename/private/civicron.sh After adapting the correct script it seems okay.
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 ...
user avatar
  • 2,301
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 ...
user avatar
  • 16.1k
2 votes
Accepted

Restricting access to a group of contacts

No, ACLs are about including groups you can see, not about excluding the ones you can't. What we did for a case like you was to automatically add any new contact into a "visible by everyone" group ...
user avatar
  • 10.1k
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
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 ...
user avatar

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