• 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
    • LogicException: Cannot delete an entity that has been partially updated

    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: LogicException: Cannot delete an entity that has been partially updated

    • Issue Tools
      • View Changes
    1. issueid=6152 January 19, 2021 9:34 AM
      hollosch hollosch is offline
      Senior Member
      LogicException: Cannot delete an entity that has been partially updated

      LogicException: Cannot delete an entity that has been partially updated src/addons/vw/vw/XF/Entity/EntityBase.php:685
      Generiert von: Holger Schrag 19. Januar 2021 um 01:33
      Stack-Trace
      #0 src/addons/vw/vw/_core/controller/dm/xf2.php(410): vw\vw\XF\Entity\EntityBase->vwDelete()
      #1 src/addons/vw/vw/_core/controller/cp/permission/vw.php(431): vw_DM_Controller_XF2->delete()
      #2 src/addons/vw/vw/_core/controller/cp/permission/vw.php(40): vw_CP_Permission_Controller->save()
      #3 src/addons/vw/vw/Admin/Controller/Wiki.php(103): vw_CP_Permission_Controller->execute('save', 'post')
      #4 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Admin\Controller\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #5 src/addons/vw/vw/Admin/Controller/Wiki.php(51): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Admin\Control ler\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #6 src/XF/Mvc/Dispatcher.php(350): vw\vw\Admin\Controller\Wiki->actionIndex(Object(XF\Mvc\ParameterBag))
      #7 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('vw\\vw\\Admin\\Con...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Admin\Controller\Wiki), NULL)
      #8 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Admin\Controller\Wiki), NULL)
      #9 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #10 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
      #11 src/XF.php(488): XF\App->run()
      #12 admin.php(13): XF::runApp('XF\\Admin\\App')
      #13 {main}
      Status der Anfrage
      array(4) {
      ["url"] => string(27) "/admin.php?wiki/permission/"
      ["referrer"] => string(79) "https://regio-portal.wiki/admin.php?wiki/permission/&permissionid=77744&do=edit"
      ["_GET"] => array(1) {
      ["wiki/permission/"] => string(0) ""
      }
      ["_POST"] => array(16) {
      ["panel"] => string(10) "permission"
      ["do"] => string(4) "save"
      ["_xfToken"] => string(8) "********"
      ["permissionid"] => string(5) "77744"
      ["return_panel"] => string(10) "permission"
      ["area_permissions"] => array(17) {
      ["canview"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canchildren"] => string(2) "-1"
      ["canlist"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canseehistory"] => string(2) "-1"
      ["canseesource"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canundo"] => string(2) "-1"
      ["followeditrules"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["candisambiguate"] => string(2) "-1"
      ["canreport"] => string(2) "-1"
      ["cancopyright"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      ["mod_permissions"] => array(15) {
      ["canedit"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canundo"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canedit2"] => string(2) "-1"
      ["candelete2"] => string(2) "-1"
      ["canseeips"] => string(2) "-1"
      ["canmodwiki"] => string(2) "-1"
      ["canmodtalk"] => string(2) "-1"
      ["canmove"] => string(2) "-1"
      ["canattribute"] => string(2) "-1"
      ["canattribute2"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canremove2"] => string(2) "-1"
      ["cancopyright"] => string(2) "-1"
      }
      ["file_permissions"] => array(18) {
      ["cancreate"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canseehistory"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canundo"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["followeditrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canbook"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["candisambiguate"] => string(2) "-1"
      ["candownload"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      ["page_permissions"] => array(18) {
      ["cancreate"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canseehistory"] => string(2) "-1"
      ["canseesource"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canundo"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["followeditrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canbook"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["candisambiguate"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      ["node_permissions"] => array(4) {
      [11] => array(17) {
      ["cancreate"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canlist"] => string(2) "-1"
      ["canpush"] => string(2) "-1"
      ["canunpush"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canbook"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["candisambiguate"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      [12] => array(17) {
      ["cancreate"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canlist"] => string(2) "-1"
      ["canpush"] => string(2) "-1"
      ["canunpush"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canbook"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["candisambiguate"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      [14] => array(7) {
      ["cancreate"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      }
      [36] => array(16) {
      ["cancreate"] => string(2) "-1"
      ["canviewtalk"] => string(2) "-1"
      ["canlist"] => string(2) "-1"
      ["canpush"] => string(2) "-1"
      ["canunpush"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canincategories"] => string(2) "-1"
      ["canpromotions"] => string(2) "-1"
      ["canprotect"] => string(2) "-1"
      ["canrename"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["canbook"] => string(2) "-1"
      ["cancategory"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      }
      ["discussion_permissions"] => array(5) {
      ["cancreate"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["canrate"] => string(2) "-1"
      }
      ["comment_permissions"] => array(11) {
      ["cancreate"] => string(2) "-1"
      ["canedit"] => string(2) "-1"
      ["canattach"] => string(2) "-1"
      ["followmodrules"] => string(2) "-1"
      ["candelete"] => string(2) "-1"
      ["comment_html"] => string(2) "-1"
      ["comment_img"] => string(2) "-1"
      ["comment_bbcode"] => string(2) "-1"
      ["comment_smile"] => string(2) "-1"
      ["comment_media"] => string(2) "-1"
      ["canremove"] => string(2) "-1"
      }
      ["url"] => string(52) "https://regio-portal.wiki/admin.php?wiki/permission/"
      ["_xfRequestUri"] => string(54) "/admin.php?wiki/permission/&permissionid=77744&do=edit"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
    Issue Details
    Issue Number 6152
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Permissions / Security
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.1
    Fixed Version 4.1.2
    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. January 19, 2021 3:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurs when saving all permissions as Not Set for a custom permissions set, rather than deleting the set.

      In src/addons/vw/vw/XF/Entity/EntityBase.php, find:
      Code:
      if (!$this->vwPreDelete())
      BEFORE it, add:
      Code:
      $this->reset();
      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 3:21 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.