WordPress.org

Ready to get started?Download WordPress

Forums

Embed/HTML code disappearing (18 posts)

  1. mrservo
    Member
    Posted 5 years ago #

    Having a serious problem here that involves everyone on my blog EXCEPT me. I have 2 authors and 1 administrator who cannot add simple html codes to their articles. Anything from a youtube embed to a new paragraph. All of it disappears if they try to preview their post, schedule, publish, submit for review.

    This is really upsetting because I haven't changed any settings, added any plugins or even changed any users. Trying to find a solution has been tedious and time consuming for me and yet I still have no answers.

    2.7.1.
    No additional plugins.

    I'll answer any additional questions anyone has. Thanks.

  2. figaro
    Member
    Posted 5 years ago #

    When you embed code from, for example YouTube, then you need to stay in html mode. If you switch to the visual editor then the code will be destroyed. Sounds like that is what is happening somewhere along the line.

  3. t31os
    Member
    Posted 5 years ago #

    Firstly, create a new user account, a test account with the same user level as the problem accounts.

    Logout, then login with the newly created account.

    At least you can then see for yourself if the problem does actually exist. Be sure to test in the major browsers, IE, FF, Opera, Safari, etc..

    If you can't replicate the problem, then i think the answer is quite obvious...

    If you can, then set up a few test accounts with varying user-levels, login into them and try to replicate the problem...

    Rinse, repeat... ... rinse, repeat...

    Process of elimination..

    EDIT: And what Figaro said above (i wouldn't know, i only use code view). :)

  4. mrservo
    Member
    Posted 5 years ago #

    figaro: Untrue. I embed, switch back and add text, add thumbnails, everything. Embedding is the first thing I do. I do it and it works everytime, for me. These other users, not so much.

    t31os: I've tested it for me in 6 different browsers, right down to crappy Netscape(yeah, I know, sad). But just now, as I was writing this, I made an Author account and tested it. We have fail...

    So now the real question is, why the hell is WP tossing out any html inputted by my authors?

  5. figaro
    Member
    Posted 5 years ago #

    figaro: Untrue.

    Thanks...I'll just mark this down as only being true for me...and maybe your other users ;-)

  6. mrservo
    Member
    Posted 5 years ago #

    Next time don't make it sound like the software was programmed to do that. My authors have no problem switching back and forth, they have a problem once they try to preview, publish or set pending approval.

  7. figaro
    Member
    Posted 5 years ago #

    Next time don't make it sound like the software was programmed to do that.

    No problem...any other instructions you would like to give the next time I try to help you for free? ;-)

  8. t31os
    Member
    Posted 5 years ago #

    Guys please, can we disagree in a friendly manner. :) Please, i have cookies... :)

    mrservo, i've tried testing the problem on my local install and can't replicate it.

    Have you run a check of your database to see if there's errors on any of the tables?

  9. figaro
    Member
    Posted 5 years ago #

    Guys please, can we disagree in a friendly manner. :)

    Trust me...I was being friendly ;-) I'll have chocolate chip with sprinkles :-)

  10. t31os
    Member
    Posted 5 years ago #

    I'd settle for choc chip or a hobknob (that's a biscuit here in the UK) ... :) To go with my hot cuppa tea :)

  11. yaphi
    Member
    Posted 5 years ago #

    I can reproduce this over and over.

    I have an admin and I have an Author.

    admin can post embed codes in the html tab (I disable the visual tab for everyone) and the author, when they post an embed code and hit save, the embed code disappears.

  12. boonchek
    Member
    Posted 5 years ago #

    I can reproduce this over and over.

    I have an admin and I have an Author.

    admin can post embed codes in the html tab (I disable the visual tab for everyone) and the author, when they post an embed code and hit save, the embed code disappears.

    I have this problem too, now even with the latest version of 2.8.2.

    It only works if admin directly embed and publish the youtube video, and not to use the "submit for review" function.

  13. MrKimB
    Member
    Posted 4 years ago #

    I don't know if you are still having this problem but I just found the answer.
    Go to: Settings | Media | then clear "Attempt to automatically embed all plain text URLs" and increase the Maximum embed size to something bigger then you would need.

    Also if you have "Video Embeder plugin" increase the default size and that should take care of the problem.

  14. Miserere
    Member
    Posted 4 years ago #

    I am having exactly the same problem with my blog colleague, who is "Editor" on my blog. But it's not just embedded media, it's all paragraph codes that disappear when he opens a post for editing. <br />'s and <p>'s are all gone when he opens the post, whether it was created by him or by me, whether it's published or as a draft. It happened in wordpress.com, and still happens now we moved to worpress.org.

    We're both on PCs using the latest FireFox, and he doesn't use the Visual editor, only the HTML.

    This is driving me crazy! Help!!!!!!!

  15. Andulien
    Member
    Posted 4 years ago #

    I am having the same problem with my Author, just here the <center> as well as the title in images just disappear once trying to preview or Save Draft. Installed the latest WP 2.9.2. Using Firefox as well and only the HTML editor.

    Thank you for any help.

  16. rekkette
    Member
    Posted 4 years ago #

    I have found the same thing happening to me and have discovered if there are any extra space, returns, or line indents (like for example to keep the code clear and legible), things can slip in and out of divs, tables or styling just because somebody hit the space bar an extra time. Go back into the html and take all line indents, spaces and returns and just have it as one continuous line and see what happens.

  17. Andulien
    Member
    Posted 4 years ago #

    well I mean even something very simple will change.
    Example:
    Test
    <center><img src="http://image" title="test"></center>
    Testingggg

    Will change after saving as draft to:
    Test
    <img src="http://image">
    Testingggg

    This happens only for the Author, I have not seen it happening to Editor or Administrator.

  18. Andulien
    Member
    Posted 4 years ago #

    I figured out what why it didn't work. So apparently WP changed its Role capabilities, taking away the Authors control to post "unfiltered_html".
    There are two ways to change that. One is manually per SQL:
    http://forum.corephp.com/index.php?topic=1066.msg2618

    Or you can download a Plugin for WP that lets you customize your Role Capabilities. I recommend this one here, even thought it says supports 2.6, I just installed it on 2.9.2 and it works great ;)
    http://sourceforge.net/projects/role-manager/

    Good luck everyone.

Topic Closed

This topic has been closed to new replies.

About this Topic