• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Social Groups Server Error

mauzao9

New Member
Joined
Dec 7, 2015
Messages
12
Heya,

I've seen from the FAQ a fix for Social Groups addon, and it seems there is actually another conflict with this addon on the newsfeed of the groups:

Code:
Error Info
ErrorException: Undefined index: xfa_cui_icon_ugp - library/XFA/CustomUsernameIcons/Template/Helper/Core.php:53
Generated By: max_0_man, Today at 11:32 AM
Stack Trace
#0 /var/www/html/library/XFA/CustomUsernameIcons/Template/Helper/Core.php(53): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/html/l...', 53, Array)
#1 /var/www/html/library/XenForo/Template/Helper/Core.php(853): XFA_CustomUsernameIcons_Template_Helper_Core::helperUserNameHtml(Array, '<a href="member...', false, Array)
#2 /var/www/html/library/XenForo/Template/Helper/Core.php(1700): XenForo_Template_Helper_Core::callHelper('usernamehtml', Array)
#3 /var/www/html/library/XenForo/Template/Helper/Core.php(853): XenForo_Template_Helper_Core::helperUserName(Array)
#4 /var/www/html/library/Nobita/Teams/TeamNewsFeedHandler/Member.php(93): XenForo_Template_Helper_Core::callHelper('username', Array)
#5 /var/www/html/library/Nobita/Teams/Model/NewsFeed.php(278): Nobita_Teams_TeamNewsFeedHandler_Member->getNewsFeedActivity(Array)
#6 /var/www/html/library/Nobita/Teams/Model/NewsFeed.php(243): Nobita_Teams_Model_NewsFeed->_prepareNewsFeedItem(Array, Array)
#7 /var/www/html/library/Nobita/Teams/Model/NewsFeed.php(157): Nobita_Teams_Model_NewsFeed->_prepareNewsFeedItems(Array, Array)
#8 /var/www/html/library/Nobita/Teams/ControllerPublic/Team.php(1362): Nobita_Teams_Model_NewsFeed->fillOutNewsFeedItems(Array)
#9 /var/www/html/library/XenForo/FrontController.php(351): Nobita_Teams_ControllerPublic_Team->actionView()
#10 /var/www/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /var/www/html/index.php(13): XenForo_FrontController->run()
#12 {main}
On support if Nobita for the groups addon, he told to ask to developer that they must check if the key exists in array. Otherwise should return default process.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,858
Sure thing, but that would mean the default cui icon wouldn't be shown.

In any case will fix this in next release.
 

mauzao9

New Member
Joined
Dec 7, 2015
Messages
12
Thanks, would be nice if it shows, for me as long it doesn't spam the logs with errors it's fine. ;)
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,858
To show it would need modifications of the add-on, to provide a way to get the data.

Clément
 

SaltySparks

New Member
Joined
May 3, 2017
Messages
17
+1 on this. I recently installed this add on, edited the Post.php as described in the FAQ's to solve issues with the Teams/Groups plug in but I still get spammed errors similar to this as well.

Code:
ErrorException: Undefined index: xfa_cui_icon_ugp - library/XFA/CustomUsernameIcons/Template/Helper/Core.php:111
Generated By: Enigma, 46 minutes ago

Request State
array(3) {
  ["url"] => string(86) "https://x.com/forums/groups/ajax/newsfeed?team_id=118&wtype=public"
  ["_GET"] => array(3) {
   ["/forums/groups/ajax/newsfeed"] => string(0) ""
   ["team_id"] => string(3) "118"
   ["wtype"] => string(6) "public"
  }
  ["_POST"] => array(0) {
Code:
ErrorException: Undefined index: xfa_cui_icon_ugp - library/XFA/CustomUsernameIcons/Template/Helper/Core.php:53
Generated By: Enigma, 48 minutes ago
Request State
array(3) {
  ["url"] => string(86) "https://x.com/forums/groups/ajax/newsfeed?team_id=118&wtype=public"
  ["_GET"] => array(3) {
   ["/forums/groups/ajax/newsfeed"] => string(0) ""
   ["team_id"] => string(3) "118"
   ["wtype"] => string(6) "public"
  }
  ["_POST"] => array(0) {
  }
}
Code:
ErrorException: Undefined index: - library/XFA/CustomUsernameIcons/Template/Helper/Core.php:31
Generated By: Enigma, 49 minutes ago

Request State
array(3) {
  ["url"] => string(86) "https://x.com/forums/groups/ajax/newsfeed?team_id=118&wtype=public"
  ["_GET"] => array(3) {
   ["/forums/groups/ajax/newsfeed"] => string(0) ""
   ["team_id"] => string(3) "118"
   ["wtype"] => string(6) "public"
  }
  ["_POST"] => array(0) {
  }
}
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,858
Then I think I'll add the conditionals to not do anything i f data not there.

But it means you won't get the custom username icons in there.
 

mauzao9

New Member
Joined
Dec 7, 2015
Messages
12
Right now, Icons and Colors appear partially:
upload_2017-5-6_12-44-41.png

You see the username on the post headers has the ICON + Custom Color.

Then you see on the likes/comments, they do and don't at the same time like I mentioned on the other place you see the user group default icon and it ignores the icon the user has customized.

The custom username color also work on Info, Member List and group forum. It's just the feed pretty much.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,858
Yeah but if the data is not retrieved by the add-on in question then for sure it won't work.

As I said I'll add a conditional to avoid the error from popping out.