Remove Orphaned Actions in Drupal 7
I recently discovered this weird behaviour by drush when I disabled Comment module in Drupal 7 – drush was giving the following warning whenever I tried enabling/disabling any module:
WD actions: 3 orphaned actions (comment_publish_action, comment_save_action, comment_unpublish_action) exist in the actions table. Remove orphaned actions
After some scrounging on drupal.org (where most solutions were meant for Drupal 6), I found the solution at http://blog.devkinetic.com/node/9 Just execute the following once:
drush php-eval "actions_synchronize(actions_list(), TRUE);"
Max Nylin 11:53 AM on August 17, 2011 Permalink |
Thank you for spreading this, just what I was looking for.
/ Max
Kartik 2:43 PM on August 17, 2011 Permalink |
Nice to know you found this useful.
Kyle 8:15 PM on August 19, 2011 Permalink |
Yea, this bites me every once in a while, and going to the “orphans” URL doesn’t always work. This works great! Thanks.
Kartik 8:48 PM on August 19, 2011 Permalink |
That ‘orphans’ url method is meant for Drupal 6 only.
Thanks for your comment.