Questions tagged [cron]

Use it for questions about performing routine and other maintenance tasks in Drupal.

Filter by
Sorted by
Tagged with
3
votes
2answers
1k views

How to process more than one item from queue in each run?

I have set up a queue using: function custom_logger_cron_queue_info() { $queues['custom_logger'] = array( 'worker callback' => 'custom_logger_import', 'time' => 60, ); ...
0
votes
2answers
2k views

Errors when running Cron

I can't run cron; see the video capture I created. If I click "Run cron" in the admin menu I'm redirected to another URL. If I go to mysite.com/cron.php, I get the "Access denied" message.
0
votes
2answers
193 views

Running cron results in Caches Flushed

I am unable to run cron on a Drupal 6.25 web site. Running cron using both the run cron option from administration menu and the run cron manually link from status report page results in the following ...
4
votes
2answers
1k views

How to display panes/views/blocks based on time of day and day of week?

Building a D7 site, I need to be able to automatically enable/disable Panel panes and/or views (or in the worst case scenario blocks) based on the time of day - different contact info for out-of-...
0
votes
0answers
248 views

CMIS Sync ,Cron update

Whenever I run cron , all the articles in drupal which I have edited/created get updated with the new timestamp(the time when cron runs) and the "updated" tag appears beside the article name.This ...
1
vote
2answers
961 views

Help debugging “cron run exceeded the time limit”

I have written a custom module (for Drupal 7 and PHP 5.3) that utilizes hook_nodeapi() and doesn't allow access to a specific node type and simply redirects (with drupal_goto()) to the main listing ...
1
vote
2answers
864 views

Email send action fails: Cron has been running for more than an hour and is most likely stuck

I am maintaining a Drupal 6 installation. The task was to send an email to all registered users. I was using a rule set containing one rule with a default action: "send email to all users of a certain ...
5
votes
4answers
2k views

How to find bad PHP node that makes search_cron fail?

I can't run cron, manually or automatically. I installed Cron Debug module, checked all modules, and found out that the Search module makes cron stuck. When I disable it, cron is working. I suppose ...
0
votes
1answer
410 views

Node Update Problem on hook Cron

I am trying to update a node in a hook_cron() function. I am using Drupal 6. Here is my code: function offers_cron() { $query= db_query("SELECT * FROM {node} WHERE type = 'product'"); while($...
12
votes
3answers
6k views

Run drush cron for a single module

Is it possible to run drush cron over a single module, something similar to "drush cron my_module"?
2
votes
1answer
151 views

“Realname” module is not creating “pretty URLs” for new users?

I’m working on a site which I’ve taken over the development from a former employee. He has installed the module realname which, as I understand, should enable the function that a user URL is not the ...
1
vote
2answers
959 views

How to edit every node of a content type on cron run?

On cron runs, I want to edit every node of a certain content type. I think this is implemented through hook_cron() but I can't find any documentation about this hook. How can I edit every node of a ...
12
votes
2answers
13k views

How can I stop the cron tasks from being triggered by site visitors?

My site's logs show that cron is triggered if someone visits the website. This is slowing down the load time for the first visit. The cron is configured to run each 3 hours here: Administration » ...
1
vote
3answers
2k views

ERROR:Cron run exceeded the time limit and was aborted. why?

My Drupal installation's cron runs fail when run manually or by cron script. I thought it might be the Simple News module, but I've disabled then uninstalled that and the problem is still present. ...
1
vote
3answers
2k views

Cron failed with drush: Segmentation fault

In Drupal 6, whenever I run cron from web interface I get an Internal server error and when I run drush cron I just get Segmentation fault What can be wrong here and how can I fix it?
1
vote
3answers
2k views

How to abort a cron run?

I would like to have the ability to prevent cron from running based on a variable set in the database. I have created a hook_cron implementation in a module with an extremely low weight so it will ...
0
votes
2answers
223 views

Cron fails when calling hook_node_view

When running cron manually via GUI the cron starts to run but I have traced down the failure to hook_node_view in one of my modules. The code is: if ($node->nid == 47) { //THIS CODE IS ...
11
votes
9answers
14k views

Cron stopped running; logs say: “Attempting to re-run cron while it is already running.”

What are the steps to troubleshoot and resolve this issue as per title? When I try to run manually, I get a page immediately, and the error message "Attempting to re-run cron while it is already ...
2
votes
2answers
68 views

Re-enable forum commenting on a topic 24 hours after an admin has disabled them

I would like an to have my Drupal forum set up so that an administrator can disable comments (by selecting disable comments in forum topic) for a particular topic, but then 24 hours later have ...
2
votes
3answers
2k views

How to set permissions for cron for other roles (not administrators)

Hello I need to set permissions for editor role. The editors need cron to send maillists/newsletters. How do I make cron available for them? It seems there is no way.
5
votes
3answers
2k views

How to clear unused files from the database and the filesystem?

I would like to have a script that runs on cron, to delete all files that are not currently being used. I noticed that the file_usage table and the hard drive are getting filed with them. Is there a ...
3
votes
2answers
6k views

Stop caching images in views, force reload of jquery image slideshow when images are externally updated

In D7, I have a panel that contains a view that contains a jquery image slideshow. Every day, the images that compose the slideshow are updated by a cron job---ie, every day's new images override the ...
1
vote
2answers
396 views

hook function not deleting nodes when calling node_delete

I have a cron job where I need to do a node_delete(). From what I can tell the delete occurs okay if I run the cron job manually from the status report page, but if I try to run the cron from inside ...
0
votes
2answers
3k views

cron error Fatal error: Call to undefined function filter_xss()

I am running a remote command on my server to execute cron.php and I get this error : Fatal error: Fatal error: Call to undefined function filter_xss() in /home/k1004/html/www_dem o/oan/srcs/includes/...
2
votes
2answers
3k views

Running cron without crontab

I want code to be executed every n minutes. I know there is a way to run cron in Drupal with crontab but in my case it runs every 3 hours. What would be the best way to achieve this without using ...
2
votes
2answers
2k views

How could I send daily or weekly email in cron() function?

I have a content type in which I have drop down list with the values of "daily" and "weekly" and one field is of email. I want to setup the cron function like when the value of that drop down list is "...
2
votes
2answers
10k views

How to create a task which run at cron time and send emails to users?

Is there a module (based on cron) which can be used to check a date value form a field and to send email to users 2 days before the date? If there is not, how can I implement this to work with cron?
1
vote
1answer
394 views

Cron Run resulted in Fatal Error Message [closed]

Using Drupal 6.22 PHP 5.2.17 PHP memory limit - 150M Last time I ran Cron was 2 weeks 19 hours ago I am experiencing no errors with the site but opted to run Cron manually and received the ...
3
votes
1answer
1k views

Some files are deleted from the files table after CRON execution

I am using hook_form_alter() to add a file upload field to the taxonomy term form. The form itself and the submit are working well. From the submit callback i save the uploaded file using ...
4
votes
4answers
1k views

How can I tell that my hook_nodeapi function is being called by cron and not a user?

I am attempting to filter the viewing of node/cck fields attached to the nodes, so I have written a custom hook_nodeapi function and I am editing the field values if the user doesn't have permissions (...
1
vote
0answers
115 views

Breadcrumb Path Disappearing (temporarily) after Cron

This is a problem that's been bugging me for a while. I am using a book structure to generate my breadcrumbs, but it seems that when I first load a page, only the homepage and title of the page itself ...
1
vote
1answer
1k views

Disabling accounts programmatically

I want to disable user accounts programmatically inside hook_cron() after a synchronisation job. I don't want to delete the users because of their generated content. But they should not be able to log ...
2
votes
4answers
3k views

Why would my Cron run fail when run by system crontab, but succeed when run manually?

The Cron tasks on my website run perfectly fine if I manually execute cron. However, I have the server set up to automatically run cron every hour. When cron is executed automatically it fails... ...
0
votes
3answers
2k views

How to manage / consume multiple Queue API queues in a module?

For a site I'm running, I'm going to have a few different queues for message sending. For example: high priority email, low priority email, high priority twitter, low priority twitter... etc. I have ...
0
votes
1answer
453 views

How do I prevent the feed aggregator creates blank nodes when cron is run?

I've recently taken over the management and development of a Drupal 6 site and one of the problems plaguing this installation is that blank nodes authored by "Visitor" keep popping up. I've narrowed ...
4
votes
2answers
13k views

Cron jobs in Drupal 7

I have a PHP file that does some task in consistent intervals. I have placed that PHP file inside a custom module folder, but I found that Drupal functions like drupal_set_message() are not ...
1
vote
1answer
1k views

Cron job run, but module updates not checked - how to automate?

I configured a script to run as part of my cron.daily tasks, and tested the script. My status report says that the cron was correctly run by the script, so I'm happy that that will happen. However, ...
1
vote
1answer
1k views

Why is my cron not running as intended?

crontab -e displays */5 * * * * /persistent/sitename/scripts/cron-curl.sh ~ ~ ~ "/tmp/crontab.XXXX1FOZWa" 1L, 51C Why is it not running every 5 minutes?
2
votes
2answers
1k views

Where is the best place to insert additional logout functionality?

To insert additional logic when a user logs off one might look at function user_logout() in user.pages.inc. This code being in a core module, you should not edit it, but works very well... for ...
11
votes
1answer
444 views

Multiple (and differents) crons?

In a normal production webiste, there are many tasks that need to be done via crontab, but lets say you dont want all of these tasks to run on every cron. For example, i would love to have: A cron ...
2
votes
2answers
446 views

How should I configure cron tasks to make them automatically run on GoDaddy?

I own a lightweight blog hosted on GoDaddy. I could not get cron to automatically run, so I manually run it when necessary. How should I configure cron tasks to make them automatically run on GoDaddy?...

1
5 6 7 8
9