Whenever I run drush to enable any module it says:

WD actions: One orphaned action (backup_migrate_backup_action) exists[warning]
in the actions table. Remove orphaned actions

Not sure what to do about that

Comments

senpai’s picture

How do you interact with your database? Command line, PHPmyAdmin, or MySQL Workbench?

AdrianB’s picture

You can visit admin/settings/actions/orphan to remove them according to this comment.

apotek’s picture

I'm seeing this as well.

I think the key here is to write a hook_disable() function in the migrate_backup module that would remove any of the module's actions. As it is the row remains, but is dissociated (orphaned) if I disable the backup_migrate module.

@agerson: did you ever disable backup_migrate before running into this error?

I might add that this problem occurs even with the latest release (Oct 16, 2010).

apotek’s picture

@agerson: if you can verify if this only started happening post-disabling the module, I'll write a patch.

ergophobe’s picture

I can verify that this happened but all I did was go to

/admin/settings/actions/orphan

as mentioned by Adrian and it sorted it right out. VBO was not the only module that left orphans (comment did too).

j2parker’s picture

$ drush dis captcha
The following projects will be disabled: captcha, image_captcha
Do you really want to continue? (y/n): y
WD actions: One orphaned action (backup_migrate_backup_action) exists in the actions table. Remove orphaned actions [warning]

damaddhacker’s picture

Issue tags: +orphaned actions

Drupal 6 - Drush warning about orphaned actions
When I was executing drush commands, I got a warning similar to this:

The following extensions will be disabled: location
Do you really want to continue? (y/n): y
WD actions: 3 orphaned actions (og_remove_groups_action,
og_make_public_action, og_make_private_action) exist in the actions
table. Remove orphaned actions
location was disabled successfully.

Solution is to use a badly-documented Drupal feature which automatically removes all orphaned actions. Simply visit the following hidden URL on your drupal site: yoursite.com/admin/settings/actions/orphan, and it will remove any orphaned actions and forward you to the Manage Actions page, where you will see they are no longer listed!

REFERENCES
https://drupal.org/node/445922#comment-2977526

suffusionofyellow’s picture

or do
drush ev "actions_synchronize(array(),true);"

chrisarusso’s picture

It's actually drush php-eval "actions_synchronize(actions_list(), TRUE);"
for 7 per this comment:
https://drupal.org/node/445922#comment-3738188

dgorton’s picture

Status: Active » Closed (works as designed)

Yep - not well documented. Also not specific to B&M. Per many of the comments, solution is to visit http://yourwebsite.com/admin/settings/actions/orphan

alamp’s picture

Issue summary: View changes

+1 Vote up for #10

My error is as follows (Drupal 7.27)

May  5 18:22:59 x[7952] <Info>: http://default|1399310579|actions|127.0.0.1|http://default/index.php||0||1 orphaned actions (certificate_reset_certificates_action) exist in the actions table. Remove orphaned actions

According to this comment,
If you click the link http://yourwebsite.com/admin/settings/actions/orphan,
Drupal system will automatically remove orphaned actions.