News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

"HTML tags are not allowed" when trying to update a profile

Started by Ramón Cutanda, September 08, 2022, 01:48:21 PM

Previous topic - Next topic

Ramón Cutanda

Hi:

When trying to update or add information into any of the fields in the profile of a user (myself included) I get the following error:

The following errors occurred when trying to save your profile
HTML tags are not allowed


I can replicate this error with fresh SMF 2.1.2 files (but using my previous database).

Any help will be greatly appreciated. Thank you.

Kind regards.

UPDATE: I have just registered a new test user and can change its fields without errors. I have tried to compare the data registered in the MySQL database of my user and the new user and I am completely unable to find anything weird. In any case, in my profile there is no HTML whatsoever.

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Doug Heffernan

Yes, it seems to be the same issue as far as I can tell. I am marking this as solved. @Ramón Cutanda please feel free to mark it not solved if it is not the same issue.

Ramón Cutanda

Hello again:

I have been so busy that I have not been able to actually try the proposed solution until today. I can confirm it works. Thank you!

https://github.com/SimpleMachines/SMF/pull/7473/files/d43828035c67c070ded9106326a2a20f3bf18f6c

Steve

DO NOT pm me for support!

a10

Am also encountering this error (here on the smf forum). Simple plain text, no html.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Diego Andrés

Ramon confirmed the fix worked and was included in 2.1.3.
Are you seeing the exact same issue after updating?

SMF Tricks - Free & Premium Responsive Themes for SMF.

a10

2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

lntit

Can confirm it. Just enter a word with an apostrophe in it and you'll get that issue even here. I've got several PM and stuff by our members because of that.

shawnb61

Issue confirmed:
https://github.com/SimpleMachines/SMF/issues/7660

It appears to be specific to:
 - Custom profile fields that have no regex or other edit
 - The single & double quote characters

I believe the previous fix dealt with other special non-ASCII characters.  But we still have a problem with quotes.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

a10

Just a note that am still encountering the 'HTML tags are not allowed'in 2.1.4 (here), = impossible to change signature.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Steve

DO NOT pm me for support!

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Steve

Are you trying to say you have a real life outside SMF?  :o  :P
DO NOT pm me for support!

Hippolyta

Just experienced this on my forum, and there is no HTML, no special characters in the profile that we are trying to update. It just won't.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: