首页 > 解决方案 > WordPress 自定义页面不显示

问题描述

当我尝试访问我的 WordPress 项目上的自定义页面时,我收到一个错误。禁用Redux plugin后错误消失。问题是,我真的需要项目中的 redux 插件,因为许多其他插件都依赖于它。下面的错误

Fatal error: Uncaught TypeError: Argument 3 passed to Redux_Extension_Customizer::add_section() 
must be an instance of object, instance of WP_Customize_Manager given, 
called in C:\laragon\www\church-site\wp-content\plugins\redux-framework\redux-core\inc\extensions\customizer\class-redux-extension-customizer.php on line 411 
and defined in C:\laragon\www\church-site\wp-content\plugins\redux-framework\redux-core\inc\extensions\customizer\class-redux-extension-customizer.php:574 

Stack trace: 
#0 C:\laragon\www\church-site\wp-content\plugins\redux-framework\redux-core\inc\extensions\customizer\class-redux-extension-customizer.php(411): Redux_Extension_Customizer->add_section('redux_demo-mt_g...', Array, Object(WP_Customize_Manager)) 
#1 C:\laragon\www\church-site\wp-includes\class-wp-hook.php(303): Redux_Extension_Customizer->register_customizer_controls(Object(WP_Customize_Manager)) 
#2 C:\laragon\www\church-site\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) 
#3 C:\laragon\www\church-site\wp-includes\plugin.php(470): WP_Hook->do_action(Array) 
#4 in C:\laragon\www\church-site\wp-content\plugins\redux-framework\redux-core\inc\extensions\customizer\class-redux-extension-customizer.php on line 574

标签: wordpressredux

解决方案


推荐阅读