空白页“活动主题已损坏.恢复到默认主题“,在WordPress Vagrant上


Blank page "The active theme is broken. Reverting to the default theme." on WordPress Vagrant

我在访问本地时有一个空白页面,但是我可以登录/wp_admin并更改主题。在外观菜单中,我有:

The active theme is broken. Reverting to the default theme.

我该如何解决这个问题?


希望一些信息可以帮助您理解。由于这是一个流浪者安装,在站点根目录中,我有:

/web
/assets

web,我们有WordPress安装。 web/wp/wp_content/themes包含所有默认的Wordpress主题,即十三个。设置后,这些主题工作正常。

assets中,我有实际的自定义主题,该主题需要保留在该文件夹中,因为 Gulp 会重新生成主题并在发生更改时/less/js文件。这是在管理员中显示为损坏的主题。

自定义主题使用 web/app/themes 中的文件引用。

通了。

如果有人遇到此问题,请将您的VirtualBox更新为最新版本。主题的符号链接正在生成像..'..'这样的路径的反斜杠,它应该被../../assets/theme_name