• 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\PrintableException: Batch install error: BB code tags must be unique. The specified tag is already in use. src/XF/Mvc/Entity/Entity.php:1212

    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\PrintableException: Batch install error: BB code tags must be unique. The specified tag is already in use. src/XF/Mvc/Entity/Entity.php:1212

    • Issue Tools
      • View Changes
    1. issueid=6244 August 9, 2021 4:20 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      XF\PrintableException: Batch install error: BB code tags must be unique. The specified tag is already in use. src/XF/Mvc/Entity/Entity.php:1212

      Server error log

      XF\PrintableException: Batch install error: BB code tags must be unique. The specified tag is already in use. src/XF/Mvc/Entity/Entity.php:1212

      Stack trace

      #0 src/addons/vw/vw/_core/model/tag/xf2.php(276): XF\Mvc\Entity\Entity->save()
      #1 src/addons/vw/vw/_core/model/tag/vw.php(308): vw_Tag_Model_XF2->do_update('vw_category_tag', Array)
      #2 src/addons/vw/vw/_install/lib/common/vw.php(349): vw_Tag_Model->update('vw_category_tag', Array)
      #3 src/addons/vw/vw/_install/lib/common/xf2.php(81): vw_Install_Common_Controller->update_bbcodes(Array, Array)
      #4 src/addons/vw/vw/_install/lib/common/vw.php(295): vw_Install_Common_Controller_XF2->update_bbcodes(Array, Array)
      #5 src/addons/vw/vw/_install/lib/upgradepath/steps/final/xf2.php(35): vw_Install_Common_Controller->do_bbcode(Object(vw\vw\Setup\View))
      #6 src/addons/vw/vw/Setup.php(333): vw_Install_UpgradePath_Steps_Final_Controller_XF2->{closure}(Object(vw\vw\Setup\Caller\Upgrade), false)
      #7 src/addons/vw/vw/Setup.php(1062): vw\vw\Setup->vwRunStep('upgrade', Object(vw_Install_UpgradePath_Steps_Final_Controller_XF2) , Array, 2)
      #8 src/XF/Job/AddOnInstallBatch.php(297): vw\vw\Setup->upgrade(Array)
      #9 src/XF/Job/AddOnInstallBatch.php(89): XF\Job\AddOnInstallBatch->stepAction(Object(XF\Timer))
      #10 src/XF/Job/Manager.php(258): XF\Job\AddOnInstallBatch->run(8)
      #11 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 8)
      #12 src/XF/Job/Manager.php(116): XF\Job\Manager->runJobEntry(Array, 8)
      #13 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
      #14 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
      #15 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\To ols), NULL)
      #16 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\To ols), NULL)
      #17 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #18 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
      #19 src/XF.php(512): XF\App->run()
      #20 admin.php(13): XF::runApp('XF\\Admin\\App')
      #21 {main}

      Request state

      array(4) {
      ["url"] => string(33) "/test2-xf/admin.php?tools/run-job"
      ["referrer"] => string(61) "/admin.php?tools/run-job"
      ["_GET"] => array(1) {
      ["tools/run-job"] => string(0) ""
      }
      ["_POST"] => array(3) {
      ["_xfRedirect"] => string(97) "/admin.php?add-ons/install-from-archive-complete&batch_id=25"
      ["_xfToken"] => string(8) "********"
      ["only_ids"] => string(27) "958,960,960,960,960,960,960"
      }
      }

      This is a XF1 to XF2.2 upgrade.
    Issue Details
    Issue Number 6244
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Duplicate
    Priority 3 - Loss of Functionality
    Affected Version 4.1.2
    Fixed Version (none)
    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. August 21, 2021 6:48 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thank you! Awesome! My wiki is back online.
      Reply Reply  
    2. November 25, 2021 4:16 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I have tried to upgrade my XF2 staging site VaultWiki · 4.1.2 -> 4.1.3 and am now again getting: BB code tags must be unique. The specified tag is already in use.
      Reply Reply  
    3. November 26, 2021 12:09 PM
      pegasus pegasus is offline
      VaultWiki Team
      If the staging site is a newer clone of the live site, did you ever delete the extra BB-Code on the live site? Please check your database. If not, I would expect this to happen if 4.1.2 was the first version that you used on your live site in combination with XF2 (all other previous versions being under XF1). If that is the case, then this is still the same issue as last time that you actually never corrected yet.

      If you have deleted it before, this may be a problem like having a src/addons/vw/vw/_output folder.
      You should always delete that before upgrading any addon. It means you made customizations to the add-on while using XenForo's development mode, and you have effectively changed the master data associated with the add-on. XenForo will always upgrade from that folder first, before using the add-on's new master data. That would be administrator error, not a bug in VaultWiki.

      After you complete the upgrade again, you should check the database again to make sure it wasn't recreated. Still, I have not had a problem like this.
      Reply Reply  
    4. November 26, 2021 2:00 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      The installation is the same XF2 upgrade as before. I only have the [cat] category bbcode left. When I try to delete it I get this error:

      Oops! We ran into some problems.
      This item cannot be deleted as it is associated with an add-on or XenForo itself. If you do not wish to use this, please disable it instead.
      Reply Reply  
    5. November 26, 2021 3:25 PM
      pegasus pegasus is offline
      VaultWiki Team
      I replied to your PM. You should definitely not be attempting to delete the [cat] BB-Code. That is the one you actually use.

      In summary, you need to follow the instructions from earlier in the thread, consistently on all your forum copies:
      1. Update the add-on ID of all vw_category_tag entries to be vw/vwcustom
      2. Remove the CATEGORY BB-Code (keep CAT).

      You need to do both of these steps. If you do only #2 and not #1, then I would expect the extra tag to reappear after you finish the upgrade. If you decide not to do it on all of your copies, and then you clone from the un-fixed copy in the future, you will reencounter this problem.
      Reply Reply  
    6. December 26, 2024 3:53 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Is there any way to do these two steps on my XF1 install, before I upgrade to XF2?
      Reply Reply  
    7. December 26, 2024 10:42 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      1. Update the add-on ID of all vw_category_tag entries to be vw/vwcustom
      2. Remove the CATEGORY BB-Code (keep CAT).
      OK. What I did was this:
      I found the database entries for CAT and CATEGORY. in xf_bb_codes. I removed the addon_id value from CATEGORY and added it to CAT. (7661756c7477696b69). Then I deleted the CATEGORY entry.
      I hope that was the right action.
      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 4:02 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.