• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Conflict with XMG comments

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Conflict with XMG comments

    • Issue Tools
      • View Changes
    1. issueid=3742 May 18, 2014 9:32 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Conflict with XMG comments

      When Vaultwiki is enabled then xen media gallery comments do not load. See: http://xenmediagallery.com/threads/c...splaying.1327/
    Issue Details
    Issue Number 3742
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Text Editor (WYSIWYG, etc)
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0 Gamma 5
    Fixed Version 4.0.0 Gamma 6
    Milestone VaultWiki 4 Gamma X
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 18, 2014 11:32 AM
      pegasus pegasus is offline
      VaultWiki Team
      Are you receiving any error in the browser console, when comments are supposed to load, or does anything appear in your error logs at the time?
      Reply Reply  
    2. May 18, 2014 1:41 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Only this error, which is present when I turn VW off and comment work:

      TypeError: XenForo.BbCodeWysiwygEditor is undefined
      http://domain.com/js/Tinhte/XenTag/b...js?_v=f7c52214
      Line 2
      Reply Reply  
    3. May 18, 2014 3:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think there is an issue with VaultWiki being unable to detect the proper output encoding for XMG comments. Most Javascript-loaded HTML in XenForo is transmitted via JSON requests, and these are usually crafted a certain way. It's possible XMG crafts these requests differently or encodes the output differently. If this is the case, VaultWiki probably uses a different output encoding when it tries to add its own integrations to the output.

      I have sent a PM with a little more information.
      Reply Reply  
    4. May 19, 2014 10:19 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This is due to a variation in how XenForo executes Javascript between normal HTML output and JSON output. In HTML output, Javascript is executed in an expected order from script tag to script tag.

      However, in a JSON request, individual Javascript files are loaded asynchronously, and then executed in the order of whatever scripts finish loading first. In my opinion this is an oversight -- all asynchronously loaded scripts should wait for the other scripts in the current batch so they can execute in the requested order. This is the way VaultWiki handles its own async scripts. While I contest that this is a small design flaw within XenForo, I have modified VaultWiki's redactor files for the next release so that they can at least fail and break VaultWiki editor functions silently in this case, rather than preventing the entire JSON action from completely.
      Reply Reply  
    5. May 23, 2014 6:28 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      XMG 2.1 RC6 fixes this issue.
      Reply Reply  
    6. May 23, 2014 10:58 AM
      pegasus pegasus is offline
      VaultWiki Team
      While I suspect this particular presentation of the issue might be fixed by a change to XMG, perhaps the method it uses to load comments (not really a reason to be using deferred loading on a default-open tab, unless comments are updated live)...

      This issue should actually extend to anywhere that XenForo (or an add-on) loads an editor asynchronously, commonly inline post editing, and this is a core issue that can only be resolved by either changing VaultWiki or XenForo (although changing VaultWiki would be a "workaround" and not a fix for the underlying issue). VaultWiki expects script tags to execute in the order it provides, and XenForo executes script tags in whatever order it feels like.

      As mentioned above, there is a workaround that will be employed in the next release: don't load VaultWiki editor stuffs if XenForo is doing something asynchronous. This might lead to lost functionality, but currently is the only way to go about it due to non-existent Javascript events at the appropriate position.

      A true fix would be for XenForo to update its asynchronous loader to be queue-based, rather than execute-when-loaded. This can still be achieved asynchronously, without any real added latency:
      1. Asynchronously load included scripts to memory.
      2. As each script is loaded, add the result to a queue in the original order.
      3. Execute the ordered queue.
      As it is now, there is no queue and no order, which can cause Javascript conflicts (X-dependency is not loaded yet, etc, even though it was first in the chain).
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:21 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.