1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Edited post dissappearing from thread

Discussion in 'Resolved Bug Reports' started by SchmitzIT, May 17, 2011.

  1. SchmitzIT

    SchmitzIT Well-Known Member

    I'm having an odd issue. My users have complained that when they edit a post, it dissappears from the thread they are looking at. I verified the bug, and have been trying to figure out where this is coming from.

    I cannot replicate it on my other site, which has no add-ons. I also did not see the bug on my main forum, when switching to the default style.

    We use a parent style, though, and it appears in there, plus in the child styles for that parent style. I'm a bit baffled as to where to look for the origins of this.

    Any thoughts?

    Thanks :)

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Which add-ons do you have installed?

    As you've already confirmed this doesn't happen on a vanilla install, it's likely that it will be an add-on/change causing this.
  3. Mike

    Mike XenForo Developer Staff Member

    The last report of this related to a customized style. Possibly due to non-validating HTML.
  4. SchmitzIT

    SchmitzIT Well-Known Member

    I'm also hinting towards a style somehow, due to the default style on the forum not giving the error.

    We're in the middle of rewriting our styles, but curiosity got the better of me, and I figured it'd be nice knowing what caused it. I'll see if I can somehow dig in deeper.

    I did note that after saving the post, the forum appears to continue loading, and at the upper-right, there's an animation hinting at something still being busy. I'll see if I can figure out which element might have gone missing.

    Thanks Mike (and Paul).
  5. Mike

    Mike XenForo Developer Staff Member

    You could try passing a thread to the W3C validator, looking for errors that relate to mis-nesting tags. They may be relevant.

    (Strictly speaking, we need the "post" template to be valid on its own though.)
  6. Brogan

    Brogan XenForo Moderator Staff Member

    How many edited templates do you have?

    You could copy the templates, revert them one at a time and check when the problem clears.

    Laborious, but it should at least identify the template.
  7. SchmitzIT

    SchmitzIT Well-Known Member

    Less than a handful. I went through the edited stuff, but nothing jumped out.

    I did see by using FireBug that while the page appears to be stuck loading, the following bit was appended right behind my post:

    style="display: none; opacity: 0;"

    I searched the templates, but did not find anything in there. I also checked the html code in FireBug, and all tags seem to be opened/closed properly (at a glance, that is).
  8. SchmitzIT

    SchmitzIT Well-Known Member

    As an FYI, I tracked down the error to the message template, and specifically a minor edito made for the XenAMS add-on.

    We added this at the veyr bottom of the message template:

    <!-- ADD-ON CHANGE -->
    <xen:if is="!{$post.position} AND {$adData.post}">
        <xen:if is="!{$message.conversation_id}">
            <xen:include template="xenams_post" />
    Removing that fixed the bug.
  9. Lawrence

    Lawrence Well-Known Member

    I haven't encounter that happening before. The good news is the next release will not have any template edits, :)
  10. SchmitzIT

    SchmitzIT Well-Known Member

    We're very keen on seeing the new version, Lawrence :)

    And I have to admit it also had me stumped. It's the only edit we did in the message template, and reverting it did the trick. Luckily we did not use the particular template for ads anyway, so no harm done.

Share This Page