Closed tangruize closed 4 years ago
I guess this is an issue with your charset encoding for qa_eventlog
?
Oh, I think it is my fault. Actually the database was migrated from another site. And everything works well before. I use mysqldump
cmd to dump the database. Maybe something wrong when I restore the database. I have tried to change the database encoding, mysql settings and apache2 settings, but I didn't find a good solution. Thank you very much!
Recently I installed edit-history plug-in, which requires event-logger enabled. However, when I post an answer containing utf8 characters, it shows a message "A Question2Answer database query failed when generating this page." The answer is posted correctly but edit-history doesn't work. And the message is really confusing.
I checked
/var/log/apache2/error.log
and pick a part of log here:After my attempt, I changed line 173 of
qa-plugin/event-logger/qa-event-logger.php
fromto
It seems that the problem disappered. But I don't know if this modification is right.