Problem/Motivation
Drupal 7.89
Drush 8.4.11
PHP 8.0.20
Drush commands such as pm-update and cache-clear all fails.
Steps to reproduce
$ drush @site cache-clear
Drush command terminated abnormally due to an unrecoverable error.
$ drush @site watchdog-show
php error Error: Call to undefined function create_function() in entitycache_drush_cache_clear()
(line 17 of /home/website/public_html/sites/all/modules/entitycache/entitycache.drush.inc).
Disabling the module fixed the error, and all Drush commands worked again.
Proposed resolution
Make a fresh release, since the issue is already fixed: #2981629: create_function is deprecated in PHP 7.2.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
sadman commentedI get the same error after updating PHP from 7.4 to 8.0. create_function() was deprecated and now removed. I can use drush if i disable this module.
Comment #3
ressaThanks for clearing that up @sadman. With your information I found the issue where it got fixed and committed, but not yet released.
Comment #4
damienmckennaThis is fixed in the current dev snapshot.