• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Fatal error: Cannot redeclare print_emoji_styles()

kaveh

New member
May 27, 2023
6
0
1
Hello,
After update wordpress to latest version, I got this error:

Fatal error: Cannot redeclare print_emoji_styles() (previously declared in /home/thunting/domains/ir/public_html/wp-includes/formatting.php:5846) in /home/thunting/domains/ir/public_html/wp-includes/deprecated.php on line 5904
There has been a critical error on this website.

formatting.php code is:

function print_emoji_styles() {
static $printed = false;

if ( $printed ) {
return;
}

$printed = true;


and deprecated code is:

function print_emoji_styles() {
_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_emoji_styles' );
static $printed = false;

if ( $printed ) {
return;
}

$printed = true;

website is down now. I mark error line with red colour.
I will be thankful if help me to solve this problem.
Thanks,
 
Last edited:
Solved!
I update wordpress manually and problem solved.
I downloaded latest wordpress version, then unziped and deleted plugin and theme folder. Then uploaded wordpress files to public_html folder and problem solved.
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock