WordPress Database Error
-
We’re on version 1.3 (Current is 1.3.1) of the Audit Log plugin but since I don’t see anything about this problem in the update log I’m going to go ahead and report it…
We’ve started having WordPress database errors show up in our error log starting Dec 13 at 09:27:59 and it’s been consistent since then.
The full error is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d ORDER BY created_on ASC LIMIT 1' at line 1 for query SELECT * FROM hpu_wsal_occurrences WHERE created_on < %d ORDER BY created_on ASC LIMIT 1 made by do_action_ref_array, call_user_func_array, WpSecurityAuditLog->CleanUp, call_user_func, WSAL_Loggers_Database->CleanUp, WSAL_DB_OccurrenceQuery->Delete
I’ve just looked at the Audit Log and the oldest entry is Nov 13 at
09:24. We appear to have 10,0050 records currently sitting in the log.We were using the default settings saying to clear cached items older then a month and a max of 10,000 records.
I’ve just doubled the cache settings until this bug can be fixed.
Let me know if there is anything else I can provide to help you debug this.
-Lucas
- The topic ‘WordPress Database Error’ is closed to new replies.