wordpress 我得到致命错误:未捕获的错误:调用未定义的函数add_theme_support()

fgw7neuy  于 12个月前  发布在  WordPress
关注(0)|答案(1)|浏览(113)

我在我WordPress网站上得到致命错误,

Fatal error: Uncaught Error: Call to undefined function add_theme_support() in /home/globalunairac/public_html/wp-includes/block-patterns.php:9 Stack trace: #0 /home/globalunairac/public_html/wp-settings.php(320): require() #1 /home/globalunairac/public_html/wp-config.php(97): require_once('/home/globaluna...') #2 /home/globalunairac/public_html/wp-load.php(50): require_once('/home/globaluna...') #3 /home/globalunairac/public_html/wp-blog-header.php(13): require_once('/home/globaluna...') #4 /home/globalunairac/public_html/index.php(17): require('/home/globaluna...') #5 {main} thrown in /home/globalunairac/public_html/wp-includes/block-patterns.php on line 9

Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/globalunairac/public_html/wp-includes/functions.php on line 5833

Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/globalunairac/public_html/wp-includes/functions.php on line 5833
There has been a critical error on this website.

这个问题的解决方案是什么?我试图重命名主题和插件文件夹,仍然没有工作
我试图重命名主题和插件文件夹,仍然没有工作

avwztpqn

avwztpqn1#

请完成以下步骤:

1.进入插件设置页面;
1.打开“自定义代码”选项卡,在“PHP”部分中选中“激活自定义PHP代码”复选框,然后插入以下代码:

add_action( 'after_setup_theme', 'theme_setup' ); function theme_setup() { add_theme_support( 'post-thumbnails' );

1.保存更改。

相关问题