I installed simplemenu on a site that didn't want it visible to 'normal' users, just staff/administrative users. Shortly thereafter, I noticed that the drupal's cron wasn't being executed. Turns out curl was getting a 'page not found' page from Drupal.

After some experimentation I discovered that if I allow simplemenu to be visible to anonymous users, cron operates correctly.

I've read elsewhere that errors on the page will cause cron.php to bail before it actually executes, giving a 'page not found' error.

Comments

AlexisWilke’s picture

Hi feaelin,

Do you get any information in your logs in regard to that problem?

I have many sites and they all use simplemenu for administrators and CRON never had a problem with it.

The simplemenu_init() function will be executed when cron.php runs, but the first thing being checked is whether the menu is enabled for that user. So the function is expected to return FALSE and the process stops there.

Thank you.
Alexis Wilke