Can anyone find the bug? This function worked for years, but then I did something very far away (i.e. I didn't change this function at all) which broke it.
Have you updated the server's PHP version, and the error occurs when using the
mysql_ function? Starting with PHP 7, the function should be
mysqli_, which can cause errors. Is that it?
I am no coder, I have no experience as a system administrator, but I guess this is exactly the kind of stuff that I think can break a lot of things.
Wondering if the change is so substantial, why it broken only this feature: I guess that kind of functions to be used broadly in the forum software.
It may have affected only that feature, due to the way the script uses that function. The combination of several logics applied, using this resource, may have generated this error. Also because the script in question seems to have some sequence redundancy. Everything combined may have generated the error.
I'm not a great expert either, but I have some notions. So I could be wrong and have nothing to do with it.