• Resolved Miguel Raya

    (@mikeraya)


    Hello, first of all, thanks for the work done on this plugin.

    Everything was working fine until today, WordPress sends me critical errors when I try to load the Elementor editor.

    I checked the debug.log file on my site and this is what I got:

    [04-Jun-2020 03:33:48 UTC] PHP Fatal error:  Uncaught Error: Class 'GMW_Current_Location' not found in /home/chibacom/public_html/wp-content/plugins/geo-my-wp/plugins/current-location/includes/class-gmw-current-location-widget.php:203
    Stack trace:
    #0 /home/chibacom/public_html/wp-content/plugins/elementor/includes/widgets/wordpress.php(271): GMW_Current_Location_Widget->widget(Array, Array)
    #1 /home/chibacom/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(531): Elementor\Widget_WordPress->render()
    #2 /home/chibacom/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(644): Elementor\Widget_Base->render_content()
    #3 /home/chibacom/public_html/wp-content/plugins/elementor/includes/base/element-base.php(720): Elementor\Widget_Base->get_raw_data(true)
    #4 /home/chibacom/public_html/wp-content/plugins/elementor/includes/base/element-base.php(720): Elementor\Element_Base->get_raw_data(true)
    #5 /home/chibacom/public_html/wp-content/plugins/elementor/core/base/document.php(714): Elementor\Element_Base->get_raw_data(true)
     in /home/chibacom/public_html/wp-content/plugins/geo-my-wp/plugins/current-location/includes/class-gmw-current-location-widget.php on line 203

    I went back to the previous version of Elementor and nothing. I reinstalled GEO my WP and nothing. But if I disable the plugin, everything loads fine.

    Any suggestion or hint of what might fix it?

    Thanks for your time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @mikeraya,

    I see where the issue is. I already applied a fix to the plugin and I hope to release a new version within the next few days.

    Until then, if you are comfortable editing a core file of the plugin, you can apply temporary fix on your site.

    To do so, please open the file geo-my-wp/plugins/current-location/includes/class-gmw-current-location-widget.php and replace lines 203 to 205 which should be:

    
    $current_location = new GMW_Current_Location( $instance );
    
    echo $current_location->output();
    

    with

    
    if ( class_exists( 'GMW_Current_Location' ) ) {
    
        $current_location = new GMW_Current_Location( $instance );
    
        echo $current_location->output();
    }
    

    Then save the file and test it to see if it works.

    I hope this helps.

    • This reply was modified 5 years, 10 months ago by Eyal Fitoussi.
    • This reply was modified 5 years, 10 months ago by Eyal Fitoussi.
    Thread Starter Miguel Raya

    (@mikeraya)

    It works! Everything has returned to normal.

    Thank you for taking the time, I proceed to leave the corresponding review. Have a nice day!

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

The topic ‘Critical Error with Elementor’ is closed to new replies.