The MU forums have moved to WordPress.org

Formatting getting stripped (21 posts)

  1. benjancewicz
    Member
    Posted 14 years ago #

    I'm having trouble when putting up a post, all the formatting I put in gets stripped out when I hit Publish.

    Photos, block quotes, even Bold or Italic.

    Here is a list of plugins I have, just in case (and these are global, it's happening on all sites):

    Global Translator
    Google Analytics for Wordpress
    WPtough iPhone Theme
    WP-Table Reloaded
    Site Generator for Wordpress MU
    Smart YouTube
    Flickr Manager
    PingPressFM
    Sociable
    Filosof Home-Page Control
    AWS Easy Page Link
    Embed iFrame
    Quicktime Embed
    Intense Debate
    Wordpress Admin Bar
    Google XML Sitemaps
    Robots Meta

    Any ideas?

  2. SteveAtty
    Member
    Posted 14 years ago #

    It could be any that intercept the publish process.

    The only obvious way is to turn them all off one by one and see which one causes problems, then turn the others off to see if its a conflict.

  3. benjancewicz
    Member
    Posted 14 years ago #

    I thought of that, but wondered if anyone saw this as a recognizable symptom before I dived in.

  4. SteveAtty
    Member
    Posted 14 years ago #

    Try to narrow it down to things that affect the display when its doing to your browser. I can see it being WPTOuch as that for mobile devices and it replaces the whole theme.

    I'd be tempted to try with the ones that embed things.

    Is the code totally missing or just not working (i.e CSS issues)?

  5. benjancewicz
    Member
    Posted 14 years ago #

    The code is completely stripped out. If I add a photo in, and then hit publish, it actually disappears from my edit pane.

    Which is what is so puzzling to me.

  6. benjancewicz
    Member
    Posted 14 years ago #

    OK, I've deactivated every plugin on my site (global and local) and it's still stripping out the formatting.

    The only plugin I've installed recently is Unfiltered MU (http://wordpress.org/extend/plugins/unfiltered-mu/)

    But it was only on one section of my whole MU site, and even when deactivated, my formatting is still getting stripped.

    Ideas?

  7. andrea_r
    Moderator
    Posted 14 years ago #

    "If I add a photo in, and then hit publish, it actually disappears from my edit pane."

    WTH? That is not meant to happen, that's for sure.

    By add a photo in, you mean the regular image link, right?

  8. benjancewicz
    Member
    Posted 14 years ago #

    Anything. Adding bold text gets stripped out. Adding italics. Anything you could possibly add into a post using the visual control panel gets wiped.

    The only thing that remains (that I can see) is paragraphs.

    Here's an example, if you want to see: http://benjancewicz.zerflin.com/2009/12/08/master-and-commander/

    And it's only on new posts. Old posts (that I don't update) are just fine with their formatting.

  9. andrea_r
    Moderator
    Posted 14 years ago #

    MU definitely does not go that far, even on a default install. Something is definitely up.

    (just to let you know we're both not crazy)

  10. benjancewicz
    Member
    Posted 14 years ago #

    I just tried it on Safari (normally use Firefox) with no change whatsoever so that eliminates the browser...

    What else can I try?

  11. benjancewicz
    Member
    Posted 14 years ago #

    Nothing on Chrome either.

  12. benjancewicz
    Member
    Posted 14 years ago #

    Just tried IE 6, 7, & 8.
    Same story.

  13. andrea_r
    Moderator
    Posted 14 years ago #

    I really can't say without looking at the system itself. WPMU by default lets in image tags & Visual editor formatting. always has. The only thing I know of that would interfere are plugins or hacks.

    If you've removed all the plugins - even the ones in mu plugins - and it still does it, they only other thing I can suggest is fresh files.

  14. benjancewicz
    Member
    Posted 14 years ago #

    Oh man...

    What is the process to reinstall?

    Is there anything that MU Unfiltered installs in the core?
    That's that last edit I recall making to this site.

    man.....

  15. SteveAtty
    Member
    Posted 14 years ago #

    To re-install simply download the archive, unzip it and upload it and select to replace existing files.

  16. benjancewicz
    Member
    Posted 14 years ago #

    OK. I'll do that this evening and let you all know how it goes.

    Thank you!

  17. andrea_r
    Moderator
    Posted 14 years ago #

    "Is there anything that MU Unfiltered installs in the core?
    That's that last edit I recall making to this site."

    Um, unfiltered mu should've only been a single plugin. :)

    And were you logged in as admin earlier when stuff was stripped?

  18. benjancewicz
    Member
    Posted 14 years ago #

    Fixed it.
    I remembered what I did.

    In kses.php I changed this:

    if (!defined('CUSTOM_TAGS'))
    	define('CUSTOM_TAGS', false);

    to this:

    if (!defined('CUSTOM_TAGS'))
    	define('CUSTOM_TAGS', true);

    That's what broke it. I was trying to follow the instructions for Unfiltered MU.
    So I totally did THAT wrong. Sorry guys.
    So what do I do to get it to work right?

  19. andrea_r
    Moderator
    Posted 14 years ago #

    To get Unfiltered MU to work right?

    Just drop the plugin in the folder, that's it.

  20. benjancewicz
    Member
    Posted 14 years ago #

    Gotcha.
    I had found a piece of documentation I found that said I needed to modify kses.php in order for Unfiltered MU to work properly.

    Thanks for you help, Andrea & Steve! You guys are the best!

  21. kgraeme
    Member
    Posted 14 years ago #

    What version of PHP does your server run?

    Also, you shouldn't need to modify kses.php to make it work, and modifying core files is just going to make things break more when you upgrade.

About this Topic

  • Started 14 years ago by benjancewicz
  • Latest reply from kgraeme