Malformed SQL statements
-
When updating the plugin to 3.3.7, something like the following statement is called:
INSERT INTO wp_cky_cookie_categories (name, slug, description, prior_consent, visibility, priority, sell_personal_data, meta, date_created, date_modified) VALUES ('{"en":"Necessary"}', 'necessary', '{"en":"Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any ... …lly identifiable data.<\/p>"}', 1, 1, 0, 1, '[]', 2025, '2025-11-27 18:39:47')
As you see, the value for “date_created” is 2025 instead of the proper date string.My guess is that this happens because \lite\admin\modules\cookies\includes\class-category-controller.php has two formatting arrays with mismatched formats. One is at Line 185, the other is at Line 226. Starting from ‘meta’ and %s, the first one has %d, %s, %s, %s for the remaining two date value parameters. The second one has %d, %s, %s for the remaining
date_modified. The solution is to remove the extra %d+%s from their end.
You must be logged in to reply to this topic.