Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

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

    Thread Starter DistrictOperator

    (@districtoperator)

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

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

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

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

    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.

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

    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.

    Thread Starter DistrictOperator

    (@districtoperator)

    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!

    Plugin Author JS Morisset

    (@jsmoriss)

    Glad to know things worked out. 🙂

    js.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘og:title and og:description are blank’ is closed to new replies.