Questions tagged [cron]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Undefined constant "DRUPAL_ROOT" In civicrm.settings.php when running cv api job.execute

I'm trying to run cron with cv and I get this error. The site itself loads fine. $ cv api job.execute --user=admin In civicrm.settings.php line 97: Undefined ...
jphelan's user avatar
  • 101
0 votes
1 answer
14 views

Cron doesn't work after moving CiviCRM to sudomain

For PHP version reason, I move Joomla! & CiviCRM from example.org/civicrm to civicrm.example.org. I changed all civicrm.settings.php in admin and frontend folders and I emptied the cache, ...
Alain Rihs's user avatar
0 votes
2 answers
35 views

Mosaico template auto sending

I am trying to send out a Mosaico template on Civicrm. I have scheduled it on a certain day. However, I realise that the execution does not work. It is forever on the "Scheduled" state. I ...
Cas's user avatar
  • 73
0 votes
1 answer
48 views

Cron Job for Scheduled Reminders Failing

This CRON job worked well for a long time and all of a sudden stopped working. No database changes were made. Here is the setup of the job and the result. Any ideas would be appreciated. Entity: ...
Margaret's user avatar
0 votes
0 answers
28 views

Membership Status Processor Fail on Months Less than 31 Days

Server clock is fine, it runs cron, but when the job runs on months ending in 30 days , the membership status refuses to update, it need an extra day, as if every ,month were 31 days For all 31 day ...
Hardwick's user avatar
0 votes
1 answer
25 views

Setup CiviCRM cron job for Bitnami NGINX Debian WordPress

Having problems deploying CiviCRM. Do not fully understand how to implement documentation. Having trouble understanding this guide https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/ Example of ...
Server Destroyer's user avatar
3 votes
3 answers
37 views

Why does Drupal 9 complain when my CiviCRM cron runs?

I have a D9/Civi site and the main Civi cron is set up to run every 5 minutes using cv : /usr/local/bin/cv api job.execute --user=xxx --cwd=/home/xx/sites/default/web --quiet The cron job runs, but I ...
Graham's user avatar
  • 3,935
1 vote
0 answers
23 views

Cron fails for WP site on Pantheon - although EasyCron reports success

We are hosted on Pantheon.io and have a WordPress site with CiviCRM installed. The instructions from CiviCRM docs say, "In order for the scheduled jobs configured within the CiviCRM UI to run ...
Andrew Himes's user avatar
0 votes
1 answer
37 views

Mailing a report at the same time - how?

The facility to email reports using scheduled tasks is good and works. However we'd like to email a report at 5pm each day. Having started this task to run after 4:59 on a certain day it is now ...
Andy Clark's user avatar
  • 4,720
1 vote
1 answer
245 views

Setting up the cron on Hostinger

I have so far been unsuccessful in setting up a cron in Hostinger. These are the three options I've set up so far. I think the path in the second one is incorrect but I was expecting either the first ...
Rose Lanigan's user avatar
  • 1,000
1 vote
2 answers
51 views

CRON not working on Civi wordpress

I use WordPress and CiviCRM. Although the CRON jobs work when I manually run them, they aren't running automatically. As I am new to the system, I need some help to set this up, and I don't know ...
Dan's user avatar
  • 39
1 vote
2 answers
108 views

Setting up cron

Please talk to me like I'm five with this one. What we're using: civiCRM version 5.41.0 Wordpress 5.9.5 PHP 7.2.34 (I do get a warning that this one should be updated) Mosaico 2.7.16 The web guy ...
ohnono's user avatar
  • 11
0 votes
0 answers
17 views

CRON does not work

Fatal error: require_once(): Failed opening required '../civicrm.config.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/gbunidos.es/public_html/crm/wp-content/plugins/civicrm/...
JS_unidos's user avatar
0 votes
1 answer
38 views

wp-cli cron not executing

wp 6 civi 5.52 cron command is errors seem to be only warnings but civi reports cron not running: PHP Warning: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a ...
LesleyJill's user avatar
0 votes
1 answer
80 views

Cron: cli.php does not work in the latest Civicrm

This happens on Civicrm for Joomla. It prevents both upgrading to Php 8 and upgrading to latest Civicrm, as doing any of these stops the cron job. This is what I see with Civicrm 5.49.3: $ php74 ...
Francesco Potortì's user avatar
1 vote
1 answer
86 views

cron fails with php8

wp 6 civi 5.51 cron stopped working when webhost forced upgrade to php8 It's a site I've inherited - they have extension cronplus installed. I'm not sure if it's this or maybe wp-cli? don't have ...
LesleyJill's user avatar
0 votes
2 answers
211 views

Help with mariadb crash, out of memory error

I'm trying to track down the cause of an occasional mariadb crash on my server. The system is a Linode 4GB Ubuntu 22.04 instance running Wordpress 6.1.1, apache2 2.4.52, mariadb 10.6.11, and civicrm 5....
twowheeler's user avatar
1 vote
0 answers
43 views

anacron not executing scheduled jobs

I am trying to execute cron.php for all Civicrm jobs through the Anacron tab on the cpanel of Gandi, but I keep getting "execute_all_jobs: PHP Fatal error: require_once(): Failed opening ...
Hilary Binder's user avatar
0 votes
0 answers
36 views

Scheduled e-mails sent with wrong encoding

Crossposting from https://chat.civicrm.org town-square channel in case anyone here has seen this possible bug. Hey all - upgrade to 5.56.0 on WP seems to have introduced a bug in scheduled mail via ...
Geof Newton's user avatar
0 votes
0 answers
20 views

Does this cron command run anything other than scheduled jobs?

I have an old drupal civiCRM site (4.7.. i know) that has recently started having issues completing this cron job: /sites/all/modules/civicrm/bin/cli.php -s SITEURL -u USER -p "PASSWORD" -e ...
user3016811's user avatar
0 votes
2 answers
61 views

What's the best practice for creating a cronuser for WordPress CiviCRM installs?

I am working on setting up the cron job using cv on a fresh CiviCRM and WordPress install. The docs are unclear on where to set up the "cronuser" user (WordPress user? CiviCRM contact?) and ...
Mark's user avatar
  • 163
0 votes
1 answer
58 views

Cannot get cron going in WordPress using wp-cli

I’m trying to get cron going using wp-cli WordPress: 6.0.3 civiCRM: 5.52.0 PHP: 7.4.32 I think I found the path to wp-cli. $ wp —info yields: WP_CLI phar path: /home/customer/www/mywebsite.org/...
Tom's user avatar
  • 131
0 votes
0 answers
44 views

Problems with file permission and ownership at civicrm/templates_c

I always set my file permissions under the templates_c folder like in the Question to username:www-data and the permissions to 770. It runs fine on other systems, but I have a system which is only ...
gzwg's user avatar
  • 37
0 votes
0 answers
199 views

how do I pass parameters to cron.php in WordPress?

I'm trying to set up cron using the URL method using civiCRM 5.52 on WordPress. I have all the variables for https://example.org//plugins/civicrm/civicrm/bin/cron.php but I get a 403 forbidden message....
Tom's user avatar
  • 131
1 vote
0 answers
111 views

Class 'Civi\Api4\Event\Subscriber\SearchKitSubscriber' not found

I've been finding recently that our cron is often failing. Our host doesn't keep output from the cron processes in the logs, so it's hard to establish the differences between the times that it works ...
somnolentsurfer's user avatar
1 vote
2 answers
102 views

cron jobs not working

Can someone help with debugging why cron jobs aren't activated on my site? When looking at civiCRM system status under Set-up Cron it says No cron runs have been recorded. A cron job is required to ...
ohdearme's user avatar
1 vote
1 answer
49 views

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

According to this documentation https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#drush I defined the following crontab: * * * * * /var/www/path_to_civi_project/vendor/drush/drush/drush -u ...
Tobias Krause's user avatar
0 votes
1 answer
40 views

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

Since upgrading to 5.47.2 cron has stopped doing anything. It's running as I have redirected the output to a file (which shows zero bytes) but nothing is happening. The cron user is authorised and ...
Andy Clark's user avatar
  • 4,720
0 votes
1 answer
55 views

I need a complete idiots guide to creating the initial cron setup

I have found the guides for setting up the cron in CiviCRM. I cant understand anything. I am using Wordpress. can someone please give me a complete step to step for setting this up as I really don't ...
Dan's user avatar
  • 39
4 votes
2 answers
67 views

BackdropCMS & cron

How to do civicrm cron in BackdropCMS? when I do in the browser: https://<domain.com>/modules/civicrm/bin/cron.php with the proper parameters it gets redirected to: https://<domain.com>/...
Catorghans's user avatar
  • 3,544
1 vote
1 answer
90 views

Error Message "Cron not running", but it's working perfectly. CiviCRM 5.43.0

I've seen a couple of Drupal workarounds for this, but not for Wordpress. The CiviCRM status is below; note that the last reported cron run was manually executed by me. All extensions are up-to-date: ...
Garry H's user avatar
  • 21
0 votes
2 answers
411 views

Getting Cron to run scheduled jobs with Drupal 9 in cPanel

I am trying to setup cron to run job.execute that I have setup in CiviCRM scheduled jobs. Drupal https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#cron Cron setup¶ In order for the scheduled ...
sushichris's user avatar
0 votes
0 answers
37 views

Cron Job Set using WP-CLI method. Seems to be functioning. Civimail won't send. Suggestions?

Wordpress 5.8 CiviCRM 5.38.0 PHP 7.4.15 System Stats say "Cron Running OK Last cron run at September 8th, 2021 5:30 PM." All extensions up to date. Using wp-cli method as laid out here: ...
Chris's user avatar
  • 394
3 votes
1 answer
193 views

Cron not running since updating to 5.39.0

I updated to 5.39.0 on Friday, and upon logging in today I've discovered that cron doesn't seem to have run since. I've checked my host's cronlog, and it reports that the command has been sent, so I'...
somnolentsurfer's user avatar
0 votes
1 answer
39 views

warning message from cron

This morning I started receiving a warning message from my regular cron job. Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/customer/www/crm.coma.org/...
Mick Kahn's user avatar
  • 3,227
0 votes
1 answer
189 views

How to set Up a Cron Job

I am trying to set up the cron job, can't seem to get it to work. I keep getting invalid user/password. I am trying the HTTP method. I am using WordPress I am on a shared server.
Nicholas Hughes's user avatar
0 votes
1 answer
61 views

username and password invalid on cronjob setup through anacron on server control panel

I am trying to run all cron jobs at a one hour interval, but I keep getting "Could not open input file". my path: @hourly 0 my_php_script php -f /srv/data/web/vhosts/[mysite]/wp-content/...
Hilary Binder's user avatar
0 votes
2 answers
81 views

civicrm email scheduling

I scheduled an email to send at 9.40am and it actually sent at 9.49am which I assume is to do with how often the send mail cron job runs. Is there a way of actually getting an email to send at the ...
Caroline B's user avatar
3 votes
0 answers
177 views

Cron Job Not Running

I'm running WP 5.3.2 and Civi 5.34.0. I recently installed Wordfence free version on my site, but not sure if this has anything to do with my problem (disabled the plugin and the problem still occurs)....
Sarah's user avatar
  • 83
1 vote
0 answers
58 views

Cron job causes 504

The cron job on my site us using up many resources and ultimately causing a 504 error. I tested not passing a site key or passing the wrong site key and it ran succesfully with the error that the key ...
Jennifer Bertha's user avatar
1 vote
1 answer
11 views

How often does the Status Report expect Cron to run?

I am on CiviCRM 5.33.1. The system Status Report gives warnings like this, taken about 90 minutes later at 12:26. Cron is deliberately set to run slowly since this is a development system. How ...
maynardsmith's user avatar
0 votes
1 answer
316 views

Command are running manually, but cron is not running

I'm running CiviCRM 5.32.0 on WordPress 5.6 hosted by Hostinger. 1st step I test cv.phar = php /xzy/wp-content/plugins/civicrm/civicrm/bin/cv.phar api Job.process_mailing --user=abcd --cwd=/xyz 2nd ...
rv91530's user avatar
  • 71
0 votes
1 answer
131 views

Wordpress Cron not Running

I am using the following method to get cron to work with wordpress. It has worked in the past but recently (around December of 2019) it stopped working. It hasn't become too big of a problem until ...
Julien Flesher's user avatar
2 votes
1 answer
77 views

Email report via cron gets moved every time it runs!

I have scheduled job (daily) to email a report to myself. I would like to receive it on a specific time everyday. Although I have set the time when it should run, every time it runs on a different ...
Tapash's user avatar
  • 2,938
0 votes
0 answers
34 views

System paths for HTML vs CLI/Cron

A client has had a site on Siteground for 3 years. It worked fine until they moved to a new server architecture and their own suite of management tools (swapping out CPanel for SiteTools). The site ...
Eliot Mason's user avatar
0 votes
0 answers
34 views

Cron Job Output Error with 5.31 on WordPress

Since updating from 5.29 to 5.31.0 on WordPress I am receiving the following error from my cron job: Fatal error: Uncaught Exception: : in /home/*hostname*/www/www/wp-content/plugins/civicrm/civicrm/...
Vshura's user avatar
  • 339
3 votes
1 answer
383 views

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

On Drupal 7.73 with CiviCRM 5.29.1. Every time the CiviCRM cron runs, I get the following warnings in the Drupal watchdog log. Each is a separate entry. hook_civicrm_alter_drupal_entities should be ...
The Amateur's user avatar
0 votes
1 answer
82 views

Why am I getting problems with username & password for WP cron?

I'm trying to set up cron in Wordpress (& I'm only familiar with Drupal). I have the following set up in cron which doesn't work, and when I paste the url into a browser I get 'ERROR: invalid ...
Andy Clark's user avatar
  • 4,720
1 vote
0 answers
81 views

Setting up Cron and CiviMail

CiviCRM is telling me I need to set up Cron jobs and CiviMail, but I've looked at the documentation and it's all Greek to me. How can I get help with setting these up? I'm using Wordpress with ...
ramoshe's user avatar
  • 11
0 votes
1 answer
62 views

My cronjob fails to run my Civimail queue. What am I missing here?

This invocation now returns a result code of 0. And still I see no evidence that it ran my civimail, in the browser UI, at /civicrm/mailing/browse/unscheduled, nor in the logs at /civicrm/admin/joblog,...
Hugh Esco's user avatar