0

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

2 Answers 2

3

If I click "Run cron" in the admin menu I'm redirected to another URL.

You have a node using the PHP filter, and calling drupal_goto(). That node is then indexed, the PHP code is executed, and you are then redirect. Don't do that ;)

I can't run cron; see the video capture I created.

You need to specify a cron key when accessing cron.php directly. You can find a link with the key on your Status report page (admin/reports/status).

2
  • thanks. I can't find it... Is there any way to find this node making a search in the database?
    – chefnelone
    Mar 9, 2012 at 12:59
  • Yes - use this script to search everywhere in your DB for the URL that you are getting redirected to - you can then see the nid of the node in question. code.google.com/p/anywhereindb
    – Felix Eve
    Apr 11, 2013 at 10:46
0

You cannot invoke cron.php directly in Drupal 7 :) Did you try running admin/config/system/cron by going to configuration > system > cron ?

4
  • You are right but if to go to admin/config/system/cron and click 'Run cron' I get redirected to this url: admin/commerce/orders/154
    – chefnelone
    Mar 9, 2012 at 10:16
  • You can invoke cron.php, even in Drupal 7.
    – apaderno
    Mar 10, 2012 at 12:51
  • I thought you can't visit cron.php to invoke cron manually in drupal 7 (drupal.org/node/158922)
    – Varshith
    Mar 10, 2012 at 14:35
  • The page you linked says: "In that same section, core also provides a link with a unique cron_key to run cron from outside your site."
    – apaderno
    Mar 10, 2012 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.