I have inherited a drupal site and decided to put a poll on the front page. I moved it in the blocks and it appeared as expected but when the cron runs it disappears. Why would this be?
Katie
On Thu, Aug 9, 2012 at 3:27 PM, Katie Legere wrote:
I have inherited a drupal site and decided to put a poll on the front page. I moved it in the blocks and it appeared as expected but when the cron runs it disappears. Why would this be?
Are you just executing cron.php in your crontab? Try adding the Elysia Cron module and controlling the hook_cron implementations individually until you find the one that is causing the problem. Executing cron.php itself shouldn't cause this but perhaps the site has a custom module that does something weird.
I will do this - a question though.. where do I find the individual hook_cron implementations? I'm new-ish to Drupal but not new to php programming.
Katie
________________________________________ From: support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Earnie Boyd [earnie@users.sourceforge.net] Sent: Friday, August 10, 2012 10:42 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
On Thu, Aug 9, 2012 at 3:27 PM, Katie Legere wrote:
I have inherited a drupal site and decided to put a poll on the front page. I moved it in the blocks and it appeared as expected but when the cron runs it disappears. Why would this be?
Are you just executing cron.php in your crontab? Try adding the Elysia Cron module and controlling the hook_cron implementations individually until you find the one that is causing the problem. Executing cron.php itself shouldn't cause this but perhaps the site has a custom module that does something weird.
-- Earnie -- https://sites.google.com/site/earnieboyd -- [ Drupal support list | http://lists.drupal.org/ ]
On Fri, Aug 10, 2012 at 10:46 AM, Katie Legere wrote:
I will do this - a question though.. where do I find the individual hook_cron implementations? I'm new-ish to Drupal but not new to php programming.
Elysia Cron will list them for you. Each module can implement a hook_cron. See http://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/... for the documentation for it.
Hook_cron implementations are in the .module files for each module. If the module is named mymodule then you're looking for the mymodule_cron function in the mymodule.module file, which can be found in either sites/all/modules folders or modules folders depending on whether the module is a core module.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Katie Legere Sent: Friday, August 10, 2012 7:47 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
I will do this - a question though.. where do I find the individual hook_cron implementations? I'm new-ish to Drupal but not new to php programming.
Katie
________________________________________ From: support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Earnie Boyd [earnie@users.sourceforge.net] Sent: Friday, August 10, 2012 10:42 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
On Thu, Aug 9, 2012 at 3:27 PM, Katie Legere wrote:
I have inherited a drupal site and decided to put a poll on the front
page.
I moved it in the blocks and it appeared as expected but when the cron
runs
it disappears. Why would this be?
Are you just executing cron.php in your crontab? Try adding the Elysia Cron module and controlling the hook_cron implementations individually until you find the one that is causing the problem. Executing cron.php itself shouldn't cause this but perhaps the site has a custom module that does something weird.
-- Earnie -- https://sites.google.com/site/earnieboyd -- [ Drupal support list | http://lists.drupal.org/ ]
I've installed the Elysia Cron module and changed some of the crons to run less often and will play with it on the weekend to see if there's a particular cron that's having this effect. The crons all look pretty normal and with the information you sent looked though the modules at their crons and see nothing that I would expect to produce this behaviour...
Katie
________________________________________ From: support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Metzler, David [metzlerd@evergreen.edu] Sent: Friday, August 10, 2012 11:40 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
Hook_cron implementations are in the .module files for each module. If the module is named mymodule then you're looking for the mymodule_cron function in the mymodule.module file, which can be found in either sites/all/modules folders or modules folders depending on whether the module is a core module.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Katie Legere Sent: Friday, August 10, 2012 7:47 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
I will do this - a question though.. where do I find the individual hook_cron implementations? I'm new-ish to Drupal but not new to php programming.
Katie
________________________________________ From: support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Earnie Boyd [earnie@users.sourceforge.net] Sent: Friday, August 10, 2012 10:42 AM To: support@drupal.org Subject: Re: [support] cron overwriting changes
On Thu, Aug 9, 2012 at 3:27 PM, Katie Legere wrote:
I have inherited a drupal site and decided to put a poll on the front
page.
I moved it in the blocks and it appeared as expected but when the cron
runs
it disappears. Why would this be?
Are you just executing cron.php in your crontab? Try adding the Elysia Cron module and controlling the hook_cron implementations individually until you find the one that is causing the problem. Executing cron.php itself shouldn't cause this but perhaps the site has a custom module that does something weird.
-- Earnie -- https://sites.google.com/site/earnieboyd -- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]