• 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
    • Enable AJAX previews of wiki content Not working

    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: Enable AJAX previews of wiki content Not working

    • Issue Tools
      • View Changes
    1. issueid=6315 September 13, 2022 9:10 AM
      mazzly mazzly is offline
      Junior Member
      Enable AJAX previews of wiki content Not working

      When hovering a wiki link nothing happens...

      In web dev console we can see that JS loading fails...
      GET https://www......com/js/vw/vw/min/li....js?v=4e5d8ee5 404
    Issue Details
    Issue Number 6315
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.5
    Fixed Version 4.1.6
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 13, 2022 1:31 PM
      pegasus pegasus is offline
      VaultWiki Team
      I copy and pasted the AJAX preview Javascript file from your site and it works on my site. I see that you are also using Google Pagespeed, which adds an extra layer of processing to Javascript. Please try temporarily disabling it and see if that has any effect.
      Reply Reply  
    2. September 14, 2022 8:59 AM
      mazzly mazzly is offline
      Junior Member
      I didn't try disabling pagespeed yet...

      I noticed that under the path js/vw/vw/min there is no such file, which is why nginx won't serve it (404)

      I also checked that the lightbox.js doesn't seem to be bundled with the vaultwiki zip file?
      Reply Reply  
    3. September 15, 2022 11:54 AM
      pegasus pegasus is offline
      VaultWiki Team
      Hm... So in the VaultWiki code, lightbox.js IS added to a list of possible Javascript load-on-demand files, and that file list is generally output to the browser. However, (text-search confirmed) there is no code in VaultWiki that actually triggers that file to load-on-demand. So I am not sure where you are seeing this file fail to load, or what would make it try to load. I cannot find an example on your site.

      I also don't think it is related to the AJAX preview issue since AJAX previews are not working even on pages with no lightbox error (as I mentioned I can't even find a lightbox error). From what I can tell, it just seems that some code is not running on your site. It is possible this is due to timing issues or small code changes introduced by running mod_pagespeed. I am not sure that mod really provides much benefit on your Javascript under XenForo, since both XenForo and VaultWiki provide minified scripts anyway, and the scripts are generally already as deferred as possible in their design. From what I can see, you might be saving network latency on 1 file in total, which may not be worth the added execution time and lower reliability overall of using mod_pagespeed in this way.
      Reply Reply  
    4. September 16, 2022 1:58 PM
      mazzly mazzly is offline
      Junior Member
      I tried disabling mod_pagespeed and still get same issue.

      I had a check in console again, and just before the lightbox failure to load there is another:

      Code:
      GET undefinedhttps://www......com/wiki-asset/?pid=125&d=1628260741&x=180undefined net::ERR_UNKNOWN_URL_SCHEME
      So something seems a bit broken there... Should not be due to pagespeed, wondering could it be CF some rocketloader messing with it?
      Reply Reply  
    5. September 16, 2022 2:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please message me a link to the wiki page where this is occurring.
      Your mention of RocketLoader reminds me that RocketLoader was historically bad (https://www.vaultwiki.org/issues/5716/) and we force-disabled it for a number of versions. We later allowed it to come back on, but if you are having issues and can confirm it's RocketLoader, then we may have to block it again.
      Reply Reply  
    6. September 17, 2022 7:11 AM
      mazzly mazzly is offline
      Junior Member
      I've noticed that the preview actually loads, but is invisible due to having a non-existing z-index value... Even setting it to 1 helps, but probably good to make it a higher value....

      Still the image in the preview/tooltip are broken and doen't load, likely related to that undefinedhttps://.... error shown above
      Reply Reply  
    7. September 17, 2022 11:33 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the z-index in the next release. The value should always be at least 100, but it will try to calculate the z-index of the link being hovered, and make the z-index of the preview-wrapper higher than that.

      I am still analyzing the additional information about the images and undefined error.
      Reply Reply  
    8. September 17, 2022 12:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the loading of the missing lightbox.js file in the next release. The problem was actually something else -- that after AJAX, it was trying to load every Javascript file in the trigger list, rather than only files that were actually triggered by the AJAX. Since there are no triggers currently in use for the non-existent lightbox file, it should no longer attempt to load. The name remains in the list because it is reserved for future use.
      This change has the benefit of reducing traffic and bandwidth whenever something AJAX happens.

      For the undefined icon image in preview, if using the unminified Javascript files, in js/vw/vw/base.js, find:
      Code:
      return "url(" + q + scope.resourceAbsolute(url) + q + ")";
      Replace with:
      Code:
      return "url(" + (q || '') + scope.resourceAbsolute(url) + (q || '') + ")";
      If using the minified files, in js/vw/vw/xf2/compiled/base.js, find:
      Code:
      {return"url("+d+b.resourceAbsolute(e)+d+")"}
      Replace with:
      Code:
      {return"url("+(d||'')+b.resourceAbsolute(e)+(d||'')+")"}
      You'll have to refresh the page with no browser cache and possibly expire the file in any other static file caches you may have, such as a CDN or CloudFlare cache.
      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 9:30 AM.
    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.