Title: Fatal error: Uncaught ReflectionException:
Last modified: August 29, 2022

---

# Fatal error: Uncaught ReflectionException:

 *  [captainhookssushi](https://wordpress.org/support/users/captainhookssushi/)
 * (@captainhookssushi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/)
 * Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not
   exist in /home/customer/www/captainhookssushi.com/public_html/wp-content/plugins/
   elementor-pro/modules/theme-builder/documents/theme-document.php:45 Stack trace:#
   0 /home/customer/www/captainhookssushi.com/public_html/wp-content/plugins/elementor-
   pro/modules/theme-builder/documents/theme-document.php(45): ReflectionClass->
   getMethod(‘get_site_editor…’) #1 /home/customer/www/captainhookssushi.com/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/captainhookssushi.com/public_html/wp-content/plugins/elementor/
   core/common/modules/finder/categories/create.php(94): ElementorPro\Modules\ThemeBuilder\
   Documents\Theme_Document::get_create_url() #3 /home/customer/www/captainhookssushi.
   com/public_html/wp-content/plugins/elementor/core/common/modules/finder/categories/
   create.php(67): Elementor\Core in /home/customer/www/captainhookssushi.com/public_html/
   wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.
   php on line 45
    There has been a critical error on this website.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-reflectionexception-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-15960996)
 * The error occurs in the Elementor Pro plugin. I would recommend uploading the
   plugin again – perhaps only one file is missing. Otherwise, please contact the
   support of this commercial plugin: [https://elementor.com/support/](https://elementor.com/support/)
 *  Thread Starter [captainhookssushi](https://wordpress.org/support/users/captainhookssushi/)
 * (@captainhookssushi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-15961020)
 * How do I re-install the plugin if I cannot get into the WordPress dashboard/index?
   Once I hit login it takes me to the error page.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-15961051)
 * Download the plugin package from the developer and unpack it locally on your 
   computer in an empty directory. Then connect to your hoster via FTP and upload
   the unzipped directories and files to the plugin directory. This should be in
   wp-content/plugins/elementor-pro in your case.
 * If you need help with the FTP connection, you can contact your hoster support.
   They will also provide you with the access data.
 *  [haroonmohal](https://wordpress.org/support/users/haroonmohal/)
 * (@haroonmohal)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16216750)
 * I was facing the same issue, I renamed the elementor-pro with elementor-pro1.
   so now I can access the dashboard finally.
 *  [Sakhawat Jameel Tanoli](https://wordpress.org/support/users/sakhawat92/)
 * (@sakhawat92)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16461916)
 * [@haroonmohal](https://wordpress.org/support/users/haroonmohal/) but that made
   plugin inactive but if you don’t want to edit website anymore using elementor
   than its ok.
    -  This reply was modified 3 years, 3 months ago by [Sakhawat Jameel Tanoli](https://wordpress.org/support/users/sakhawat92/).
 *  [Rahul Kumar](https://wordpress.org/support/users/adminwebdev/)
 * (@adminwebdev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16631908)
 * **Change the code**
 *     ```wp-block-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();
       }
       ```
   
 * **By**
 *     ```wp-block-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();
           }
       }
       ```
   
 * **elementor-pro file:**
   /home/customer/www/captainhookssushi.com/public_html/
   wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.
   php:45Guys in my case it’s working fine.I think if you will use this code then
   your issue will be solved.
 * Thanks
 *  [Rahul Kumar](https://wordpress.org/support/users/adminwebdev/)
 * (@adminwebdev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16631930)
 * [@haroonmohal](https://wordpress.org/support/users/haroonmohal/)
   Hey haroonmohal..
   yes if you change the plugin name after that you will access the dashboard ..
   but it’s not a permanent.
 *  [Krystian Różycki](https://wordpress.org/support/users/krozycki/)
 * (@krozycki)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16633642)
 * [@adminwebdev](https://wordpress.org/support/users/adminwebdev/) It worked! Thank
   you kindly, Good Man, for your solution to fix this issue! 🙂
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16634353)
 * This will only work until the next Elementor Pro update. For a permanent working
   solution please contact Elementor Pro support.
 *  [cheteronda](https://wordpress.org/support/users/cheteronda/)
 * (@cheteronda)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16727451)
 * Hola, [@adminwebdev](https://wordpress.org/support/users/adminwebdev/) ha funcionando
   perfecto.
 * Recomendable siempre hacer backup del fichero por si las moscas.
 * Gracias
 *  [lnvndrhydn](https://wordpress.org/support/users/lnvndrhydn/)
 * (@lnvndrhydn)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16759340)
 * Thank you Rahul Kumar. Your code helped me too!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Fatal error: Uncaught ReflectionException:’ is closed to new replies.

## Tags

 * [pro](https://wordpress.org/support/topic-tag/pro/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 8 participants
 * Last reply from: [lnvndrhydn](https://wordpress.org/support/users/lnvndrhydn/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-reflectionexception-4/#post-16759340)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
