Iv最近得到了这个错误下面,iv尝试更新我的插件和主题一个一个,问题似乎发生后,更新元素或wordpress的最新版本。我不知道该做什么来解决这个问题,目前我正在恢复更新前的备份,以添加新内容。Iv最近停止了支付elementor的费用,并开始使用免费版本,这能解决这个问题吗?
致命错误: Uncaught : /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(45):堆栈跟踪中不存在方法get_site_editor_type:#0 /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(45):ReflectionClass->getMethod('get_site_editor )#1 /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(126):ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_site_editor_type_bc() #2 /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor/core/common/modules/finder/categories/create.php(94)*第45行ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_create_url() #3 /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor/core/common/modules/finder/categories/create.php(67):Elementor in /home/customer/www/catalystcentral.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php
发布于 2022-09-27 07:51:09
解决方案1:
您也可以简单地注释掉/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php中的行。第46行
$method = $reflection->getMethod( 'get_site_editor_type' );解决方案2:
替换theme-document.php中的代码
$reflection = new \ReflectionClass( $class_name ); //45 line
$method = $reflection->getMethod( 'get_site_editor_type' );
// It's own method, use it.
if ( $class_name === $method->class ) {
return static::get_site_editor_type();
}通过
if (method_exists($class_name, "get_site_editor_type")) {
$reflection = new \ReflectionClass( $class_name );
$method = $reflection->getMethod( 'get_site_editor_type' );
// It's own method, use it.
if ( $class_name === $method->class ) {
return static::get_site_editor_type();
}
}https://stackoverflow.com/questions/73863606
复制相似问题