Install woocommerce error message
-
Install woocommerce error message
Please see the error message image link below
Please tell me the solutionhttps://www.polio-donate.com/wp-content/uploads/2019/05/error_messeage.jpg
The page I need help with: [log in to see the link]
-
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' );
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.
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?
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; }
Excuse me
Will the above code
Which file to join in the fileadd 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; }
I should put it
Wp-includes/function.php
Or
Wp-content/themes/ themename /function.php
which one?the latter one. never put anything in the first one.
The result of my test
Is the problem with the updated version of WordPressYeah I’m sorry but I’m not following your responses.
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 useOk. So if I understand you correctly you’re saying the error still shows. Yes?
yes
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.
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
- The topic ‘Install woocommerce error message’ is closed to new replies.