Social Groups for XenForo

Social Groups for XenForo [Paid] 2.1.33 Patch Level 6

No permission to buy ($49.00)
ozzy47 updated Social Groups for XenForo 2.1+ with a new update entry:

Social Groups for XenForo 2.1+ Update 2.1.17

An update to the Social Groups system for XenForo 2.1+ has been released. Those that have purchased this add-on, please log into your account to download this update.
  • Fix - An issue in some users profile tabs when user has in the privacy setting: "View groups you belong to: Nobody " would prevent them from opening.
  • Fix - The way to allow viewing of edit history in groups.

Read the rest of this update entry...
 
Hi there... after updating today I had problems with the profile tabs in only some of the users profiles.
Now after testing I found out, that the problem (tabs in profile did not open ... or like the content from the tab "about you" was not shown) only happens when the user has in the privacy setting:

View groups you belong to: Nobody

If the setting is "Guests" or "Members only" then there is no problem while watching the users profile...

Could you please check that?

Sorry for the delay. This is fixed in version 2.1.7
 
2 errors related to this addon

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry 'post-13737636' for key 'PRIMARY' src/XF/Db/AbstractStatement.php:217
Generated by: iCONZ Oct 21, 2019 at 1:12 AM
Stack trace
INSERT  INTO `xf_deletion_log` (`content_type`, `content_id`, `delete_user_id`, `delete_username`, `delete_reason`, `delete_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1452): XF\Db\AbstractAdapter->insert('xf_deletion_log', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1184): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/Entity/Entity.php(1202): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Entity/Post.php(772): XF\Mvc\Entity\Entity->save()
#8 src/XF/Service/Post/Deleter.php(81): XF\Entity\Post->softDelete('', Object(Datio\AllowedEmails\XF\Entity\User))
#9 src/addons/Snog/Groups/XF/Service/Post/Deleter.php(10): XF\Service\Post\Deleter->delete('soft', '')
#10 src/XF/Pub/Controller/Post.php(255): Snog\Groups\XF\Service\Post\Deleter->delete('soft', '')
#11 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Post->actionDelete(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Delete', Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#13 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#14 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#16 src/XF.php(390): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(22) "/posts/13737636/delete"
  ["referrer"] => string(36) "https://domain.com/threads/774694/"
  ["_GET"] => array(1) {
    ["/posts/13737636/delete"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["reason"] => string(0) ""
    ["hard_delete"] => string(1) "0"
    ["_xfRedirect"] => string(36) "https://domain.com/threads/774694/"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(16) "/threads/774694/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}


XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'position' at row 1 src/XF/Db/AbstractStatement.php:217
Generated by: iCONZ Oct 21, 2019 at 1:12 AM
Stack trace
UPDATE  `xf_post` SET `position` = ? WHERE `post_id` = 13737636
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1264, '22003')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1264, '22003')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(322): XF\Db\AbstractAdapter->query('UPDATE  `xf_pos...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1288): XF\Db\AbstractAdapter->update('xf_post', Array, '`post_id` = 137...')
#5 src/XF/Entity/Post.php(673): XF\Mvc\Entity\Entity->fastUpdate('position', -1)
#6 src/XF/Entity/Post.php(472): XF\Entity\Post->postHidden()
#7 src/XF/Mvc/Entity/Entity.php(1208): XF\Entity\Post->_postSave()
#8 src/XF/Entity/Post.php(772): XF\Mvc\Entity\Entity->save()
#9 src/XF/Service/Post/Deleter.php(81): XF\Entity\Post->softDelete('', Object(Datio\AllowedEmails\XF\Entity\User))
#10 src/addons/Snog/Groups/XF/Service/Post/Deleter.php(10): XF\Service\Post\Deleter->delete('soft', '')
#11 src/XF/Pub/Controller/Post.php(255): Snog\Groups\XF\Service\Post\Deleter->delete('soft', '')
#12 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Post->actionDelete(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Delete', Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#14 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#15 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#17 src/XF.php(390): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}
Request state
array(4) {
  ["url"] => string(22) "/posts/13737636/delete"
  ["referrer"] => string(36) "https://domain.com/threads/774694/"
  ["_GET"] => array(1) {
    ["/posts/13737636/delete"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["reason"] => string(0) ""
    ["hard_delete"] => string(1) "0"
    ["_xfRedirect"] => string(36) "https://domain.com/threads/774694/"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(16) "/threads/774694/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Getting another error.

Server error log
  • ErrorException: Template error: Each breadcrumb provide a 'value' key
  • src/XF/Template/Templater.php:1494
  • Generated by: dvsDave
  • Nov 15, 2019 at 10:27 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Each breadcrumb...', '/home/nginx/dom...', 1494, Array)
#1 src/XF/Template/Templater.php(1494): trigger_error('Each breadcrumb...', 512)
#2 internal_data/code_cache/templates/l1/s19/public/snog_groups_group.php(31): XF\Template\Templater->breadcrumbs(Array)
#3 src/XF/Template/Templater.php(1320): XF\Template\Templater->{closure}(Object(vw\vw\XF\Template\Templater), Array)
#4 src/addons/vw/vw/XF/Template/Templater.php(789): XF\Template\Templater->renderTemplate('snog_groups_gro...', Array, true)
#5 src/XF/Template/Template.php(24): vw\vw\XF\Template\Templater->renderTemplate('public:snog_gro...', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('Snog:Groups\\Gro...', 'public:snog_gro...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#12 src/XF.php(391): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(47) "/group_discussions/the-falcon-crew.6/view?id=12"
["referrer"] => string(65) "https://www.controlbooth.com/group_discussions/the-falcon-crew.6/"
["_GET"] => array(2) {
["/group_discussions/the-falcon-crew_6/view"] => string(0) ""
["id"] => string(2) "12"
}
["_POST"] => array(0) {
}
}
 
Getting another error.

Server error log
  • ErrorException: Template error: Each breadcrumb provide a 'value' key
  • src/XF/Template/Templater.php:1494
  • Generated by: dvsDave
  • Nov 15, 2019 at 10:27 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Each breadcrumb...', '/home/nginx/dom...', 1494, Array)
#1 src/XF/Template/Templater.php(1494): trigger_error('Each breadcrumb...', 512)
#2 internal_data/code_cache/templates/l1/s19/public/snog_groups_group.php(31): XF\Template\Templater->breadcrumbs(Array)
#3 src/XF/Template/Templater.php(1320): XF\Template\Templater->{closure}(Object(vw\vw\XF\Template\Templater), Array)
#4 src/addons/vw/vw/XF/Template/Templater.php(789): XF\Template\Templater->renderTemplate('snog_groups_gro...', Array, true)
#5 src/XF/Template/Template.php(24): vw\vw\XF\Template\Templater->renderTemplate('public:snog_gro...', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('Snog:Groups\\Gro...', 'public:snog_gro...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#12 src/XF.php(391): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(47) "/group_discussions/the-falcon-crew.6/view?id=12"
["referrer"] => string(65) "https://www.controlbooth.com/group_discussions/the-falcon-crew.6/"
["_GET"] => array(2) {
["/group_discussions/the-falcon-crew_6/view"] => string(0) ""
["id"] => string(2) "12"
}
["_POST"] => array(0) {
}
}

That is not from this addon. It seems to be from an addon that is adding this: src/addons/vw/vw/XF/Template/Templater.php and
vw\vw\XF\Template\Templater->renderTemplate.
So you need to figure out which addon that is and disable it.
 
That is not from this addon. It seems to be from an addon that is adding this: src/addons/vw/vw/XF/Template/Templater.php and
vw\vw\XF\Template\Templater->renderTemplate.
So you need to figure out which addon that is and disable it.

Gotcha. The vw/vw tells me this is the vaultwiki addon. Missed that earlier, my apologies. I'll submit a bug report to the dev.
 
Gotcha. The vw/vw tells me this is the vaultwiki addon. Missed that earlier, my apologies. I'll submit a bug report to the dev.

I'm going to guess it either isn't passing parent data or some other thing is happening with that add-on that is killing the $group value.
 
Shouldn't my super moderators have access to moderate these the forums in these groups? Do I need to add each of them to every forum in the nodes section of the admin or is there a better way?
 
Forum moderators are not group moderators, so no there isn't.

Group moderators are assigned to the group either by the group owner or a site admin and must be a member of the group they are assigned to.
 
Forum moderators are not group moderators, so no there isn't.

Group moderators are assigned to the group either by the group owner or a site admin and must be a member of the group they are assigned to.
Ok thanks. How are they assigned? Through the node permissions?
 
That is not from this addon. It seems to be from an addon that is adding this: src/addons/vw/vw/XF/Template/Templater.php and
vw\vw\XF\Template\Templater->renderTemplate.
So you need to figure out which addon that is and disable it.
From the dev at vaultwiki. I gave him access to my site and he was able to trace the error. "It is a bug in Snog:Groups. It occurs even when VaultWiki is disabled. It occurs when viewing a discussion for a group, when that group was saved with Group Category: (None). In this case, when generating the breadcrumbs for the group, there is no category (because $group->category_id = 0) even though Snog\Groups\Entity\Group::getCategoryBreadcrumb expects that there will be a category, but instead it gets an empty category entity with a null name. When the null name is used as breadcrumb text, it generates this template error."
 
From the dev at vaultwiki. I gave him access to my site and he was able to trace the error. "It is a bug in Snog:Groups. It occurs even when VaultWiki is disabled. It occurs when viewing a discussion for a group, when that group was saved with Group Category: (None). In this case, when generating the breadcrumbs for the group, there is no category (because $group->category_id = 0) even though Snog\Groups\Entity\Group::getCategoryBreadcrumb expects that there will be a category, but instead it gets an empty category entity with a null name. When the null name is used as breadcrumb text, it generates this template error."

Okay, I will get this sorted in the next update. It was never taken into account that people would run groups without categories.

Thanks for having theVaultWiki developer look into it on your site.
 
Last edited:
Okay, I will get this sorted in the next update. I was never taken into account that people would run groups without categories.

Thanks for having theVaultWiki developer look into it on your site.

My groups were imported from the old 1.5 version. I didn't know there were categories! 🤯. I don't have enough groups to split them into categories yet, but maybe someday.
 
From the dev at vaultwiki. I gave him access to my site and he was able to trace the error. "It is a bug in Snog:Groups. It occurs even when VaultWiki is disabled. It occurs when viewing a discussion for a group, when that group was saved with Group Category: (None). In this case, when generating the breadcrumbs for the group, there is no category (because $group->category_id = 0) even though Snog\Groups\Entity\Group::getCategoryBreadcrumb expects that there will be a category, but instead it gets an empty category entity with a null name. When the null name is used as breadcrumb text, it generates this template error."

This is fixed in the latest version 2.1.18
 
Group forums seem to be working OK but when you click on a thread the whole of the thread is pushed to the left of the screen in a box too small to read anything and the sidebar breaks. This is on a vanilla default theme. Any ideas why thread are being broken like this? Cheers
 
I have not had any reports of that not experienced it before. Have You tried wit all other addons disabed?
 
Top Bottom