小编Woj*_*ech的帖子

致命错误:未捕获ReflectionException:方法 get_site_editor_type 不存在

从字面上看,在网站上什么都不做之后,几天没有使用后,尝试登录时,会出现这样的错误:

Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /usr/home/midas/domains/mydomain.com/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:45
Run Code Online (Sandbox Code Playgroud)

主题文档.php:

protected static function get_site_editor_type_bc() {
    static $types = [];

    $class_name = static::get_class_full_name();

    $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();
    }

    // _deprecated_function( 'get_name', '3.0.0', 'get_site_editor_type' );

    // Fallback, get from class instance name (with caching).
    if ( isset( $types[ $class_name ] ) ) {
        return $types[ …
Run Code Online (Sandbox Code Playgroud)

wordpress elementor

63
推荐指数
4
解决办法
5万
查看次数

标签 统计

elementor ×1

wordpress ×1