我在 Ubuntu 16.04 上运行 LAMP。我安装了 drupal 7,并且通过 Composer 1.5.2 版安装了 drush 8.1.3。我相信php7.2 中存在导致Github 上讨论的错误的错误,但是即使我应用了推荐的修复程序,即将 pear/console_table 更新到此处指示的最新版本,问题仍然存在。我还按照超级用户的说明进行操作,以确保我也安装了最新版本的 pear(未安装 PHPunit)。而且,仅供参考,根据此处找到的drush 安装文档,我也对我的.bashrc文件进行了适当的更改(如下)。
每当我运行时,drush status我都会收到以下错误:
count(): Parameter must be an array or an object that implements [warning]
Countable Table.php:789
count(): Parameter must be an array or an object that implements [warning]
Countable Table.php:789
count(): Parameter must be an array or an object that implements …Run Code Online (Sandbox Code Playgroud)