WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Facebook: Open Graph, Rich Pin, Twitter Card, SEO, and Schema Meta Tags
[resolved] og:title and og:description are blank (13 posts)

  1. DistrictOperator
    Member
    Posted 1 year ago #

    Hello,

    I am getting neither title nor description in my og: meta tags.

    NGFB Debug Mode is on.
    WordPress Debug Mode is on.

    URL: http://www.adminpro.biz (or any of its pages, same problem)

    WordPress Debug Log: empty
    Web Server Error Log: nothing related to NGFB

    Can you help? Thanks!

    http://wordpress.org/extend/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    It looks like there might be something interfering with WordPress' apply_filters() function:

    apply_content_filter() : calling apply_filters()
    apply_content_filter() : content strlen() before = 2849, after = 0

    I would suggest disabling other plugins until the title and descriptions start working. You can do a "View Source" to check the OG meta headers:

    <meta property="og:description" content="" />
    <meta property="og:title" content="" />

    Let me know which plugin is causing the problem, and if I can, I'll install it myself and try to figure out why it's breaking the apply_filters() function.

    js.

  3. DistrictOperator
    Member
    Posted 1 year ago #

    Ok. When I deactivated this plugin, the description appeared but not the title:

    Insert PHP
    "Run PHP code inserted into WordPress posts and pages."
    Version 1.0 | By Will Bontrager Software, LLC

    I could not get the og:title to work by deactivating plugins. Maybe we could just start by looking at the Insert PHP plugin?

    Thanks much.

  4. DistrictOperator
    Member
    Posted 1 year ago #

    p.s. I am working on the Genesis framework with a child theme.

  5. DistrictOperator
    Member
    Posted 1 year ago #

    p.s. #2 I just deactivated that plugin so you could take a look at NGFB's debug output.

  6. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    I had a look at that Insert PHP plugin - it's fairly simple. I don't know why he's running his function as filter instead of as a shortcode, but I guess if no options/arguments are necessary, it's one way to go. I suspect the problem is the output filter he's using. He starts the filter, then cleans it, but doesn't stop it. Normally an ob_start() section section of code should always end with an ob_end_flush(). I would report this to the plugin author.

    As for the title, it's the first time I hear of this problem -- the NGFB get_title() method is fairly simple... There isn't even any debug logging in that method. :) I'll add some, and have you test it later. You can turn off debug mode on your website for now, and I'll get back to you when the new DEV version is ready.

    Thanks,

    js.

  7. DistrictOperator
    Member
    Posted 1 year ago #

    Unbelievable... your speed and desire to help, that is. Thank you so much.

  8. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    No problem.

    Ok, the new version is ready. Download and install (manually) the latest DEV version from http://downloads.wordpress.org/plugin/nextgen-facebook.zip.

    Turn on NGFB's debug mode, and I'll have a look again.

    Thanks,

    js.

  9. DistrictOperator
    Member
    Posted 1 year ago #

    Thanks JS. I installed that and the site is up now with the NGFB debug code available.

    It looks like it has something to do with apply_filters() again, but I can't figure it out. I deactivated most every other plugin on the site, just leaving a couple widget controllers that I thought highly unlikely they messed with the title.

    Interested to see what you think after you take a look.

    Oh, I did deactivate the "Insert PHP" and as you can see that allows the og:description to work, but still not the title.

    Thanks.

  10. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    It appears there's something wrong with WP's apply_filters() function on your website. If the problem isn't from a plugin, then it would be from your theme. Although filtering the title has some advantages, it is not always necessary.

    Download and install the latest DEV version. On the NGFB settings page, you can uncheck the new "Apply Title Filters" setting (near the bottom), and you could also try unchecking the "Apply Content Filters" setting as well -- though if your content relies on shortcodes (for example), then your description text will be incomplete / inaccurate.

    js.

  11. DistrictOperator
    Member
    Posted 1 year ago #

    Well thanks, JS. When I unchecked "Apply Title Filters" NGFB did just fine at picking up a title and including it in the og: codes.

    I wish I knew what was causing the problem. I'm using a Genesis theme with one of their own Child Themes, and I haven't modified those. Maybe I will figure it out one day. Really appreciate your help.

  12. DistrictOperator
    Member
    Posted 11 months ago #

    Hi JS and All,

    Just wanted to post a follow-up on the "Insert PHP" plug-in mentioned above. I got in touch with the developer as suggested and he's also a swell guy. He updated his plug-in with the ob_end_flush() and even took the time to email me back and let me know.

    What a great community!

  13. JS Morisset
    Member
    Plugin Author

    Posted 11 months ago #

    Glad to know things worked out. :)

    js.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic