Failed to get available update data

I got this error during drush update : "Failed to get available update data for 2 project"

After continued the update process, the backups were restored for each project letting my website unchanged.

This error were caused by custom module and theme. After disabling those and empty the cache, I was able to run the command again without error.

I have been looking for a solution on internet to hide custom project from the update manager.

They advise to implement hook hook_update_projects_alter and hide project from update list :

function mytest_update_projects_alter(&$projects) {
// Hide a site-specific module from the list.

But it does not seem working for me (into template.php or custom module.module).

About the author

Consultant, Web strategist, and Drupal enthusiast, I use open source software to build application that connects people and spread ideas. I believe that internet can lead to powerful changes for progressive organizations, and for our future.

Keep in touch here