TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Error when editing element

Open MosfetN opened this issue 1 year ago • 10 comments

Bonjour à tous,

I have an issue when editing an element : Error: Malformed UTF-8 data Warning: Undefined array key "mbstring" in /var/www/html/TeamPass-3.0.8/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php on line 5582 (line is " if (self::$SUPPORT['mbstring'] === false) ")

Is that related to the utf8mb4_general_ci collation of the db ? utf8mb3_general_ci is deprecated in MariaDB

Thanks for your answers

MosfetN avatar Jun 01 '23 12:06 MosfetN

hello, i am have this problem too.

vetaly-sysop avatar Jun 03 '23 19:06 vetaly-sysop

I have the same thing !

Knoppix1 avatar Jun 03 '23 19:06 Knoppix1

same

Nachtlichtermeer avatar Jun 05 '23 08:06 Nachtlichtermeer

when i comment out the if-part to analyze it, problem persists and nothing happens. after editing and click 'submit' i can see 2 POST-requests in access-log of apache but no update-query in mysql-log with 'general_log' enabled

i think the error has nothing todo with the message about mbstring

Nachtlichtermeer avatar Jun 05 '23 08:06 Nachtlichtermeer

mbstring-error no longer shown in version 3.0.9 commit c03c9b597899394d1df52b1b05e830065d2f8c76 but problem persists

Nachtlichtermeer avatar Jun 16 '23 12:06 Nachtlichtermeer

still no luck with commit 6f22a379a9bc004e0285797a1043a4c08fea6006

Nachtlichtermeer avatar Jul 19 '23 14:07 Nachtlichtermeer

problem makes teampass unusable and still persists for more than 2 month please fix it

Nachtlichtermeer avatar Aug 10 '23 11:08 Nachtlichtermeer

I beleive that it is not related to a code issue but more to something with the database. Could there be a inconsistency with collation type or whatever? We need to get some error logs somewhere as it is only happening for some users.

nilsteampassnet avatar Aug 10 '23 12:08 nilsteampassnet

I beleive that it is not related to a code issue but more to something with the database. Could there be a inconsistency with collation type or whatever? We need to get some error logs somewhere as it is only happening for some users.

Same errors after upgrading to 3.9.0 There are no such errors in 3.8.0 I think they are related to non-english characters in user properties. I have LDAP users with russian names.

ghost9777 avatar Aug 23 '23 11:08 ghost9777

Same error on a 3.0.6 clean instalation with just local users to test:

If a local user select Spanish language, that user can´t do many actions like logout, see or edit his data, change views, ... It´s impossible to recover user after this.

The only error message showed is "PHP Warning: Undefined array key "mbstring" in /opt/httpd-2.4.58/htdocs/teampass306/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php on line 5582"

If user has English language this problem does not exist for him.

What is more, for one affected user by this problem, if I change his user_language directly on database from spanish to english, the user is functional again.

mreyesfernandez avatar Mar 27 '24 07:03 mreyesfernandez