• 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 to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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/

    Thread Starter captainhookssushi

    (@captainhookssushi)

    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.

    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.

    I was facing the same issue, I renamed the elementor-pro with elementor-pro1. so now I can access the dashboard finally.

    @haroonmohal but that made plugin inactive but if you don’t want to edit website anymore using elementor than its ok.

    Change the 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

    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:45

    Guys in my case it’s working fine.
    I think if you will use this code then your issue will be solved.

    Thanks

    @haroonmohal
    Hey haroonmohal.. yes if you change the plugin name after that you will access the dashboard .. but it’s not a permanent.

    @adminwebdev It worked! Thank you kindly, Good Man, for your solution to fix this issue! ??

    This will only work until the next Elementor Pro update. For a permanent working solution please contact Elementor Pro support.

    Hola, @adminwebdev ha funcionando perfecto.

    Recomendable siempre hacer backup del fichero por si las moscas.

    Gracias

    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.