You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have edited many words with tags before first seeing this error. I don't know what can be making it happen sometimes and sometimes not. Most of the time it appears to work as expected.
Fatal Error in SQL Query: INSERT INTO tags (TgText) VALUES('some_tag')
Error Code & Message: [1062] Duplicate entry 'some_tag' for key 'TgText'
Backtrace:
#0 C:\xampp\htdocs\lwt\inc\database_connect.php(57): do_mysqli_query('INSERT INTO tag...')
#1 C:\xampp\htdocs\lwt\inc\session_utility.php(278): runsql('INSERT INTO tag...', '')
#2 C:\xampp\htdocs\lwt\edit_words.php(666): saveWordTags(7034)
This leads to some_tag being removed as a tag for the word.
The text was updated successfully, but these errors were encountered:
I'm not sure of the cause, maybe your server takes too much time to store session data, so it's not detected, but that is only a theory. Maybe we can go for a small experiment. Can you replace line 273 of inc/session_utility.php:
I have edited many words with tags before first seeing this error. I don't know what can be making it happen sometimes and sometimes not. Most of the time it appears to work as expected.
This leads to some_tag being removed as a tag for the word.
The text was updated successfully, but these errors were encountered: