首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wordpress Elementor Pro post更新错误

Wordpress Elementor Pro post更新错误
EN

Stack Overflow用户
提问于 2022-09-27 07:05:58
回答 1查看 430关注 0票数 1

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-09-27 07:51:09

解决方案1:

您也可以简单地注释掉/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php中的行。第46行

代码语言:javascript
复制
$method = $reflection->getMethod( 'get_site_editor_type' );

解决方案2:

替换theme-document.php中的代码

代码语言:javascript
复制
$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();
}

通过

代码语言:javascript
复制
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();
    }
}

来源

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73863606

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档