I need to somehow re-install cron on Drupal because I was instructed to delete cron_last by using the Devel Module becuase my cron was saying "failed to run".

After deleting this variable, my cron now says that it has never run and it continues to say that even if I try to run cron manually.

Does anyone have an idea how I can fix this?

Comments

everydayjones’s picture

Hello?

ktleow’s picture

I had that "Cron failed to run" error a few days ago on my new Drupal site.

I then executed this SQL query via phpMyAdmin

DELETE FROM `variable` WHERE name = 'cron_semaphore';
DELETE FROM `variable` WHERE name = 'cron_last';

After that, re-run your cron, try not to do anything else and just leave it till its finished.
Sometimes cron may take pretty long.
If problem still persist, do the same SQL thing again, uninstall Update Status (takes alot of time) and run cron again.

-----
Drupal theming services, PSD to Drupal
http://kahthong.com

everydayjones’s picture

It didn't work. I still have this:

Cron maintenance tasks Never run
Cron has not run. It appears cron jobs have not been setup on your system. Please check the help pages for configuring cron jobs. You can run cron manually.

How do I uninstall "Update Status"?

everydayjones’s picture

How do I get CRON_LAST back? My SQL returned this:

DELETE FROM `variable` WHERE name = 'cron_semaphore';# Affected rows: 1
DELETE FROM `variable` WHERE name = 'cron_last';# MySQL returned an empty result set (i.e. zero rows).

ktleow’s picture

Hi maybe you would wanna refer to this post here.
Same issue, Cron failed to run.

http://drupal.org/node/146551

-----
Drupal theming services, PSD to Drupal
http://kahthong.com

everydayjones’s picture

Wrong version of drupal. I'm running 5.x