When cron is triggered by an anonymous user visiting a page which Boost is *not* configured to ignore, I get a ton of following error:

Notice: Trying to get property of non-object in node_page_title() (line 2075 of /path/to/site/modules/node/node.module

The "Location" of the error is the page that was visited to trigger the cron run. I have never observed this error when initiating cron via drush or admin/config/system/cron. I've tried the following scenarios to trigger cron as a visitor with these results:

  1. Visit a page handled by Boost as anonymous user: Get errors
  2. Visit a page handled by Boost as a logged in user: Get errors
  3. Visit a page not handled by Boost as anonymous user: No errors
  4. Visit a page not handled by Boost as logged in user: No errors

Then, I disabled Boost and did step #1 again, this time there were no errors.

Any ideas what might be going on or how to track this down further?

Comments

rooby’s picture

Can you try the patch at #1697570: _menu_load_objects() is not always called when building menu trees?

There seem to be a number of causes for this issue and that patch seems to fix the ones I have seen.

rooby’s picture

Issue summary: View changes

Added one more test.