我启用了s3fs模块,并且在drush clear cache期间我收到了以下警告消息: is_dir():无法找到包装器“public” - 您在配置PHP时是否忘记启用它? file.inc
这里的细节(网络服务器Nginx和操作系统是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).
答案 0 :(得分:0)
并非每个错误都可能出现这种情况,但是当我将站点从生产服务器同步到本地环境时,我得到了此消息。原来是我的临时文件路径无效导致此问题。能够通过匆忙修复它:drush vset file_temporary_path /tmp
。