Support » Fixing WordPress » Fatal Error

  • Resolved Lindsay Whitehead



    I got an email from WordPress today to say a plugin caused a fatal error on my site. The error is below.

    Fatal error: Uncaught ReflectionException: Method get_site_editor_type does not exist in /home/customer/www/ Stack trace: #0 /home/customer/www/ ReflectionClass->getMethod(‘get_site_editor…’) #1 /home/customer/www/ ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_site_editor_type_bc() #2 /home/customer/www/ ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_create_url() #3 /home/customer/www/ Elementor\Core\Common\Mo in /home/customer/www/ on line 47

    I was able to log in to WordPress in recovery mode and disable the plugin, and now my site is working again. I have also contacted Elementor support, but I wanted to see if anyone could tell me what caused this error and if it was my fault or if I can fix it.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • HI,
    Go to below path

    and find the below line
    $method = $reflection->getMethod( ‘get_site_editor_type’ );


    and comment it above line and use like this:

    //$method = $reflection->getMethod( ‘get_site_editor_type’ );

    if ( $class_name === $method->class ) {
    return static::get_site_editor_type();

    Thread Starter Lindsay Whitehead


    Hi Yadav,

    Thank you for your response. Unfortunately, it’s over my head. However, I do understand how to go to that path and did so. The line…
    $method = $reflection->getMethod( ‘get_site_editor_type’ );
    …does not exist (I used the find function searching for part and the whole line).

    Feel free to respond again, I will monitor it. But Elementor is responding to my email.

    The problem was elementor pro was not updated for some reason. THe update fixed that error and caused another fatal error.

    Fatal error: Uncaught Error: Call to undefined method ElementorPro\Modules\Forms\Module::add_form_action() in /home/customer/www/ Stack trace: #0 /home/customer/www/ registerAWeberFormAction('') #1 /home/customer/www/ WP_Hook->apply_filters('', Array) #2 /home/customer/www/ WP_Hook->do_action(Array) #3 /home/customer/www/ do_action('elementor_pro/i...') #4 /home/customer/www/ ElementorPro\Plugin->on_elementor_init('') #5 /home/customer/www/ WP_Hook->apply_filters('', Array) #6 /home/customer/www/ in /home/customer/www/ on line 209


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.