Forums

Writing first plugin - when I activate it, my content disappears (5 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    I am writing my first plugin, and am kind of stumped. When I activate the plugin, the "content" on all my posts and pages disappears. I have seen mention of this in threads about specific plugins, but have not seen anything on how to resolve this.

    Any authors out there that could lend a hand?

  2. Roger Theriault
    Member
    Posted 3 years ago #

    You need to help us out here... are you filtering the_content?

    Otherwise, there's a common issue where you'll get some error messages if you inadvertently output anything before the headers have been sent. Make sure the first line in your php files is <?php and the last one is ?>.

  3. Ogre
    Member
    Posted 3 years ago #

    Having access to the apache error log would make your life a whole lot easier. Unfortunately, with hosted service that is impossible. For development purposes, you might consider running the necessary tools on your windows box: http://www.apachefriends.org/en/xampp.html

    I am assuming you are running a windows box because a linux person would already know to check his apache error log.

  4. Anonymous
    Unregistered
    Posted 3 years ago #

    Roger - yes, I did filter it, in the sense that add_filter is populated for the_content.

    Ogre - I know how to check my logs, but didn't think to since no errors were thrown. I have since reviewed the log and am going to try to simplify the plugin a bit (move it out of an object and just make regular functions out of things). If that doesn't work, then I'll be back.

  5. Anonymous
    Unregistered
    Posted 3 years ago #

    OK, I got to the point where I am displaying content. Now I am bumping into serious issues with the Magpie RSS parser. This thing feels like a piece of garbage.

Topic Closed

This topic has been closed to new replies.

About this Topic