Title: Fatal error with Polylang
Last modified: April 24, 2025

---

# Fatal error with Polylang

 *  Resolved [uppermarketing](https://wordpress.org/support/users/uppermarketing/)
 * (@uppermarketing)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/)
 * Hello,
 * It seems there is an error with the new Polylang update (3.7). It is not compatible
   with Connect Polylang for Elementor. As soon as I update the Polylang plugin 
   to 3.7, the website pops out. If I deactivate the Connect Polylang for Elementor
   plugin, it does work. But when I re-activate the Connect Polylang for Elementor
   plugin, it only works with Polylang version 3.6.7. How to fix this?

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

 *  Plugin Contributor [Sebastien SERRE](https://wordpress.org/support/users/sebastienserre/)
 * (@sebastienserre)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18433969)
 * Hello,
 * Thank you for reporting us an issue.
 * I’ve just tried Elementor + Connect Polylang for Elementor but I do not reproduce
   any error.
 * No errors are reported on [https://wordpress.org/support/plugin/connect-polylang-elementor/](https://wordpress.org/support/plugin/connect-polylang-elementor/)
 * What “The website pops out” means ?
   Do you have any error message ?Regards
 *  [Töm](https://wordpress.org/support/users/toem/)
 * (@toem)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18437876)
 * I have the same issue.
 * Connect Polylang for Elementor 2.4.6 and Ploylang 3.6.7 works
 * Connect Polylang for Elementor 2.4.6 and Ploylang 3.7 works not. WordPress shows
   only the “There has been a critical error on this website.”-Screen instead of
   the website. The Admin-Area is still working.
 *  Plugin Contributor [Sebastien SERRE](https://wordpress.org/support/users/sebastienserre/)
 * (@sebastienserre)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18438735)
 * Hello
   Would you please enable[ WordPress debug](https://wordpress.org/support/article/debugging-in-wordpress/),
   reproduce the error and share the debug.log ?
 * Regards
 *  [Töm](https://wordpress.org/support/users/toem/)
 * (@toem)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18438917)
 * Hello,
 * the error message:
 * `Fatal error: Uncaught Error: Call to undefined method PLL_Language::get_flag_informations()
   in /wp-content/plugins/connect-polylang-elementor/includes/widgets/polylang-language-
   switcher.php:785 Stack trace: #0 /wp-content/plugins/elementor/includes/base/
   controls-stack.php(2374): ConnectPolylangElementor\Widgets\PolylangLanguageSwitcher-
   >render() #1 /wp-content/plugins/elementor/includes/base/widget-base.php(636):
   Elementor\Controls_Stack->render_by_mode() #2 /wp-content/plugins/elementor/includes/
   base/widget-base.php(774): Elementor\Widget_Base->render_content() #3 /wp-content/
   plugins/elementor/includes/base/element-base.php(482): Elementor\Widget_Base-
   >print_content() #4 /wp-content/plugins/elementor/modules/element-cache/module.
   php(74): Elementor\Element_Base->print_element() #5 /wp-includes/shortcodes.php(
   434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache{closure}()#
   6 [internal function]: do_shortcode_tag() #7 /wp-includes/shortcodes.php(273):
   preg_replace_callback() #8 /wp-content/plugins/elementor/core/base/document.php(
   1867): do_shortcode() #9 /wp-content/plugins/elementor-pro/modules/theme-builder/
   documents/theme-document.php(412): Elementor\Core\Base\Document->print_elements()#
   10 /wp-content/plugins/elementor/includes/frontend.php(1203): ElementorPro\Modules\
   ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper() #11 /wp-
   content/plugins/elementor/core/base/document.php(1250): Elementor\Frontend->get_builder_content()#
   12 /wp-content/plugins/elementor/modules/library/documents/library-document.php(
   76): Elementor\Core\Base\Document->get_content() #13 /wp-content/plugins/elementor-
   pro/modules/theme-builder/documents/theme-document.php(158): Elementor\Modules\
   Library\Documents\Library_Document->get_content() #14 /wp-content/plugins/elementor-
   pro/modules/theme-builder/documents/theme-document.php(173): ElementorPro\Modules\
   ThemeBuilder\Documents\Theme_Document->get_content() #15 /wp-content/plugins/
   elementor-pro/modules/theme-builder/classes/locations-manager.php(436): ElementorPro\
   Modules\ThemeBuilder\Documents\Theme_Document->print_content() #16 /wp-content/
   plugins/elementor-pro/modules/theme-builder/api.php(13): ElementorPro\Modules\
   ThemeBuilder\Classes\Locations_Manager->do_location() #17 /wp-content/themes/
   hello-elementor/header.php(34): elementor_theme_do_location() #18 /wp-includes/
   template.php(810): require_once('/homepages/43/d…') #19 /wp-includes/template.
   php(745): load_template() #20 /wp-includes/general-template.php(48): locate_template()#
   21 /wp-content/themes/hello-elementor/index.php(14): get_header() #22 /wp-includes/
   template-loader.php(106): include('/homepages/43/d…') #23 /wp-blog-header.php(
   19): require_once('/homepages/43/d…') #24 /index.php(17): require('/homepages/
   43/d…') #25 {main} thrown in /wp-content/plugins/connect-polylang-elementor/includes/
   widgets/polylang-language-switcher.php on line 785`
 * Regards
 *  Plugin Contributor [Sebastien SERRE](https://wordpress.org/support/users/sebastienserre/)
 * (@sebastienserre)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18440069)
 * Hello,
   This error is located in Connect Polylang for Elementor which is a third
   party plugin.You should contact their support to report this issue at [https://wordpress.org/support/plugin/connect-polylang-elementor/](https://wordpress.org/support/plugin/connect-polylang-elementor/)
 *  [Töm](https://wordpress.org/support/users/toem/)
 * (@toem)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18440327)
 * Hello,
 * I’ve found a difference in the language.php in /includes:
 * Polylang 3.6.7:
 *     ```wp-block-code
       public static function get_flag_informations( $code ) {
       ```
   
 * Ploylang 3.7:
 *     ```wp-block-code
       public static function get_flag_information( $code ) {
       ```
   
 * And that call is the undefined method in the error message.
 *  Thread Starter [uppermarketing](https://wordpress.org/support/users/uppermarketing/)
 * (@uppermarketing)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18446330)
 * Hello,
   Is there any update regarding this issue? I still can’t update Polylang
   because of this…
 *  [Töm](https://wordpress.org/support/users/toem/)
 * (@toem)
 * [1 year ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18474141)
 * Why is this topic marked as resolved? With Polylang 3.7.1 the issue is still 
   there.
 *  [utentemarco](https://wordpress.org/support/users/utentemarco/)
 * (@utentemarco)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18589491)
 * I made the modification suggested by [Töm](https://wordpress.org/support/users/toem/)(
   @toem) and it works
 * Uncaught Error: Call to undefined method PLL_Language::get_flag_informations()
 * I removed the s
   replaced get_flag_informations with get_flag_information

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

The topic ‘Fatal error with Polylang’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)

 * 9 replies
 * 4 participants
 * Last reply from: [utentemarco](https://wordpress.org/support/users/utentemarco/)
 * Last activity: [10 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-with-polylang/#post-18589491)
 * Status: resolved