在我的live WordPress站点上看到一个严重错误(死亡的白屏)后,我打开了wp配置中的调试。并查看以下错误消息。我没有改变网站上的任何东西,但插件设置为自动更新。(编辑)木材在v1上。19,这是最新版本,可能已经损坏了一些东西。
致命错误:未捕获类型错误:传递给Twig\CacheExtension\CacheStrategy\GenerationalCacheStrategy::\uu construct()的参数1必须是Twig\CacheExtension\CacheProviderInterface的实例,给定的Timber\Cache\WPObjectCacheAdapter实例,在/home/runcloud/webapps/vitahomes/wp content/plugins/Timber lib/Loader中调用。php位于第282行,在/home/runcloud/webapps/vitahomes/wp content/plugins/timber library/vendor/twig/cache extension/lib/twig/CacheExtension/CacheStrategy/generationalcachestategy中定义。php:43堆栈跟踪:#0/home/runcloud/webapps/vitahomes/wp content/plugins/timber library/lib/Loader。php(282):细枝\缓存扩展\缓存策略\生成缓存策略-
此网站出现严重错误。
详细了解如何排除WordPress故障。
是什么导致了这个错误?
在此解决:https://github.com/timber/timber/issues/2494
我使用了一个木材/细枝启动主题,该主题具有composer自动加载功能。php一旦被注释,站点将无误加载。