• 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
    • Issue on upgrade

    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: Issue on upgrade

    • Issue Tools
      • View Changes
    1. issueid=6435 October 4, 2024 10:25 AM
      expanserpb expanserpb is offline
      Junior Member
      Issue on upgrade

      Now trying to upgrade my existing forum:

      Chronicles RP - Fantasy Roleplay Forum
      LogicException: Entity XF:Bookmark (class: XF\Entity\Bookmark) could not be found in src/XF/Mvc/Entity/Manager.php at line 54
      XF\Mvc\Entity\Manager->getEntityClassName() in src/XF/Mvc/Entity/Manager.php at line 71
      XF\Mvc\Entity\Manager->getEntityStructure() in src/XF/Mvc/Entity/Manager.php at line 260
      XF\Mvc\Entity\Manager->getFinder() in src/XF/App.php at line 3274
      XF\App->finder() in src/XF.php at line 1180
      XF::finder() in src/addons/vw/vw/_install/lib/upgradepath/steps/4/1/8/C/xf2.php at line 376
      vw_Install_UpgradePath_Steps_418_C_Controller_XF2->{closure}() in src/addons/vw/vw/Setup.php at line 350
      vw\vw\Setup->vwRunStep() in src/addons/vw/vw/Setup.php at line 1090
      vw\vw\Setup->upgrade() in src/XF/Admin/Controller/AddOnController.php at line 617
      XF\Admin\Controller\AddOnController->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 362
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
      XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
      XF\App->run() in src/XF.php at line 806
      XF::runApp() in admin.php at line 15
    Issue Details
    Issue Number 6435
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.8
    Fixed Version 4.1.8
    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)


    Page 2 of 2 FirstFirst Previous 12


    1. October 5, 2024 10:28 AM
      expanserpb expanserpb is offline
      Junior Member
      Okay that did the trick.

      All wiki code seems to have died.

      I tested these templates on my test site and they were fine.

      Where shall I start?

      Reply Reply  
    2. October 5, 2024 10:31 AM
      pegasus pegasus is offline
      VaultWiki Team
      Most likely the BB-Code cache needs to be rebuilt. In the AdminCP > Content > BB Code > Custom BB Codes, do something simple like disabling the BOOKINDEX BB-Code with the toggle switch, then re-enabling it.
      Reply Reply  
    3. October 5, 2024 10:54 AM
      expanserpb expanserpb is offline
      Junior Member
      It had disabled most of them completely.

      Templates merged in, looking good. *fingers crossed*
      Reply Reply  
    4. October 5, 2024 11:38 AM
      expanserpb expanserpb is offline
      Junior Member
      Hmm can you tell the before and after VW being up and running:

      Reply Reply  
    5. October 5, 2024 12:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      After an upgrade, there's no wiki cache. If it doesn't come down after a few hours, try disabling autolinks. They are very CPU expensive.
      Reply Reply  
    6. October 5, 2024 1:16 PM
      expanserpb expanserpb is offline
      Junior Member
      I've disabled them for now. It was a consistent 6% before install. Now it's stable at around 26%

      I'll see if it settles down later and add auto links back
      Reply Reply  
    7. October 6, 2024 3:39 AM
      expanserpb expanserpb is offline
      Junior Member


      Before and after VW
      Reply Reply  
    8. October 6, 2024 11:24 AM
      pegasus pegasus is offline
      VaultWiki Team
      To start, I have been watching top for a while this morning.

      In general, a simple wiki page is on par with a simple forum thread, in terms of CPU usage. The more complicated a wiki page becomes (length + templates), the higher the spike, and there are situations where both a complex wiki page and a complex forum thread (such as a thread with 10 XF 2.3 embeds) lead to high usage. Another page I have seen with higher usage is the Feeds index (the page that shows entries from multiple feeds -- usually previews or full wiki pages for about 10 pages on screen at once). I suppose if many visitors were accessing these same pages at once it could lead to a spike about half as high as yours.

      In all likelihood, there are probably a combination of factors contributing to increased load.

      Now that about a day has passed, would you say your CPU usage graph is consistent with your graph in 4.1.7?

      Possible Factor: Sudden Wiki EMBEDs

      Existing URL links to wiki pages on the forum are now being converted to XF2.3 EMBED. Every usage is actually a partial nested wiki page being rendered on each view. From what I understand, XF provides no direct means to disable EMBED for testing, but you can try to modify src/addons/vw/vw/XF/BbCode/Renderer/Html23.php renderTagEmbed with an early
      Code:
      return '';
      for testing.
      If you are using a version of XF 2.3 < 2.3.2, upgrade right away. Early versions had various issues, depending on the version, not the least of which was the possibility of EMBEDs recursively rendering each other.

      Possible Factor: AutoComplete

      The XF 2.3 integration of auto-complete in search. In general, auto-complete results include a small preview of each result. For wiki pages, that means we have to render the content when the page has no summary filled out. If your visitors are actively searching with autocomplete, and there are a lot of wiki results with no summaries, this could lead to an increase in CPU activity.

      To test this, you can edit src/addons/vw/vw/Handler/Search/Data/AutoCompletableTrait.php. Find:
      Code:
      if ($desc === '' AND isset($item['pagetext']))
      BEFORE it, add:
      Code:
      return $desc;

      Possible Factor: SVG Icons

      The XF 2.3 change to SVG icons, instead of icons from a single font. Since VW uses a lot of icons, this could contribute to a spike in HTTP activity downloading the individual icons, rather than downloading 1 font. I doubt it would account for the full spike. Making sure the XF SVGs are being served from a CDN might reduce this.

      Possible Factor: Thumbnail Generation

      In top, the only time I have noticed spikes remotely in the range from your graph (at or above 20%), is when loading a page that has wiki images that still need thumbnails. The on-the-fly thumbnail generation causes a spike. When I reload the page and the same now-thumbnailed images appear, there is no spike.

      In 4.1.8, thumbnails are added to a queue on-the-fly when needed. While the queue is waiting, the full size image is used. Visitors cache whichever version they get, so they won't request it again.

      In 4.1.7 and below, they were generated all at once on-the-fly when needed and tended to crash when there were to too many triggered at once. After a crash, all the thumbnails that were attempted were marked failed or had corrupt results. Failed thumbnails would result in the full size image being used. Visitors cached whichever version they got, so they wouldn't request it again.

      The 4.1.7 behavior had a single CPU spike, a crash, and then no more CPU spike. In 4.1.8, the CPU usage is spread over time until all queued thumbnails are done. This results in lower spikes that don't crash, but more noticeable usage on the graph nonetheless.

      Depending how many wiki images your site has and how actively your wiki is viewed and queuing those up, the queue might take a long time. If you don't really have enough images to fill your graph for so many hours (I'm betting you don't), then there are likely other factors at play.

      Possible Factor: Rogue Background Process

      After upgrading VaultWiki, old background processes from earlier versions that failed get requeued, in case the new version made a change that allows the process to succeed this time. If you had an insane number of particularly intense processes that failed, but are now able to run, this could cause a spike. Generally, such a spike should only last so long until the process has completed. But it is hypothetically feasible that one or more of these processes could be stuck in an infinite loop for whatever reason, which could lead to spikes that never go away.

      This possibility would really require someone to look at your installation and debug the background process activity.

      Possible Factor: Something Else

      There's always the possibility that something else is at play. We did profile VaultWiki not too long ago, and we did not encounter any bottlenecks that were attributable to anything unexpected. Autolinks were a bottleneck. Templates, especially nested templates, were a bottleneck, but when drilled down, it was nothing other than the nature of those things. I'll make sure we profile it again in the coming few days, just in case.
      Reply Reply  
    9. October 6, 2024 11:58 AM
      pegasus pegasus is offline
      VaultWiki Team

      Possible Factor: Comments Below the Article

      When comments are set to render below the article, it's like rendering a wiki page and rendering a forum thread simultaneously. Moving comments to a separate tab seems to reduce CPU usage by roughly 50%. This seems like an intuitive reduction based on what is happening. Admin > Options > VaultWiki: Aesthetics > Wiki discussion placement
      Reply Reply  
    10. October 6, 2024 12:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      Judging that wiki URLs tend to be generally slow, rather than a page of any particular complexity, I wonder if for some reason your new setup is tripping up on the query-retry logic. In src/addons/vw/vw/_core/model/db/mysql/vw.php, find:
      Code:
      if ($i < 5)
      Replace with:
      Code:
      if ($i < 1)
      To see if that speeds things up at all. If none of these things make any improvement, I would ask that you submit a ticket, because we would need to investigate your installation more closely and potentially make tweaks here and there to find what is contributing to the slowdown.
      Reply Reply  
    11. October 6, 2024 1:54 PM
      expanserpb expanserpb is offline
      Junior Member
      Yeah cheers for the help.

      I'll have a good run through this and see where we get!
      Reply Reply  
    12. October 7, 2024 1:45 PM
      expanserpb expanserpb is offline
      Junior Member
      Whole thing was grinding to a halt.

      Have disabled VW again and everything is super snappy.

      I'll turn it back on in an evening and try some settings again before opening a ticket. For now I'll open up a read only version of the old wiki and let people post content elsewhere.
      Reply Reply  
    13. October 8, 2024 3:31 AM
      expanserpb expanserpb is offline
      Junior Member
      So load times on the home page:

      ~450ms with VW disabled
      ~850ms with VW enabled

      Wiki homepage ~2.5s load time

      I'll raise a ticket
      Reply Reply  
    14. October 9, 2024 2:51 AM
      pegasus pegasus is offline
      VaultWiki Team
      After investigating the issue thoroughly, we discovered that a "Feed Updates"-type widget was being used globally throughout the wiki to render previews of several expensive wiki pages within a sidebar block. Disabling the widget, or alternatively adjusting the targeted feeds to not include previews, significantly improved loading times.

      After considering the specific use case, it is unclear at this time whether the widget itself or its render logic could be optimized in any impactful way; further research is needed.

      Closing this issue as fixed, since the other error messages reported have been resolved. A new build will be packaged shortly to reflect the resolved issues.
      Reply Reply  
    Page 2 of 2 FirstFirst Previous 12
    + 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 2:20 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.