Questions tagged [cron]
The cron tag has no usage guidance.
174
questions
0
votes
0
answers
11
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/...
0
votes
1
answer
11
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 ...
0
votes
1
answer
29
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 ...
1
vote
1
answer
22
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 ...
0
votes
2
answers
34
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....
1
vote
0
answers
34
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 ...
0
votes
0
answers
31
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 ...
0
votes
0
answers
8
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 ...
0
votes
2
answers
41
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 ...
0
votes
0
answers
20
views
Trying to access array offset on value of type null in CRM_Core_JobManager
I'm trying to migrate a site to a new host. Unlike the old host, the new one will let me install cv, so I've been trying simplify things by using that as my method for cron. I'm getting the following ...
0
votes
1
answer
29
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/...
0
votes
0
answers
25
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 ...
0
votes
0
answers
87
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....
1
vote
0
answers
67
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 ...
0
votes
0
answers
21
views
How do I disable notification emails from cron daemon?
I recently enabled scheduled jobs on my system, and now I'm getting notification emails daily when the job runs. The body of the email contains this:
Array
(
[is_error] => 0
[version] => 3
[...
0
votes
0
answers
8
views
Timeout in sqlgroup.php stopping Scheduled Mailings
The Scheduled Mailing task has stopped working with the following error message:
Fatal error: Maximum execution time of 120 seconds exceeded in /home/example/public_html/sites/all/modules/civicrm/CRM/...
0
votes
0
answers
19
views
Mailings sent via cli generate bad URLs e.g. (https://civicrm/mailing/url/?u=81&qid=7915)
When I run /usr/local/bin/cv api --quiet --user=CRC --cwd=/var/www/html job.execute, my mailings have URLs where the site name is replaced by civicrm, e.g.:
https://civicrm/mailing/url/?u=81&qid=...
1
vote
2
answers
63
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 ...
0
votes
1
answer
19
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 ...
0
votes
1
answer
37
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 ...
0
votes
1
answer
42
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 ...
0
votes
0
answers
18
views
Can Scheduled Jobs time out?
I have set up a few Scheduled Jobs that have started successfully started, but never finished. Is this due to a "time out" configuration? I would like to support some long running jobs.
4
votes
2
answers
63
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>/...
1
vote
1
answer
64
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:
...
0
votes
2
answers
302
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 ...
0
votes
0
answers
33
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:
...
3
votes
1
answer
150
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'...
0
votes
1
answer
37
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/...
0
votes
1
answer
127
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.
0
votes
1
answer
50
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/...
0
votes
2
answers
57
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 ...
3
votes
0
answers
117
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)....
1
vote
0
answers
46
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 ...
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 ...
0
votes
1
answer
231
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 ...
0
votes
1
answer
120
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 ...
2
votes
1
answer
68
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 ...
0
votes
0
answers
31
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 ...
0
votes
0
answers
33
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/...
3
votes
1
answer
362
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 ...
0
votes
1
answer
69
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 ...
1
vote
0
answers
71
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 ...
0
votes
1
answer
55
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,...
0
votes
1
answer
139
views
CiviMail cron job unable to find: civicrm.config.php, built with: roundearth/drupal-civicrm-project
My next issue is this:
attempts to push out a civilmailing result, as reported by /civicrm/admin/joblog, with this error:
'API permission check failed for Group/get call', . . . 'insufficient ...
1
vote
1
answer
59
views
Cron Job User Permissions
Is it possible to run a cli.php without user and password if cron owner has sufficient privileges? Having added it my Joomla dashboard is over run with entries for the cron user logging in. The user I ...
3
votes
0
answers
30
views
Why is my cron run failing following a database move?
I've got a Civi/Wordpress install. Originally all of the codebase was in a directory called dev. When it was ready to go live I moved everything to a directory called default, and I went through all ...
0
votes
1
answer
27
views
Using the cron facility
I have unsuccessfully been trying to get the cron facility to work and would like someone to help me please.
I am working on a Joomla 3 site. The CP provides a facility to create a cron job which ...
1
vote
2
answers
201
views
cli.php can only be run from command line
Using WordPress 5.4 and CiviCRM Version 5.18.4. Hosting with InmotionDirect, managing via Cpanel.
Trying to follow the instructions to set up our cron job. I got the command line to work, finally, ...
0
votes
1
answer
163
views
Cron ERROR: Invalid username and/or password (Wordpress)
Our cron has worked without issue then all of a sudden it stopped and provided the error: Civi 5.23.3 WP 5.3
When the cron runs - I get the following:
ERROR: Invalid username and/or password
My cron ...
1
vote
0
answers
241
views
Why is there a "session_set_save_handler" warning whenever Civi cron runs?
I am using CiviCRM 5.23.4 with Drupal 7.69, though this issue is not new to this version of Civi.
Every time Civi cron runs, I get a warning in the Drupal Recent log messages:
Warning: ...