• Resolved Lindsay Whitehead

    (@lindsaywhitehead)


    Hi.

    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/millineryhub.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:47 Stack trace: #0 /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(47): ReflectionClass->getMethod(‘get_site_editor…’) #1 /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(128): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document::get_site_editor_type_bc() #2 /home/customer/www/millineryhub.com.au/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/millineryhub.com.au/public_html/wp-content/plugins/elementor/core/common/modules/finder/categories/create.php(67): Elementor\Core\Common\Mo in /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php 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
    /wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php

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

    (content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:47)

    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

    (@lindsaywhitehead)

    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/millineryhub.com.au/public_html/wp-content/plugins/aweber-web-form-widget/aweber.php:209 Stack trace: #0 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(307): registerAWeberFormAction('') #1 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /home/customer/www/millineryhub.com.au/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/elementor-pro/plugin.php(372): do_action('elementor_pro/i...') #4 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(307): ElementorPro\Plugin->on_elementor_init('') #5 /home/customer/www/millineryhub.com.au/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #6 /home/customer/www/millineryhub.com.au/public_html/wp-incl in /home/customer/www/millineryhub.com.au/public_html/wp-content/plugins/aweber-web-form-widget/aweber.php on line 209

    Thanks

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