Replies: 6 comments 10 replies
-
@HatchlingByHeart delete your answer too if you can. Sorry for messing with your issue (it is better to left it untouched and discuss here) |
Beta Was this translation helpful? Give feedback.
-
It is changed on 0ct 27.. 552af19 PHP 8.2 Deprecated error removal ? I can confirm the problem, today's git.... |
Beta Was this translation helpful? Give feedback.
-
For anyone curious about my process in setting up when I get these issues, here's the video I posted in the issue. 2023-12-21.14-44-40.mp4 |
Beta Was this translation helpful? Give feedback.
-
Another user appears to have found the problem.
|
Beta Was this translation helpful? Give feedback.
-
@Jimmi08 @Alex-e107nl Adding a dummy userclass that is otherwise not used for anything (ID# 1 in my case), and making the following changes: |
Beta Was this translation helpful? Give feedback.
-
I came across this issue a while ago. I added a bit of code to usersettings.php around line 540 to ensure that userclass was never empty by adding a useless value;
this seems to work for me. |
Beta Was this translation helpful? Give feedback.
-
Moving my posts here from to not mess with issue
#5159
Bug description
Once a user has assigned themselves any custom userclass on the settings page, they cannot unassign it. In the database, I have noticed in the "e107_user" table that the "user_class" column is completely overwritten with the id of the userclass instead of it being appended to it. This happens on my current production install and a fresh test install.
I can confirm this in 7.4 too. And latest github version.
If you want a quick fix, I did it because I am using it on the live site too. But I have no idea why it helped and what is a problem, ok? Tested on e107sk.com
On left side is fix, on right side is actual version of handlers/user_class.php
I am sorry, it works for me - PHP 7.4 - locally with 8.1. I am not able to help more,
Beta Was this translation helpful? Give feedback.
All reactions