• eyeswiseopen

    (@eyeswiseopen)


    can anyone help fix this?

    Here is the error info:

    Uncaught Error: Class ‘Elementor\Scheme_Typography’ not found in /home/xxx/public_html/wp-content/plugins/modal-for-elementor/widgets/popup.php:185

    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2280): ElementorModal\Widgets\ElementorModal->_register_controls()
    #1 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(494): Elementor\Controls_Stack->init_controls()
    #2 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(177): Elementor\Controls_Stack->get_stack()
    #3 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(300): Elementor\Widget_Base->get_stack()
    #4 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2369): Elementor\Controls_Stack->get_controls()
    #5 /home/xxx/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(1105): Elementor\Controls_Stack->sanitize_settings(Array)
    #6

Viewing 15 replies - 1 through 15 (of 17 total)
  • in the below file change the code like below at the top
    modal-for-elementor/widgets/popup.php basically use Elementor\Scheme_Typography; has to come on top.

    use Elementor\Scheme_Typography;
    namespace ElementorModal\Widgets;
    
    use Elementor\Widget_Base;
    use Elementor\Controls_Manager;
    use Elementor\Group_Control_Typography;
    
    use Elementor\Scheme_Color;
    use Elementor\Group_Control_Border;
    use Elementor\Group_Control_Background;
    use Elementor\Group_Control_Box_Shadow;
    use Elementor\Frontend;
    use WP_Query;
    
    generactevan

    (@generactevan)

    Will you be updated and compatible with the latest Elementor upgrade? I see this plugin as flagged for lack of compatibility. I too have experienced problems on both staging & production sites with two remedies…deactivate your plugin, or revert to back-up with previous version of Elementor.

    Kind Regards,
    Evan

    @generactevan Hi No I am not the plugin developer and the fix I give will make the plugin work.
    I am an Individual developer and got a client came up with the error. fixed it for them and updated the solution over here.

    generactevan

    (@generactevan)

    Thanks.

    saharch

    (@saharch)

    I have the same problem. Critical error. Here is my error log:
    Fatal error: Uncaught Error: Class "Elementor\Scheme_Typography" not found in /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/modal-for-elementor/widgets/popup.php:185 Stack trace: #0 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2280): ElementorModal\Widgets\ElementorModal->_register_controls() #1 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(494): Elementor\Controls_Stack->init_controls() #2 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/widget-base.php(177): Elementor\Controls_Stack->get_stack() #3 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(300): Elementor\Widget_Base->get_stack() #4 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2369): Elementor\Controls_Stack->get_controls() #5 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(1105): Elementor\Controls_Stack->sanitize_settings() #6 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2116): Elementor\Controls_Stack->get_data() #7 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack->get_init_settings() #8 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings() #9 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(296): Elementor\Core\Base\Base_Object->get_settings() #10 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles() #11 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(298): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules() #12 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles() #13 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(298): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules() #14 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\Files\CSS\Post->render_styles() #15 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/base.php(632): Elementor\Core\Files\CSS\Post->render_css() #16 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/base.php(180): Elementor\Core\Files\CSS\Base->parse_content() #17 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/base.php(131): Elementor\Core\Files\Base->update_file() #18 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/base.php(218): Elementor\Core\Files\CSS\Base->update() #19 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/core/files/css/post.php(201): Elementor\Core\Files\CSS\Base->enqueue() #20 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/elementor/includes/frontend.php(639): Elementor\Core\Files\CSS\Post->enqueue() #21 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/class-wp-hook.php(307): Elementor\Frontend->enqueue_styles() #22 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #23 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action() #24 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/script-loader.php(2105): do_action() #25 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #26 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #27 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action() #28 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/general-template.php(3042): do_action() #29 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/themes/architecturer/header.php(48): wp_head() #30 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/template.php(770): require_once('...') #31 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/template.php(716): load_template() #32 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/general-template.php(48): locate_template() #33 /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/themes/architecturer/page.php(34): get_header() #34 /var/www/vhosts/saharchitects.lu/httpdocs/wp-includes/template-loader.php(106): include('...') #35 /var/www/vhosts/saharchitects.lu/httpdocs/wp-blog-header.php(19): require_once('...') #36 /var/www/vhosts/saharchitects.lu/httpdocs/index.php(17): require('...') #37 {main} thrown in /var/www/vhosts/saharchitects.lu/httpdocs/wp-content/plugins/modal-for-elementor/widgets/popup.php on line 185

    saharch

    (@saharch)

    @sbhuvan, I tried editing the widget popup.php as you said, and I then got a critical error on the entire website.

    saharch

    (@saharch)

    Is there really no other support for this plugin than this forum? We need this to be fixed asap! Our clients cannot download our guides. This is a serious problem and we need help with it.

    Thread Starter eyeswiseopen

    (@eyeswiseopen)

    My solution:
    deleted this plugin
    install Premium Addons for Elementor
    it has a modal widget that does the same and can be triggered by a button
    no need for separate post for the popup it is all in the widget.

    I used this plugin on a number of sites – luckily in most cases it was in a template so only had to change it in one place.

    saharch

    (@saharch)

    Ok, thanks. Meanwhile, I tried restoring to an earlier backup with Updraft Plus and just crashed my entire site. So bigger problems to deal with now.

    @saharch I am not sure if I can share my personal details here.
    I do offer wordpress bug fix service.
    you can rename this plugin folder if it still dont work you can reach me.

    saharch

    (@saharch)

    Thank you @sbhuvan, at the moment I have some support helping me, but if I get stuck, I might come back to you.

    saharch

    (@saharch)

    Elementor support helped me get the website back and thank you @eyeswiseopen! That was a very good solution.

    weiswerks

    (@mwbarican)

    For anyone experiencing the same issue, I was able to fix it by changing the scheme values on line 185
    from:

    'scheme' => Scheme_Typography::TYPOGRAPHY_4,

    to:

    'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_4,

    same as Scheme_Color on line 446
    from:

    'type' => Scheme_Color::get_type(),
    'value' => Scheme_Color::COLOR_4,

    to:

    'type' => \Elementor\Core\Schemes\Color::get_type(),
    'value' => \Elementor\Core\Schemes\Color::COLOR_1,

    @mwbarican does seem to fix the issue – This is in the file popup.php

    I also found an instance in popup-load.php on line 191 that I would recommend making the same change to Scheme_Typography

    None of the suggested fixes worked for me. Too bad. This plugin worked great for a long time. Will have to look for a substitute.

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘plugin creates critical error’ is closed to new replies.