Title: Error with Polylang plugin
Last modified: May 11, 2025

---

# Error with Polylang plugin

 *  [Jackleen Kamel](https://wordpress.org/support/users/jackleenkamel/)
 * (@jackleenkamel)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-with-polylang-plugin-2/)
 * **After installing the Polylang plugin**
   I am encountering a fatal error on Arabic
   pages: PHP Fatal error: Uncaught Error: Call to undefined function formula_generate_css()
   in /home/mysti/public_html/wp-content/themes/formula/theme-menu/classes/class-
   formula-non-latin-languages.php:117.This issue arises when creating or viewing
   Arabic pages after installing a multilingual plugin.I have traced the `formula_generate_css()`
   function to the parent theme’s `/assets/css/custom-css.php` file, which is included
   in the parent theme’s `functions.php`.I found that `/theme-menu/menu-file.php`(
   which loads the problematic class) seems to be included in `functions.php` _before_`/
   assets/css/custom-css.php`. You even tried reordering these lines in the parent
   theme’s `functions.php`, but the error persisted.
 * I also tried to force-load `custom-css.php` early in the child theme’s `functions.
   php`, but this didn’t resolve the issue either.
 * <?php
 * /**
    - Force load parent theme’s custom-css.php very early.
      */function my_child_force_load_custom_css(){
      require_once get_template_directory() . ‘/assets/css/custom-css.php’;}add_action(‘
      after_setup_theme’, ‘my_child_force_load_custom_css’, 1 );
 * /**
    - Now load the parent theme’s menu file (which includes the problematic class).
      */
      function my_child_load_menu_file() {require_once get_template_directory() .‘/
      theme-menu/menu-file.php’;}add_action( ‘after_setup_theme’, ‘my_child_load_menu_file’,
      11 ); // Ensure this runs after our forced loadSo I need your guidance on 
      properly resolving this conflict within their theme, ensuring compatibility
      with multilingual setups.
 * BTW, I am using elementor plugin to build my site

The topic ‘Error with Polylang plugin’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/nature-formula/0.0.7/screenshot.
   png)
 * Nature Formula
 * [Support Threads](https://wordpress.org/support/theme/nature-formula/)
 * [Active Topics](https://wordpress.org/support/theme/nature-formula/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/nature-formula/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/nature-formula/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jackleen Kamel](https://wordpress.org/support/users/jackleenkamel/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/error-with-polylang-plugin-2/)
 * Status: not resolved