在尝试解决Woocommerce的一些问题时,我在孩子主题和父主题之间切换。儿童已经活跃了一段时间,到目前为止没有任何问题。切换回后,它仅在我的本地主机上显示空白页。我在wp-config.php
中打开了调试模式,但是没有显示错误。
样式表仍然处于活动状态,因此我怀疑该错误与PHP有关。我尝试使用父母index.php
文件,但这也给了我一个空白站点。当我切换到父主题时,一切正常。
有人知道如何恢复该网站吗?
编辑:
来自debug.log
[11-Sep-2018 20:39:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined function twentyseventeen_is_frontpage() in /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/site-branding.php:33
Stack trace:
#0 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(690): require()
#1 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(647): load_template('/Users/vincent/...', false)
#2 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/general-template.php(155): locate_template(Array, true, false)
#3 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/header-image.php(18): get_template_part('template-parts/...', 'branding')
#4 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(690): require('/Users/vincent/...')
#5 /Users/vincent/Documents/work/we in /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/site-branding.php on line 33
[11-Sep-2018 20:39:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined function twentyseventeen_is_frontpage() in /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/site-branding.php:33
Stack trace:
#0 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(690): require()
#1 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(647): load_template('/Users/vincent/...', false)
#2 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/general-template.php(155): locate_template(Array, true, false)
#3 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/header-image.php(18): get_template_part('template-parts/...', 'branding')
#4 /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-includes/template.php(690): require('/Users/vincent/...')
#5 /Users/vincent/Documents/work/we in /Users/vincent/Documents/work/websites/piper+speck/local/piper-speck/wp-content/themes/twentyseventeen-child/template-parts/header/site-branding.php on line 33