grish art wrote: ↑
Thu Oct 10, 2019 12:58 pm
Hi I am having a problem with new users having the following error messages:
It only effects new users.
This error is generated completely in response to database information only. Meaning it's not a direct test of "does the style exist under the /styles/ folder" or similar. It's just a test of whether the user-selected style ID exists in the phpbb_styles table in the database; and potentially whether the board-defined default style ID exists in the the phpbb_styles table in the database.
Do you have more than one style installed and showing as active according to the phpBB ACP Customize tab? Or do you only have prosilver.
What are the three "Board Style" settings in ACP General, Board Settings
currently set to? (Default Style, Guest Style and Override User Style.)
The behavior is as though this "new user" has a style ID selected which is no longer a valid style ID. But, the behavior also suggests that the board's currently configured Default Style is also
not a valid style ID.
("Default Style" is what phpBB would have attempted to fall back to upon realizing that the user's selected style was no longer in the database. The user's previously-selected style ID potentially being invalid now is "expected" by phpBB, and it intends to default to the ACP "Default Style" in that case.)
You might need to go into ACP General, Board Settings
and submit your desired settings for the "Board Style" section again, even if they already look correct. Because if there is actually an invalid style ID saved there currently, I don't think the ACP Board Style section will show you this condition exists. phpBB will simply display the currently-active styles in the drop-down list, and won't reveal that the style ID it wanted to select out of that list wasn't actually present.
So you are re-saving your ACP Board Settings selections "just in case" the style ID saved there is no longer a valid style ID. Which is what the NO_STYLE_DATA error is suggesting.
Edit: Your question made me realize I have this issue on my phpBB 3.2.8 board, too.
The phpbb_config table had default_style set to 1 for some reason, which would have been the proSilver style ID. Except that prosilver isn't style ID 1 on my board. Indeed, I just had to visit the ACP Board Settings, ensure the "Default style:" selection was as intended, and hit "Submit" even if I didn't actually change anything. The phpbb_config table now has style ID 178, which is the correct style ID for my board.
Note that unless you have "Override user style: Yes"
set in the board settings, you will also need to go fix the actual user's selected style from the user's "Preferences" section. You'll have to do this as administrator from the ACP Users and Groups tab, since the user cannot get into their User Control Panel to change the selection themselves. Same as ACP Board Settings, even if the selected style does not "look wrong" in their "Preferences", but you need to "Submit" that page anyway to ensure a valid style selection is written back to the database.
I'll have to go look through my backups to see when exactly this actually happened.