Custom pathauto bulkupdates not running on cron

Custom pathauto bulkupdates not running on cron

The Problem

The Solution

The problem is that when the cron.php runs, it has not loaded all the modules the same way as the standard [[bootstrap]] and thus the pathauto module may not be loaded before your custom module. The way to solve this is to manually load the important path auto files using a: function hook_pathauto_bulkupdate() { include_once(drupal_get_path('module', 'pathauto').'/pathauto.module'); include_once(drupal_get_path('module', 'pathauto').'/pathauto.inc'); // do pathauto_bulkupdate stuff... }

Related Posts

Cron Queues: Processing large amounts of data in cron

Randall Knutson
Read more

The Six Biggest Mistakes You Can Make Running A Business

John DeRudder
Read more

Link Taxonomy Terms to Custom Views in Drupal

Dustin Currie
Read more

Adding custom icon sets to the social media module

Tom McCracken
Read more

Building custom widgets

Tom McCracken
Read more

Creating Custom Google Analytics Events In Drupal

Tom McCracken
Read more