• Resolved dtwx

    (@dtwx)


    This is very odd. What looks like database code has been added as HTML to the generated page?

    <ul class='post-meta'>
    <li><span class='post-meta-key'>yarpp_meta:</span> a:1:{s:27:"yarpp_display_for_this_post";i:0;}</li>
    </ul>

    Disabling the plugin did not make this text go away. While it was disabled, I created a new post, this text did not appear. I enabled YARRP again, made a new post and the text is back.

    So, this text only appears on posts that are Updated/Published while YARRP is enabled.

    Disabling YARRP and republishing the pages doesn’t remove the text.

    OK, so this is at least partly to do with our theme which contains a call to the the_meta() on posts and returns the text above.

    What/why is YARRP writing this to the meta?

    • This topic was modified 3 years, 6 months ago by dtwx.
    • This topic was modified 3 years, 6 months ago by dtwx. Reason: More detail
    • This topic was modified 3 years, 6 months ago by dtwx.
    • This topic was modified 3 years, 6 months ago by dtwx.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Hmm that’s odd. We’re investigating.

    YARPP just recently added that meta information, but we don’t print it to posts.

    I think it can be helpful, while developing, for your theme to call the_meta() but that should probably be removed on a live site. It sounds like you should just remove the call to the_meta from your theme and the issue will go away.

    It’s pretty common for other plugins, not just YARPP, to add meta information to posts, so I think removing the_meta from your theme almost always makes sense.

    Also, what theme are you using?

    Plugin Support Michael Nelson

    (@mnelson4)

    Given there was another report of this, we’ve investigated and found its because we failed to indicate that metainformation should be “protected”. So your theme thinks its “public” and so is happily displaying it.

    We have an update coming that will inform themes (and other plugins) that it’s “protected” and not for displaying publicly like that.

    Plugin Support Michael Nelson

    (@mnelson4)

    Hi @dtwx llaughy, thanks for the help. We’ve release 5.19.0 that, from my testing, resolves this issue with themes using the_meta(). Please let us know if the issue continues to exist after you’ve updated.

    Thread Starter dtwx

    (@dtwx)

    Good work! You’re right that we probably shouldn’t have that call to the_meta(), so I did remove it, but I knew yarrp must be doing something “wrong” because otherwise we would have seen similar before.

    Thanks for checking it out!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Database entries being added to the post as HTML?’ is closed to new replies.