WordPress.org

Ready to get started?Download WordPress

Forums

P2 Theme- replies via AJAX don't work in IE 7 or 8 (27 posts)

  1. Matthew Gerring
    Member
    Posted 4 years ago #

    Hello all. I'm getting an error message when I try to post a reply to a P2 installation my company is using from IE7 or IE8. A box pops up on clicking "submit" and it asks me if I'm sure I want to navigate away from this page. Editing comments works, and posting new posts works, but not posting replies. Works fine in every other browser.

    And before anyone says "don't use IE", there's no choice- we're using P2 as a workgroup/collaboration tool with a bunch of offices whose IT staff has decided to force everyone to use IE, and won't let anyone install any other software.

    So anybody know why this might be happening?

  2. margolis
    Member
    Posted 4 years ago #

    I see the exact same thing. Cannot post comments in IE - not from front page nor from the post page itself. Getting the same error dialog ("Are you sure you want to navigate...").

    This looks like quite a critical issue.

  3. lfaria
    Member
    Posted 4 years ago #

    I tested with IE7 and the same thing happened.
    If cancel returns to form but the answer comes.
    Too bad.
    Lauro Faria

  4. margolis
    Member
    Posted 4 years ago #

    Are there any plans of fixing this issue?

  5. Kevin Ryman
    Member
    Posted 4 years ago #

    Even though I am not a fan of IE but a great deal of my users use it. And yes a lot of the people who work in offices or agencies use Internet Explorer because they really have no choice... I personally recommend using Google Chrome, Mozilla Firefox, or the Apple Safari Browser.

    Anyway, this bug needs to be ironed out soon. Thank you in advanced!

    fyi: Google to Phase Out Support for Web Browsers

  6. Deadtail
    Member
    Posted 4 years ago #

    I get this same issue.

    IE7 and IE8

    No plugins installed.

    This needs to be fixed, its confusing my users!

  7. noel
    Member
    Posted 4 years ago #

    Which version of P2 is this happening on?

  8. Deadtail
    Member
    Posted 4 years ago #

    I use WP 2.9.1 and P2 1.1.3

  9. Deadtail
    Member
    Posted 4 years ago #

    If there is any code that can be quickly posted here in the forum as a fix, it would be much appreciated!

  10. Deadtail
    Member
    Posted 4 years ago #

    In the mean time, I found where that error is being produced and deleted it so it wont pop up in IE.

    p2/inc/js.php on line 41

    'unsaved_changes' => __('Your comments or posts will be lost if you continue.', 'p2'),

    I know this isn't really a fix, but works in the meantime.

  11. texet
    Member
    Posted 4 years ago #

    noel, I have the exact issue here and have the same specs as cheovent:
    WP(MU) 2.9.1
    P2 - latest from the themes repository

    In addition to the error message, the AJAX processing of the replies seems "broken" somehow in MSIE 8.0.

    FWIW, I tried deleting line 41 as cheovent recommended, but it doesn't remove the error message.

  12. ilyadir
    Member
    Posted 4 years ago #

    Actually, it's very important to solve this issue...
    Most of my users are using IE7 and IE8 and they are faced with this problem too.
    Does anybody could resolve this problem?

  13. Andrew Ozz
    WordPress Dev
    Posted 4 years ago #

    Could you try editing p2.js line 7, change

    if ( loggedin == true ) window.onbeforeunload = false;

    to

    if ( loggedin == true ) window.onbeforeunload = null;

  14. Mark Thomas Gazel
    Member
    Posted 4 years ago #

    I'm trying to set up a employee blog using P2. I must say it's very uphill. I have even considered making a changelog because of all the hacks and tweaks I've had to implement, so they wouldn't be lost in the next update.

    The problem is IE7. Like the original poster IE7 is the browser we are forced to use in the organization.

    I've had the mentioned issues above and applied the fixes. All was great, but now I'm also getting a "Please login again" error. In all browsers.

    I guess it's cheovent's hack, that has a downside and azaozz' hack doesn't solve the issue.

    To Noel and you other developers. Try to make P2 IE7 and IE8 friendly. I love the possibilities in P2, but lets face it. We may use Firefox, Safari and Google Chrome at home, but in the workplaces IE is the standard and P2s potential lies in the offices more that in the homes.

    Just my opinion. Keep up the good work.

  15. texet
    Member
    Posted 4 years ago #

    As far as I know, the P2 theme works fine in IE with the exception of this AJAX replies problem. Are there other incompatibilities with IE?

  16. iammrpink
    Member
    Posted 4 years ago #

    anyone figure this out. can i change the ajax thing. i dont know what it is really. but would love for this to work in IE

  17. modifiedcontent
    Member
    Posted 4 years ago #

    I've noticed the same problems in IE. Toggle Comments is also broken in IE, works fine in all other browsers.

    It's not acceptable to just blame the browser though. Very annoyed that these are apparently bugs that Automattic didn't bother to fix.

  18. margolis
    Member
    Posted 4 years ago #

    Any progress on the P2 - IE issues?

  19. margolis
    Member
    Posted 4 years ago #

    For all those interested - looks like the latest version in the SVN contains fixes for the IE problems.

  20. Deadtail
    Member
    Posted 4 years ago #

    Stupid question: is this the SVN? http://svn.automattic.com/wpcom-themes/p2/

    Do we know what files have the new IE fixes so that we can just put it into our current p2 theme?

  21. Girmay
    Member
    Posted 4 years ago #

    Replaced the p2.js file. Works fine for me now (IE7)

  22. acrofilo
    Member
    Posted 4 years ago #

    Tried everything mentioned here to no avail. I really hope a fix comes soon, because P2 is great, and it is a big shame that IE users are not able to comment. The whole thing seems rather silly :(

  23. debrankin
    Member
    Posted 4 years ago #

    I am having problems with IE 8 (not sure of other version) submitting comments.
    The user is able to submit comment, it then appears in the user's browser with the text 'Your comment is awaiting moderation.'
    however, when I go into the admin - the comment has not actually been submitted.

    comments work fine in chrome, safari, & firefox (both pc and mac)

    i've no idea how to deal with this other than discovering a way to eradicate IE from the universe!! That would be ideal for many reasons, but.....

  24. Deadtail
    Member
    Posted 4 years ago #

    replacing the p2.js file does nothing for me in IE7 or IE8.

  25. Dougal Campbell
    Member
    Posted 4 years ago #

    We're having this problem, too (IE6, IE7, IE8), and replacing the p2.js file with the one from SVN doesn't seem to fix it. Haven't had a chance to try to track down the source of the problem, myself.

  26. Deadtail
    Member
    Posted 4 years ago #

    any updates on this? Noel?

  27. tgroff
    Member
    Posted 4 years ago #

    Just confirming that I am also experiencing the bug in P2 v1.1.5 - unable to Toggle Comments in internet explorer. It seems to be broken for only IE8. When I switch IE8 Comparability Mode to IE7 - Toggle Comments works fine. For now I have just added the following code to my header.php to force IE7 compatibility mode.

    <meta http-equiv="X-UA-Compatible" content="IE=7" />

Topic Closed

This topic has been closed to new replies.

About this Topic