Bug Social Groups Server Error: Cannot delete a non-saved entity

McAvoy77

Customer
Running latest version of this. Only happens when a new member tries to accept the group invite for a private group that is invite only.


LogicException: Cannot delete a non-saved entity
  • src/XF/Mvc/Entity/Entity.php:1646
  • Oct 31, 2024 at 11:32 PM

Stack trace​


#0 src/addons/DBTech/SocialGroups/XF/Entity/User.php(303): XF\Mvc\Entity\Entity->delete(true, false)
#1 src/addons/DBTech/SocialGroups/XF/Entity/User.php(438): DBTech\SocialGroups\XF\Entity\User->rebuildDbtechSocialGroupMemberships(false)
#2 src/XF/Mvc/Entity/Entity.php(1324): DBTech\SocialGroups\XF\Entity\User->_postSave()
#3 src/addons/DBTech/SocialGroups/Entity/GroupInvite.php(61): XF\Mvc\Entity\Entity->save(true, false)
#4 src/XF/Mvc/Entity/Entity.php(1715): DBTech\SocialGroups\Entity\GroupInvite->_postDelete()
#5 src/addons/DBTech/SocialGroups/Entity/GroupMember.php(216): XF\Mvc\Entity\Entity->delete()
#6 src/XF/Mvc/Entity/Entity.php(1324): DBTech\SocialGroups\Entity\GroupMember->_postSave()
#7 src/addons/DBTech/SocialGroups/Repository/GroupMemberRepository.php(115): XF\Mvc\Entity\Entity->save(true, true)
#8 src/addons/DBTech/SocialGroups/ControllerPlugin/GroupPlugin.php(172): DBTech\SocialGroups\Repository\GroupMemberRepository->joinGroup(Object(DBTech\SocialGroups\Entity\Group), Object(SV\LiveContent\XF\Entity\User), true, '')
#9 src/addons/DBTech/SocialGroups/Pub/Controller/GroupController.php(1582): DBTech\SocialGroups\ControllerPlugin\GroupPlugin->actionJoin(Object(DBTech\SocialGroups\Entity\Group), '/dbtech-social/...', '/dbtech-social/...', '/dbtech-social/...', 'Death Eaters')
#10 src/XF/Mvc/Dispatcher.php(362): DBTech\SocialGroups\Pub\Controller\GroupController->actionJoin(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DBTech\\SocialGr...', 'Join', Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\Pub\Controller\GroupController), NULL)
#12 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\Pub\Controller\GroupController), NULL)
#13 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#15 src/XF.php(806): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}
 
I'll try, but I am also preparing for needing to re-install the server this site is running on, due to the issue you can read about in the announcements forum. I'm hoping that downtime won't need to be more than 1-2 days (so back up by Monday).

If I don't get to it tonight, and I have some free time while backups are generating/downloading/etc, I will try to post file edit solutions in the thread @ XF.com. Is your username the same there, so I can @ you?
 
Hope it all goes smoothly good luck.

My username on XF is dmx07

The bug is causing a lot of problems on our forums :/
 
It would appear as if this is no longer an issue in my development version. I'll release the new version today, you can let me know if it still occurs :)
 
Good evening.

Downloaded your latest version today and upgraded sadly the server error happened again when a member tried to accept a group invite.

After the member cancel the invite they are able to accept a second one without error.

Hope you can help this is getting very pesky and annoying.


  • LogicException: Cannot delete a non-saved entity
  • src/XF/Mvc/Entity/Entity.php:1646



Stack trace​



#0 src/addons/DBTech/SocialGroups/XF/Entity/User.php(326): XF\Mvc\Entity\Entity->delete(true, false)
#1 src/addons/DBTech/SocialGroups/XF/Entity/User.php(461): DBTech\SocialGroups\XF\Entity\User->rebuildDbtechSocialGroupMemberships(false)
#2 src/XF/Mvc/Entity/Entity.php(1324): DBTech\SocialGroups\XF\Entity\User->_postSave()
#3 src/addons/DBTech/SocialGroups/Entity/GroupInvite.php(61): XF\Mvc\Entity\Entity->save(true, false)
#4 src/XF/Mvc/Entity/Entity.php(1715): DBTech\SocialGroups\Entity\GroupInvite->_postDelete()
#5 src/addons/DBTech/SocialGroups/Entity/GroupMember.php(216): XF\Mvc\Entity\Entity->delete()
#6 src/XF/Mvc/Entity/Entity.php(1324): DBTech\SocialGroups\Entity\GroupMember->_postSave()
#7 src/addons/DBTech/SocialGroups/Repository/GroupMemberRepository.php(115): XF\Mvc\Entity\Entity->save(true, true)
#8 src/addons/DBTech/SocialGroups/ControllerPlugin/GroupPlugin.php(172): DBTech\SocialGroups\Repository\GroupMemberRepository->joinGroup(Object(DBTech\SocialGroups\Entity\Group), Object(SV\LiveContent\XF\Entity\User), true, '')
#9 src/addons/DBTech/SocialGroups/Pub/Controller/GroupController.php(1615): DBTech\SocialGroups\ControllerPlugin\GroupPlugin->actionJoin(Object(DBTech\SocialGroups\Entity\Group), '/dbtech-social/...', '/dbtech-social/...', '/dbtech-social/...', 'Death Eaters')
#10 src/XF/Mvc/Dispatcher.php(362): DBTech\SocialGroups\Pub\Controller\GroupController->actionJoin(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DBTech\\SocialGr...', 'Join', Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\Pub\Controller\GroupController), NULL)
#12 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DBTech\SocialGroups\Pub\Controller\GroupController), NULL)
#13 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#15 src/XF.php(806): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}

Request state​



array(4) {
["url"] => string(34) "/dbtech-social/death-eaters.2/join"
["referrer"] => string(71) "https://cutedeadguys.net/dbtech-social/death-eaters.2/discussions/list/"
["_GET"] => array(1) {
["/dbtech-social/death-eaters_2/join"] => string(0) ""
}
["_POST"] => array(5) {
["_xfToken"] => string(8) "********"
["confirm"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(47) "/dbtech-social/death-eaters.2/discussions/list/"
}
}

:confused:
 
Do bear in mind, you are the only person experiencing this issue and it was not possible to replicate the issue using the steps outlined in your previous posts.

That being said, I've applied a change to v2.2.0.1 that should prevent the issue from occurring. Can you please re-download and re-import it, and then see if it continues?
 
Hello @McAvoy77,

We hope your ticket regarding DragonByte Social Groups has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 

DragonByte Social Groups

XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
194
Customer rating
0.00 star(s) 0 ratings
Back
Top