hi guys,

just installed drupal-8 and drush-6.0-beta1.

drush cron or cc all working fine, but pm-update gives me an error:

PHP Fatal error: Call to undefined function _update_cache_clear() in /usr/local/share/drush/commands/pm/update_info/drupal.inc on line 63
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function _update_cache_clear() in
/usr/local/share/drush/commands/pm/update_info/drupal.inc, line 63
The external command could not be executed due to an application [error]
error.

i am not shure if this could be a drush bug or a wrong server configuration.

does anyone have a idea how to fix this?

Comments

hoersche’s picture

Getting the same error here.

It looks like _update_cache_clear() and some other functions aren't present in the D8 version of the update module in core. My guess is there is a new function that is needed to be used instead. Hopefully there is a more knowledgeable person that can say what that should be so we can update.

a grep for the function sees these two calls in D8, but no definition of the function:

$ sudo grep -r -i '_update_cache_clear' .
./core/modules/update/update.module: * @see _update_cache_clear()
./core/modules/system/system.api.php:    _update_cache_clear();

And in drush itself:

$ sudo grep -r -i '_update_cache' /usr/share/drush
/usr/share/drush/commands/pm/update_info/drupal.inc~:  _update_cache_clear('update_project_data');
/usr/share/drush/commands/pm/update_info/drupal.inc~:  _update_cache_clear('update_project_projects');
/usr/share/drush/commands/pm/update_info/drupal_6.inc:  if (function_exists('_update_cache_clear')) {
/usr/share/drush/commands/pm/update_info/drupal_6.inc:    _update_cache_clear('update_project_data');
/usr/share/drush/commands/pm/update_info/drupal_6.inc:    _update_cache_clear('update_project_projects');
/usr/share/drush/commands/pm/update_info/drupal.inc:  if (function_exists('_update_cache_clear')) {
/usr/share/drush/commands/pm/update_info/drupal.inc:  	_update_cache_clear('update_project_data');
/usr/share/drush/commands/pm/update_info/drupal.inc:  	_update_cache_clear('update_project_projects');
greg.1.anderson’s picture

Title: drush up doesnt work » Drush pm-update doesn't work with Drupal 8

Updating title

jonhattan’s picture

Version: 8.x-6.0-beta1 » 8.x-6.x-dev
Assigned: Unassigned » jonhattan
Category: support » bug

_update_cache_clear() has been replaced by update_storage_clear(), since update.module now uses expirable storage instead of cache.

There's probably further changes. I'll review it.

greg.1.anderson’s picture

Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

moshe weitzman’s picture

Title: Drush pm-update doesn't work with Drupal 8 » Drush pm-updatestatus doesn't work with Drupal 8
Issue summary: View changes
Status: Closed (won't fix) » Closed (duplicate)