• 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: Attempted to set 'content_id' on a deleted entity in src/XF/Mvc/Entity/Entity.php at line 600

    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: Attempted to set 'content_id' on a deleted entity in src/XF/Mvc/Entity/Entity.php at line 600

    • Issue Tools
      • View Changes
    1. issueid=6414 February 11, 2024 6:53 AM
      wolven wolven is offline
      New Member
      LogicException: Attempted to set 'content_id' on a deleted entity in src/XF/Mvc/Entity/Entity.php at line 600
      The deletion of a moderator doesn't remove him entirely. The attempt ro remove the remains lead to an error.

      #0 src/XF/Mvc/Entity/Entity.php(582): XF\Mvc\Entity\Entity->set('content_id', 1)
      #1 src/addons/vw/vw/XF/Entity/ModeratorContent.php(31): XF\Mvc\Entity\Entity->__set('content_id', 1)
      #2 src/XF/Mvc/Entity/Entity.php(1664): vw\vw\XF\Entity\ModeratorContent->_postDelete()
      #3 src/XF/ControllerPlugin/Delete.php(18): XF\Mvc\Entity\Entity->delete()
      #4 src/XF/Admin/Controller/Moderator.php(320): XF\ControllerPlugin\Delete->actionDelete(Object(vw\vw\XF\Entity\ModeratorContent), '/forum/admin.ph...', '/forum/admin.ph...', '/forum/admin.ph...', 'carmaster ()')
      #5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Moderator->actionContentDelete(Object(XF\Mvc\ParameterBag))
      #6 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Moderator', 'Contentdelete', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Admin\Controller\Moderator), NULL)
      #7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Admin\Controller\Moderator), NULL)
      #8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #9 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
      #10 src/XF.php(524): XF\App->run()
      #11 admin.php(13): XF::runApp('XF\\Admin\\App')
      #12 {main}
      Status der Anfrage
      array(4) {
      ["url"] => string(45) "/forum/admin.php?moderators/content/17/delete"
      ["referrer"] => string(51) "https://xxx/forum/admin.php?moderators/"
      ["_GET"] => array(1) {
      ["moderators/content/17/delete"] => string(0) ""
      }
      ["_POST"] => array(4) {
      ["_xfToken"] => string(8) "********"
      ["_xfRequestUri"] => string(28) "/forum/admin.php?moderators/"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
    Issue Details
    Issue Number 6414
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.7
    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)




    1. February 12, 2024 12:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      When you say:
      Quote Originally Posted by wolven
      The deletion of a moderator doesn't remove him entirely
      Can you elaborate on this? Is there a clear difference before and after the first attempt at removal? If so, what is the change?
      Reply Reply  
    2. February 13, 2024 9:49 AM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/XF/Entity/ModeratorContent.php, find and remove:
      Code:
      		if ($this->content_type == 'vwarea' AND !$this->content_id)
      		{
      			$index = \vw_Hard_Core::controller('Fetch')->cached('Index', 0);
      			$this->content_id = $index['pageid'];
      		}
      Find:
      Code:
      			$index = \vw_Hard_Core::controller('Fetch')->cached('Index', 0);
      			$nodeid = $this->content_id;
      
      			if ($index['pageid'] == $nodeid)
      			{
      				$nodeid = 0;
      			}
      Replace with:
      Code:
      			$nodeid = $this->content_id;
      
      			if ($nodeid)
      			{
      				$index = \vw_Hard_Core::controller('Fetch')->cached('Index', 0);
      
      				if ($index['pageid'] == $nodeid)
      				{
      					$nodeid = 0;
      				}
      			}
      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 2:34 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.