Group error loading?

Helen Trott Posted in Technical Support 1 month ago

If using OSSN:
OSSN version: 8.9
Website URL (optional): www.bdasocial.com

If facing any bug:
PHP Version : 8.4
Error Log if any:
Browser: 8.4
OS (Window/Linux/Android/iOS/Mac):
Each time I login as another user. The groups are not loading properly. Just wondering why the groups are loading like this and with an error message at the bottom of the screen. enter image description here enter image description here

Replies
bm Helen Trott Replied 1 month ago

I have enabled the component and everything seems to be working and loading fine now for all of my site users. Thank you Michael and Arsalan.

bm Helen Trott Replied 1 month ago

Good day Arsalan,

Nice of you to chime in, but I have DISABLED the Group Pinpost component. That's probably why everything is working now. But thanks for whatever you have done not sure if it is okay to enable now. And I didn't know I was so suppose to update codes manually myself. Those instructions were never given to me.

Is there any other components I am suppose to update? I thought the OSSN 8.9 was the updated version.

Indonesian Arsalan Shah Replied 1 month ago

Looks like you are still using 2023 old component and didn't update as my code shows

$group = ossn_get_group_by_guid($params['post']->owner_guid);
if(isset($group) && $group->owner_guid == $user->guid || $user->canModerate() || $group->isModerator($user->guid)) {

Wheres your code shows

$group = ossn_get_object($params['post']->owner_guid);
if(isset($group) && $group->owner_guid == $user->guid || $user->canModerate() || $group->isModerator($user->guid)) {

I have changed the component on your installation,

Indonesian Arsalan Shah Replied 1 month ago

After login i visited https://www.bdasocial.com/group/2522 and no error

$group->isModerator($user->guid) is called on $group which is group object so can you please tell me which page you are getting error with what user?

cglover
pass: 123456789
https://www.bdasocial.com/group/2522

No error

Indonesian Arsalan Shah Replied 1 month ago

Helen a little bit of patience is required while i look your problem. I can give you refund and in return you can give me 50$ 🤭🤭🤭🤭🤭🤭🤭🤭🤭🤭🤭

bm Helen Trott Replied 1 month ago

I actually bought it from Arsalan for $24!! I want a refund Arsalan no im just kidding, but you owe me $24.
PayPal Transaction ID
0MG10217C27798023 Transaction date
7 March 2025
Invoice number 0004

Payment to

Syed Arsalan Hussain Shah
[email protected]
+62

1.0 X Group Pin Posts $24.00 USD
$24.00 USD

bm Helen Trott Replied 1 month ago

Hi Michael, Thank you so much for looking into this for me.
Who developed that component? Version 1.0
Author Core Team
Author URL https://www.openteknik.com/
License OPENTEKNIK LLC, COMMERCIAL LICENSE v1.0
Requirements
Name Requirement Fulfilled
OSSN version >= 5.2

That group pinpost component is on here OSSN.

German Michael Zülsdorff Replied 1 month ago

Thanks Helen.
As the log shows your issue seems to be triggered by the GroupPinPost component.
Disabling it in your admin panel should bring things back to normal.

Who developed that component?

Exception: Call to undefined method OssnObject:isModerator in /home/bdasocia/public_html/classes/OssnBase.php:74
Stack trace:
#0 /home/bdasocia/public_html/components/GroupPinPost/ossn_com.php(24): OssnBase->__call('isModerator', Array)
#1 /home/bdasocia/public_html/libraries/ossn.lib.system.php(222): group_pin_post_menu('wall', 'post:menu', NULL, Array)
bm Helen Trott Replied 1 month ago

Michael you can login with
cglover
pass: 123456789

bm Helen Trott Replied 1 month ago

The file is pretty large so I just copied a portion of the error-log. You can view it here. https://www.bdasocial.com/p/3147/error-logs