PHP Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist
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.
Server Error (500) when trying to access the Cyberpanel If you are getting this error while accessing the cyberpanel, there…
How to connect git with DirectAdmin Login into SSH and run the following command to create a new key pair…
How to host next js app in cpanel Login > Setup Node.js App > Create Application Enter the values shown…
Update via PHPMYADMIN: Disable Captcha : UPDATE tblconfiguration SET value = '' WHERE setting = 'CaptchaSetting'; Update WHMCS link: UPDATE…
3dsecure Access Denied Affiliates Affiliates Signup Announcements Banned Configure Products Downloads Downloads Denied Error Login Logout Password Reset Ticket Feedback…
Export Database via SSH mysqldump --routines -u databaseusername -p databasename > database.sql Import Database via SSH mysql -u databaseusername…