Title: PHP Deprecated: Function print_emoji_styles.. preg_replace(): Passing null..
Last modified: January 6, 2024

---

# PHP Deprecated: Function print_emoji_styles.. preg_replace(): Passing null..

 *  Resolved [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/)
 * Getting these warnings in `debug.log` when installing Elementor:
 *     ```wp-block-code
       [06-Jan-2024 12:59:16 UTC] PHP Deprecated:  Function print_emoji_styles is deprecated since version 6.4.0! Use wp_enqueue_emoji_styles instead. in ../wp-includes/functions.php on line 6031
       [06-Jan-2024 12:59:16 UTC] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in ../wp-content/plugins/elementor/core/experiments/manager.php on line 161
       ```
   
 * Elementor 3.18.3, Hello Elementor 3.0.0, WordPress 6.4.1, PHP 8.1.x

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

 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17371434)
 * Hi there,
 * This might be related to the experiments features of Elementor. Please follow
   these steps, and let me know if it solved your issue:
    - Make sure that the “Load Font Awesome 4 Support” is set to “Yes” under Elementor
      > Settings> Advanced.
    - Temporarily deactivate the experiments under Elementor> Settings> Features.
 * Kind regards,
 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17371909)
 * Not related to font awesome or active experiments.
 * Bug is in experiments manager, return of `get_installs_history()` is not checked.
 *     ```wp-block-code
       158:	private function install_compare( $version ) {
       159:		$installs_history = Upgrade_Manager::get_installs_history();
       160:
       161:		$cleaned_version = preg_replace( '/-(beta|cloud|dev)\d*$/', '', key( $installs_history ) );
       ```
   
 * When first called after install the `key( $installs_history )` is `null`, which
   causes above mentionend error with PHP 8.1.x
 * Feel free to post the bug report at your github, I do not use github due to their
   policies.
 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17374404)
 * Since this is a development based query, may opt to visit our Github account 
   where you may get in contact with a member of our development team to query this
   with.
   Please note that this is not an official support channel but a respective
   member of the development team will respond to your post as soon as they are 
   available.Please follow this guide which outlines the steps required to post 
   on our Github: [https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md](https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md)
 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17374864)
 * As already explained:
 * Feel free to post the bug report at your github, I do not use github due to their
   policies.
 *  [aracelil](https://wordpress.org/support/users/aracelil/)
 * (@aracelil)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17381410)
 * Hi, [@ov3rfly](https://profiles.wordpress.org/ov3rfly/).
 * Thanks for reaching out.
 * As this is a development query and the appropriate channel for reporting these
   issues is our [Github](https://github.com/elementor/elementor/issues) page, we’ll
   go ahead and close this thread.
 * Please feel free to open a new thread should you require assistance with a different
   issue.
 * Kind Regards,

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

The topic ‘PHP Deprecated: Function print_emoji_styles.. preg_replace(): Passing
null..’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)
 * [preg_replace](https://wordpress.org/support/topic-tag/preg_replace/)

 * 5 replies
 * 3 participants
 * Last reply from: [aracelil](https://wordpress.org/support/users/aracelil/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-function-print_emoji_styles-preg_replace-passing-null/#post-17381410)
 * Status: resolved