RSS Feed/News Adding tags to thread silently fails if the xf_tag_content table has exhausted it's ids

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
20,208
Points
823

Reputation:

This was exasperated by a custom addon miss-behaving (constantly adding & removing tags), and a mariadb 10.6.x galera cluster which increments ids by 3 every insert,

I'm not sure if this is a php bug for why it didn't hit 2^32 or what, but addTagIdsToContent was just silently failing when the table had the following autoincrement id of 4280404161.

\XF::db()->insert() was returning a falsy value after the insert failed, and the mysql error/warning was swallowed somewhere...

Read more

Continue reading...
 
Status
Not open for further replies.
Top