Viewing 15 replies - 1 through 15 (of 20 total)
  • Stef

    (@serafinnyc)

    Where are you seeing this? In the backend?

    Add this to your functions file and see if you’re able to install WooCommerce after.

    function disable_emojis() {
     remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
     remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
     remove_action( 'wp_print_styles', 'print_emoji_styles' );
     remove_action( 'admin_print_styles', 'print_emoji_styles' ); 
     remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
     remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 
     remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
     add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
     add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
    }
    add_action( 'init', 'disable_emojis' );
    Thread Starter sym3088

    (@sym3088)

    Added the above suggested code to the theme function.php
    The installation will display an error message in the background.
    But it is suspected to be normal after it is enabled.
    Can i ignore the error message that was installed at the beginning?
    Use directly

    • This reply was modified 5 years, 6 months ago by sym3088.
    Stef

    (@serafinnyc)

    How did you add it? Thru FTP? What error are you speaking of exactly? You received an error when you added this or you’re still receiving an error from the earlier one?

    Stef

    (@serafinnyc)

    Oh man. Sorry. I see my mistake. I thought I added the entire snippet

    Add this below all that.

    function disable_emojis_tinymce( $plugins ) {
     if ( is_array( $plugins ) ) {
     return array_diff( $plugins, array( 'wpemoji' ) );
     } else {
     return array();
     }
    }
    
    function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
     if ( 'dns-prefetch' == $relation_type ) {
     
     $emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
    
    $urls = array_diff( $urls, array( $emoji_svg_url ) );
     }
    
    return $urls;
    }
    Thread Starter sym3088

    (@sym3088)

    Excuse me
    Will the above code
    Which file to join in the file

    Stef

    (@serafinnyc)

    add that to your function file with the first snippet I gave you. I thought I gave it all there but I guess I missed it.

    It should all look like this

    function disable_emojis() {
    remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
    remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    remove_action( 'wp_print_styles', 'print_emoji_styles' );
    remove_action( 'admin_print_styles', 'print_emoji_styles' );
    remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
    remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
    remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
    add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
    }
    add_action( 'init', 'disable_emojis' );
       function disable_emojis_tinymce( $plugins ) {
          if ( is_array( $plugins ) ) {
      return array_diff( $plugins, array( 'wpemoji' ) );
           } else {
      return array();
       }
    }
    function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
        if ( 'dns-prefetch' == $relation_type ) {
    
        $emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
                 $urls = array_diff( $urls, array( $emoji_svg_url ) );
          }
       return $urls;
    }
    Thread Starter sym3088

    (@sym3088)

    I should put it
    Wp-includes/function.php
    Or
    Wp-content/themes/ themename /function.php
    which one?

    Stef

    (@serafinnyc)

    the latter one. never put anything in the first one.

    Thread Starter sym3088

    (@sym3088)

    The result of my test
    Is the problem with the updated version of WordPress

    Stef

    (@serafinnyc)

    Yeah I’m sorry but I’m not following your responses.

    Thread Starter sym3088

    (@sym3088)

    I will add your code to the theme of function.php
    The same error message will be displayed.

    If there is really no way to solve it
    I will downgrade the wordpress version to use

    Stef

    (@serafinnyc)

    Ok. So if I understand you correctly you’re saying the error still shows. Yes?

    Thread Starter sym3088

    (@sym3088)

    yes

    Stef

    (@serafinnyc)

    Ok. Thought it would disappear. Guess not. Sorry. I tried. Just remove it I guess.

    • This reply was modified 5 years, 6 months ago by Stef.
    Thread Starter sym3088

    (@sym3088)

    I just tried to downgrade WordPress version installation using the downgrade plugin
    The result is an unrepairable error
    All files have been deleted
    Reinstall wordpress

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Install woocommerce error message’ is closed to new replies.