elementor-page-builder, Elementor Issues,

Uncaught ReflectionException: Method get_site_editor_type does not exist : Elementor Fatal error

If you are facing this issue (Uncaught ReflectionException: Method get_site_editor_type does not exist), in WordPress using Elementor pro, simple Follow my instructions, your issue will be resolve.

Solution

01: Open theme-document.php file using this directory– /wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php

02: Copy this code line and find, this code will appear on line 45 or 47.
{$reflection = new \ReflectionClass( $class_name );}

03:
so you need to select this code


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

04: Replace with this code

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

Fatal error-Uncaught ReflectionException, Elementor Issues and Solutions