• 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
    • XF Remove Area & Category Links

    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: XF Remove Area & Category Links

    • Issue Tools
      • View Changes
    1. issueid=3506 December 14, 2013 10:05 AM
      Insanity Insanity is offline
      New Member
      XF Remove Area & Category Links
      Issue when removing an area with XF

      With my XenForo install, when I remove an area (from the wiki acp) everything appears to work properly. ALTHOUGH...If I was to try and re-add the area back after shortly removing it. I get the error that you get when an area already exists and you try to re-create it. Making it completely impossible for me to add an area back with the same name, if I've removed it before in the past.

      I just checked the mysql database to see if perhaps some info was left in the table after I "deleted" the areas. Although I could only find areas for the ones that I've currently created.

      This is a HUGE problem for me, as I'm not completely unable to create properly named categories for my wiki. Due to deleting the old category (simply to wipe all the sub categories within, as I wished to convert them to simple articles/pages.) So till I can figure out how to properly HARD delete a wiki area, I'm not able to update my wiki structure the way I was hoping to.

      I also noticed the other day that when I deleted an area, and added a new one back with kinda the same name...old areas that I deleted with the original one would randomly appear one by one. I'd usually have to delete a new area, and a random old area (that was deleted a long while back) suddenly would appear in the area list again.

      I have NO idea what is going on, I just know that this is preventing me from working on the wiki.

      Also, on a side note...the category bbcode doesn't seem to be working for me on XenForo? I see it in the list of valid syntax codes, and see how to properly use it. Although the category tag is simply being parsed as plain text, instead of it creating a link to the category as expected.

      Any help with either problem is really appreciated. I'd love to be able to use VaultWiki to build a proper wiki setup for the project that our site is based around.
    Issue Details
    Issue Number 3506
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Areas
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0 Beta 7
    Fixed Version 4.0.0 Gamma 1
    Milestone VaultWiki 4 Beta 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 area, category




    1. December 17, 2013 1:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      When an area (or any wiki page) is deleted, it gets added to a cron-based process to remove the data. This is necessary because there can be a significant amount of connected data for each deleted page, and when performing mass deletes, the PHP process might timeout before the delete is completed.

      It is possible that you are trying to re-add the same area before the cron has completed, which would give you the error message. However, it is also possible that the cron is not running at all, or that the area was never actually added to the queue. In both cases, the area would stop showing in the manager, but the data would still be there. If you have given sufficient time for the cron to run (I think it occurs during cleanup once daily), then this may be the case, and I would have to look at your database to see where it's going wrong.

      Please let me know.

      As for the category BB-Code being unavailable, change the Wiki Links setting for "Legacy Category Tag" so that it's a different name than your link tag. That should resolve the conflict you're having.
      Reply Reply  
    2. December 18, 2013 10:59 AM
      Insanity Insanity is offline
      New Member
      Well, it has been far longer than a day. Yet the old areas I deleted still seem to be in the system somewhere. I can't add an area with the same name of the ones I deleted many days ago. Is there a way I can run the cron manually so I can make sure it's either the cronjob is either not working...or perhaps not even running.

      As for the category issue. I renamed the setting for it to use "group" instead. Doing so doesn't change/fix anything though. With it changed the Group and Category tags still sit there unparsed.
      Reply Reply  
    3. December 18, 2013 11:17 AM
      Insanity Insanity is offline
      New Member
      Quick update, I just tried running all of the Vault Wiki cron jobs manually. Before doing so, it appeared that they were running just fine, although I ran it anyways. They didn't appear to fix the area issue I'm currently having. So it would appear one of the cron jobs isn't doing their job properly. As I still can't add an area back with the name of one I've previously deleted...which isn't a huge issue to me atm, because I've decided to approach things differently. However, it's still clearly a bug and should probably be looked into.

      As for the category issue, I can't seem to get it to work on XF no matter what I try. Which is really going to stop me from creating my wiki structure if I can't figure out the issue. Thus making VaultWiki useless to me.
      Reply Reply  
    4. December 27, 2013 11:31 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the error with deferred deletes not working under XenForo. Only the first deferred delete ever queued would run. Further, if any errors (even notice level) occurred then the delete would automatically rollback. There is nothing we can do about the rollback behavior except to fix the errors when they appear in the logs. Currently queued deletes should eventually happen after the next update now that these issues are fixed.

      I am still looking into the issue with the category BB-Code.
      Reply Reply  
    5. January 6, 2014 6:16 PM
      Insanity Insanity is offline
      New Member
      Any news on this issue? Still pretty stranded on what I can do without having being able to link to categories.
      Reply Reply  
    6. January 7, 2014 11:37 AM
      pegasus pegasus is offline
      VaultWiki Team
      I added an upgrade service for you so we can update your files to the dev version and see if it will still occur in the upcoming release. You can find it in the Members area of the site.

      There were some fixes made to the parser under XenForo, but it's hard to say at this point whether they correspond to the issue you're having without first applying the same fixes (they mainly had to do with " marks and conflicts with third-party custom BB-Codes).
      Reply Reply  
    7. January 8, 2014 8:51 AM
      Insanity Insanity is offline
      New Member
      So...you need complete access to my site in order to update it to the dev version? :/

      Just want to be clear on what actual info is needed first. I really appreciate the help in addressing this issue.
      Reply Reply  
    8. January 8, 2014 9:55 AM
      pegasus pegasus is offline
      VaultWiki Team
      In general, the only way to both confirm an issue and resolve it is to duplicate the issue so that we can see what changes to the source code will fix it. If a user experiences an issue that we are unable to replicate on our own test sites, then the only way this can be done is with access that the user provides.

      If you have a test board that can duplicate the issue, then this is by far the safest place to give developers access, since the process of debugging will have little to no impact that your end-users can see. However, sometimes it is not even possible to duplicate the issue this way, or it is too cumbersome to clone the site to a test board. If access to a production board is given, users may encounter error messages site-wide for several minutes while changes are being applied. Of course, this is contingent on your site configuration, your user concurrency, and the scope of the issue being investigated. Many issues may see no side effects at all as they are fixed, and we do our best to keep side effects exposed only to a single admin account.

      Most issues require at least a forum admin account (it can be a new one) or a forum account with user privileges that are able to duplicate the issue (e.g. if it only happens for certain users; however, usually still requires an admin account to see what user settings are affecting the issue). For anything beyond a misconfiguration issue (i.e. if it's a bug), then FTP access is also needed for the forum directory so that we can make changes to VaultWiki's source code. This can be a separate FTP account from the one you use, as long as it is actually able to modify the files under the forum directory (as permissions go with typical 755 or 655, it usually just needs to be the same 'group').

      We do NOT really ever need direct access to the database, or to your shell, or to the root of your server.
      Reply Reply  
    9. January 10, 2014 4:52 PM
      Insanity Insanity is offline
      New Member
      Sounds good to me. I've added the info to the upgrade service. Hope you guys are able to get the category tag working. I can't imagine another bbcode is conflicting with it, as I've checked all the other valid bbcodes, and even changed the category bbcode to be used as something else with no luck. Can't wait to get this working so I can start building the wiki for my site and open it to the general public.
      Reply Reply  
    10. January 11, 2014 12:12 PM
      pegasus pegasus is offline
      VaultWiki Team
      For one thing, BBM breaks VaultWiki tags. For some reason I can't understand, it clears the object callback for BB-Code tags. I guess it figures BB-Codes will only be created through BBM, but this isn't compatibility minded. The problematic code is in library/BBM/BbCode/Formatter/Base.php. It might be in other formatters too:
      Code:
      		if(isset($tagInfo['callback'][0]))
      		{
      			$tagInfo['callback'][0] = '';//Not needed for info (recursive)
      		}
      This breaks the reference to the class that knows how to parse wiki BB-Codes. I think it should have a method in place to determine if the tag was created by BBM before making such dramatic changes to the tag's definition. If it is clearing it for memory purposes, that's unnecessary. The value is either a string, with very small footprint, or an object reference. In PHP 5, it is not a clone object, but a reference to the same internal pointer for the object, so again, very small footprint.

      Currently, because of these lines, the page will simply crash if a wiki BB-Code is used. If I comment out the above lines from BBM, the page doesn't crash and the wiki BB-Codes parse as expected. As far as I can tell, BBM still functions as expected too.

      This might be the cause of your issue. Please check with BBM's author for a solution, then do your tests with the [category] tag again.

      By the way, my entire test assumes you made a wiki Prefix named 'Category' (or similar) that has the BB-Code 'category' in its settings. If you are using another method to create wiki tags (and you don't want to use the WIKI tag for some reason) please let me know.
      Reply Reply  
    11. February 1, 2014 12:08 PM
      Insanity Insanity is offline
      New Member
      Did as suggested above, also running the newest build of VaultWiki. Although the category tag still isn't parsing when used on a page.
      Reply Reply  
    12. February 2, 2014 2:06 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please link me to an example page where the category tag is already posted and is not working. After fixing BBM on your site last time, the category tag was parsing whenever I tried it.
      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:48 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.