og: https://ogp.me/ns#

#151304
  • Resolved Gabriel Magno
    Rank Math free

    Hello, I am receiving several error logs due to og. One of these errors follows:

    2021/02/15 13:57:16 [error] 51814#51814: *279065 FastCGI sent in stderr: “PHP message: PHP Warning: is_file(): File name is longer than the maximum allowed path length on this platform (4096): <!doctype html>
    <html lang="pt-BR" prefix="og: https://ogp.me/ns#"&gt;
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="preload" href="https://mlr9pmq5ztpb.i.optimole.com/&quot; as="other"><link rel="profile" href="http://gmpg.org/xfn/11"&gt;
    <!– Otimização de mecanismos de pesquisa feita por Rank Math – https://s.rankmath.com/home –>
    <title>Loja – Edu Radiadores</title>
    <meta name="description" content="Produtos Archive – Edu Radiadores"/>
    <meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
    <link rel="canonical" href="https://eduradiadore&#8221; while reading response header from upstream, client: 35.198.44.191, server: eduradiadores.com.br, request: “GET /?ao_speedup_cachebuster=7869 HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php7.4-fpm-eduradiadores.sock:”, host: “eduradiadores.com.br”, referrer: “https://eduradiadores.com.br/?ao_speedup_cachebuster=7869&#8221;

    I already noticed that the errors start when you are working together with Wp Rocket, even with all optimization options disabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    It seems you are using minification on your website and your cache plugin is inputting too much inline CSS into your page source that your OpenGraph tags are pushed way too down your page’s source:
    turn off minification

    If this is the cache, you must move your inline CSS to a file because Facebook and other social networks will only look for OpenGraph tags in the first 60kbs of your page’s source. If they don’t find it, they will assume you haven’t added them. They don’t want to waste their resources crawling huge pages looking for OpenGraph tags.

    The gain browser cache option in most cache plugins like W3 Total Cache is also known to not play well with Facebook’s OpenGraph detection. If you have it enabled, disable it.

    I hope that helps. Thank you, and looking forward to your update.

    In this case, I’m not putting css on line or minifying it. But I’m using the optimole plugin and I also have critical css enabled. If there is no compatibility is there any way to remove og?

    Febby
    Rank Math free

    Hello,

    You can disable all the Open Graph tags on the head section of your pages by adding the following code snippet on your theme’s functions.php file.

    add_action( 'rank_math/head', function() {
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	remove_all_actions( 'rank_math/opengraph/twitter' );
    });

    I hope that helps, let us know if you need further help with anything else.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘og: https://ogp.me/ns#’ is closed to new replies.