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?
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 ?>.
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.
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.
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.