News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Memberlist bug

Started by Random Username, January 24, 2023, 12:55:42 AM

Previous topic - Next topic

Random Username

Hi, I've reproduced this on two servers plus my local test server with latest version of SMF. If you create a few custom profile fields and set them to appear on the memberlist and then deactivate a field or more depending apparently on the length of the data in the field(s), the data will no longer properly align with the correct heading. It will align with a different heading. Also, if you then view the memberlist on mobile, you get the following errors in the log:
 
https://mysite.com/index.php?action=mlist
/.../mysite.com/public_html/Themes/default/Memberlist.template.php (Line 51)

Type of error: Undefined
Error message Select
2: Undefined array key "selected"
3

https://mysite.com/index.php?action=mlist
.../mysite.com/public_html/Sources/Memberlist.php (Line 280)

Type of error: Undefined
Error message Select
2: Undefined array key "label"

If you add the column(s)/profile fields back to the memberlist, things line up correctly and the errors disappear.

Advertisement: