这里的问题很严重。我在包括wp admin在内的所有页面上都出现了这个错误,似乎是在我删除非活动主题之后发生的。
Notice: Undefined index: viewall in /home/sites/arch4.co.uk/public_html/wp-content/themes/arch4/functions-woocommerce.php on line 25 Warning: require(/home/sites/arch4.co.uk/public_html/wp-content/themes/storefront/inc/init.php): failed to open stream: No such file or directory in /home/sites/arch4.co.uk/public_html/wp-content/themes/storefront/functions.php on line 11 Fatal error: require(): Failed opening required \'/home/sites/arch4.co.uk/public_html/wp-content/themes/storefront/inc/init.php\' (include_path=\'.:/usr/share/pear53:/usr/share/php:/usr/share/ZendFramework\') in /home/sites/arch4.co.uk/public_html/wp-content/themes/storefront/functions.php on line 11
我从备份中再次上传了删除的主题,甚至从备份中上传了整个wordpress安装。我还尝试通过phpmyadmin停用所有插件。
提前感谢
<小时>UPDATE - 我通过phpmyadmin重置为默认主题,因此现在可以访问wp admin,但每当我尝试将主题更改为其他内容时,这些主题都会出现相同的错误。
最合适的回答,由SO网友:bynicolas 整理而成
WP正在尝试加载arch4
主题我认为这是一个儿童主题storefront
但它没有找到所需的init.php
文件,因为我猜您没有安装storefront。
尝试通过转到安装storefrontappearance->Themes->Add New 然后尝试重新激活主题