Title: Critical Error
Last modified: March 16, 2022

---

# Critical Error

 *  Resolved [msliwka](https://wordpress.org/support/users/msliwka/)
 * (@msliwka)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-311/)
 * Hi, I’m using newest standard Polylang and this plugin with newest Element + 
   Elementor Pro. When i’d like to use different domains for languages it causes
   critical error like this (e.g. for url )
 * `Fatal error: Uncaught Error: Call to undefined function ConnectPolylangElementor\
   pll_get_post() in /home2/p563836/public_html/wp-content/plugins/connect-polylang-
   elementor/includes/connect-plugins.php:192 Stack trace: #0 /home2/p563836/public_html/
   wp-includes/class-wp-hook.php(307): ConnectPolylangElementor\ConnectPlugins->
   template_id_translation(18) #1 /home2/p563836/public_html/wp-includes/plugin.
   php(189): WP_Hook->apply_filters(18, Array) #2 /home2/p563836/public_html/wp-
   content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.
   php(310): apply_filters('elementor/theme...', 18) #3 /home2/p563836/public_html/
   wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.
   php(413): ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager->get_location_templates('
   header') #4 /home2/p563836/public_html/wp-content/plugins/elementor-pro/modules/
   theme-builder/classes/conditions-manager.php(481): ElementorPro\Modules\ThemeBuilder\
   Classes\Conditions_Manager->get_theme_templates_ids('hea in /home2/p563836/public_html/
   wp-content/plugins/connect-polylang-elementor/includes/connect-plugins.php on
   line 192`
 * I tried to disable all my plugins and this problem still exists.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-311%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-311/#post-15511407)
 * Hi, have you solved the problem?
 * It seems that in case there are only one language active Polylang does not load
   some functions and that is why the error occurs.
 * I’ll update it with a pre-check to prevent the error from occurring but having
   more than one language active should not be a problem.

Viewing 1 replies (of 1 total)

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

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

 * 1 reply
 * 2 participants
 * Last reply from: [Pacotole](https://wordpress.org/support/users/pacotole/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-311/#post-15511407)
 * Status: resolved