将 WordPress 站点从一台服务器迁移到另一台服务器后,我们看到以下错误。
lessphp fatal error: load error:
failed to find /hermes/bosnaweb18a/b2978/ipw.m3federalcom/public_html/m3federal/wp-content/themes/theme44107/bootstrap/less/bootstrap.less
lessphp fatal error: load error:
failed to find /hermes/bosnaweb18a/b2978/ipw.m3federalcom/public_html/m3federal/wp-content/themes/theme44107/style.less
有问题的域位于停放的测试域 (cerwebtest.net) 上,单击除主页以外的任何页面后,您将在顶部看到错误。我们已将 WordPress 管理门户中的所有插件/WordPress 更新为最新版本。我已经验证错误中的文件确实存在。我已经尝试(根据 this resource )删除 bootstrap.less.cache 和 style.less.cache 文件以试图强制它查看 .less
文件以生成站点。它只修复了主页上的错误,但没有修复任何子页面。即使调用这些文件但未找到/使用它们的东西,该站点似乎也能正确加载。关于需要做什么来纠正错误有什么想法吗?
最佳答案
我刚刚遇到了同样的错误。我通过删除错误消息中指定文件的文件夹中的 .cache 文件来摆脱它。
删除 /wp-content/themes/theme44107/bootstrap/less/bootstrap.less.cache /wp-content/themes/theme44107/style.less.cache
之后错误消息消失,网站正常运行。
关于php - lessphp fatal error : load error: failed to find error after migrating wordpress website to new server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37164439/