If you are getting below error in Elementor website, you are not alone.
Backend fatal error: PHP Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /home/hostathash/domains/hostathash.com/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:48
We have a quick fix for this issue for your website which you can apply to solve this error
Go to folder /wp-content/plugins/elementor-pro/modules/theme-builder/documents/ in file manager and edit file theme-document.php
Go to line number 45 and find the below code:
$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();
}
Replace the code with the below one:
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();
}
}
Once the code has been replaced, your website should no longer show any error.
Feel free to comment if you are facing any issues.
