Bug Adding tags to thread silently fails if the xf_tag_content table has exhausted it's ids

There is a bug in this version
X

Xon

Guest
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...