• Resolved umoekagodman0

    (@umoekagodman0)


    Once enabled, it crash my site and threw a critical error on all pages.

    My site theme is escortwp.com

    THE BUG:

    Plugin is calling a method that does not exist. 😔 I also noticed that there’s no screenshot that shows the plugin language switcher on the plugin page – no frontend screenshot.

    ERROR MESSAGE IS AS FOLLOWS:

    [10-Aug-2026 15:09:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WGRANK_Switcher::get_supported_languages() in /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php:243 Stack trace: #0 /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php(114): WGRANK_Switcher->flag_img(‘en’) #1 /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php(163): WGRANK_Switcher->render_switcher(‘floating’) #2 /home/cprepkeb/public_html/wp-includes/class-wp-hook.php(341): WGRANK_Switcher->render_floating_button(”) #3 /home/cprepkeb/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #4 /home/cprepkeb/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #5 /home/cprepkeb/public_html/wp-includes/general-template.php(3224): do_action(‘wp_footer’) #6 /home/cprepkeb/public_html/wp-content/themes/escortwp-child/footer.php(108): wp_footer() #7 /home/cprepkeb/public_html/wp-includes/template.php(814): require_once(‘/home/cprepkeb/…’) #8 /home/cprepkeb/public_html/wp-includes/template.php(749): load_template(‘/home/cprepkeb/…’, true, Array) #9 /home/cprepkeb/public_html/wp-includes/general-template.php(92): locate_template(Array, true, true, Array) #10 /home/cprepkeb/public_html/wp-content/themes/escortwp-child/single-review.php(116): get_footer() #11 /home/cprepkeb/public_html/wp-includes/template-loader.php(132): include(‘/home/cprepkeb/…’) #12 /home/cprepkeb/public_html/wp-blog-header.php(19): require_once(‘/home/cprepkeb/…’) #13 /home/cprepkeb/public_html/index.php(17): require(‘/home/cprepkeb/…’) #14 {main} thrown in /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php on line 243 [10-Aug-2026 15:09:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WGRANK_Switcher::get_supported_languages() in /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php:243 Stack trace: #0 /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php(114): WGRANK_Switcher->flag_img(‘en’) #1 /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php(163): WGRANK_Switcher->render_switcher(‘floating’) #2 /home/cprepkeb/public_html/wp-includes/class-wp-hook.php(341): WGRANK_Switcher->render_floating_button(”) #3 /home/cprepkeb/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #4 /home/cprepkeb/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #5 /home/cprepkeb/public_html/wp-includes/general-template.php(3224): do_action(‘wp_footer’) #6 /home/cprepkeb/public_html/wp-content/themes/escortwp-child/footer.php(108): wp_footer() #7 /home/cprepkeb/public_html/wp-includes/template.php(814): require_once(‘/home/cprepkeb/…’) #8 /home/cprepkeb/public_html/wp-includes/template.php(749): load_template(‘/home/cprepkeb/…’, true, Array) #9 /home/cprepkeb/public_html/wp-includes/general-template.php(92): locate_template(Array, true, true, Array) #10 /home/cprepkeb/public_html/wp-content/themes/escortwp-child/taxonomy.php(143): get_footer() #11 /home/cprepkeb/public_html/wp-includes/template-loader.php(132): include(‘/home/cprepkeb/…’) #12 /home/cprepkeb/public_html/wp-blog-header.php(19): require_once(‘/home/cprepkeb/…’) #13 /home/cprepkeb/public_html/index.php(17): require(‘/home/cprepkeb/…’) #14 {main} thrown in /home/cprepkeb/public_html/wp-content/plugins/wgrank-multilingual/includes/class-wgrank-switcher.php on line 243

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter umoekagodman0

    (@umoekagodman0)

    /**

    • FIX: Added missing method – get_supported_languages()
    • This fixes the fatal error: Call to undefined method WGRANK_Switcher::get_supported_languages()
      */
      private function get_supported_languages() {
      return $this->get_all_languages();
      }

    Kindly do this and reupload the plugin, so it would be fix for everyone.

    Plugin Author Anil Singh

    (@singhanilit)

    Wow, thank you so much for the detailed bug report and for even providing the exact code fix! You are a lifesaver! 🙏

    You are absolutely right. It was a typo in our recent update where the method was incorrectly called as get_supported_languages() instead of get_all_languages().

    We have already implemented this exact fix and pushed it in our latest release (v1.1.0) which also includes a few other important stability fixes.

    Please update to the latest version. We really appreciate your technical contribution and support! 🚀

    Thread Starter umoekagodman0

    (@umoekagodman0)

    “We have already implemented this exact fix and pushed it in our latest release (v1.1.0) which also includes a few other important stability fixes.”

    There’s no such thing as WGRank version 1.1.0 in the WordPress respository.

    The available update version is 1.0.7 which does not solve any of the highlighted troubles.

    And why is v1.0.7 authored by AndyGuru instead of Anil Singh? 🤔

    PS.

    If you don’t mind, I can provide you with Complete Fixed Version of the trouble class-wgrank-switcher.php

    Plugin Author Anil Singh

    (@singhanilit)

    Thank you for pointing this out, and apologies for the confusion.

    The latest version is v1.1.0, which includes fixes for the reported issues along with additional stability improvements. If your dashboard still shows v1.0.7, please download and install v1.1.0 directly from WordPress.org.

    Regarding the author name AndyGuru on v1.0.7, there is no issue with that. AndyGuru was my previous WordPress username/nicename, and it refers to me. I have now updated the author name to my real name, Anil Singh, in the latest release.

    Please try v1.1.0 first. If you still experience any issues, feel free to share the details and we’ll be happy to investigate further.

    Thank you for helping us improve WGRank!

    Thread Starter umoekagodman0

    (@umoekagodman0)

    This bug was fixed, in WGRank version 1.1.0 ✅

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

You must be logged in to reply to this topic.