is_dir(): 找不到包装器"public" - 您在配置 PHP 时忘记启用它了吗?文件.inc



>我启用了 s3fs 模块,并且在 drush 清除缓存期间收到以下警告消息: is_dir((: 找不到包装器"公共" - 您在配置 PHP 时忘记启用它了吗?文件.inc

以下是详细信息(Web服务器Nginx和OS是Ubuntu(:

ubuntu@ip-172-31-xx-xxx$ drush cc
Enter a number to choose which cache to clear.
[0] : Cancel
[1] : all
[2] : drush
[3] : theme-registry
[4] : menu
[5] : css-js
[6] : block
[7] : module-list
[8] : theme-list
[9] : registry
[10] : advagg
[11] : libraries
[12] : token
[13] : views
1
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:2144 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:2144 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:2144 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:2144 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:439 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:439 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:439 [warning]
is_dir(): Unable to find the wrapper "public" - did you forget to enable it when you configured PHP? file.inc:439 [warning]
WD php: Error: Call to a member function getDirectoryPath() on boolean in image_menu() (line 83 of [error]
/xxxx/xxxx/public_html/modules/image/image.module).

此错误的每个实例可能并非如此,但是当我将站点从生产服务器同步到本地环境时,我得到了这种情况。原来是我的临时文件路径无效导致问题。能够通过drush快速修复它:drush vset file_temporary_path /tmp

最新更新