• Resolved hernan2022

    (@hernan2022)


    Hi, I found a bug related to Open Graph

    I disabled all extensions locally to be completely sure it’s not an extension, I only have the Youzify plugin installed. All pages have residual Open Graph information in code, the bug looks something like this:

    <!-- Youzify Open Graph Tags -->
    
    <meta property="twitter:card" content="summary_large_image">
    <meta property="og:type" content="profile">
    
    
    <meta property="og:url" content="">
    
    
            <meta property="og:description" content="description on wodpress dashboard">
        <meta property="twitter:description" content="description on wodpress dashboard">
    
    <!-- End of Youzify Open Graph Tags -->

    If I’m not mistaken, this is on all installations for all users. It’s not a serious bug, but it can interfere with the Open Graph information that we really want to display

    To fix the bug you have to modify the following file:

    \wp-content\plugins\youzify\includes\public\core\class-youzify-profile.php

    In my case, I have emptied the open_graph() function. It’s near line 368

    Reviewing the code it looks fine, maybe in some sense it’s more of a BuddyPress problem than Youzify. Or maybe BuddyPress no longer works with bp_is_single_activity()

    In any case, by tweaking the open_graph() function in the class-youzify-profile.php file the bug can be fixed

    I’ve tested the bug and the solution in different versions of the plugin (including the current one)

    It would be great if you could consider this in future patches

    Best regards

Viewing 1 replies (of 1 total)
  • Thread Starter hernan2022

    (@hernan2022)

    Youzify 3.5.4
    BuddyPress 14.0.0

    For now I just put this (around line 367) in class-youzify-profile.php

    function open_graph() {
    // Disable the function functionality
    return false;
    }

    This does not print the Open Graph on the pages. This is a bug that surely happens to all those who have BuddyPress updated

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.