• Resolved CrazySerb

    (@crazyserb)


    You might wanna fix your plugin to avoid these schema mismatches:

    INSERT INTO wp_wfhits (…, jsRun, …)
    VALUES (…, '', …)

    MariaDB behavior in strict mode:

    • ” → numeric column
    • Value coerces to 0
    • Warning is still emitted
    • Insert succeeds

    So even when changing that column jsRun to TINYINT(1) DEFAULT 0, MariaDB will still log:

    WARNING 1366: Incorrect integer value: ''

    This is expected behavior in MariaDB 10.4+ so the ALTER of that column doesn’t fix this at all and the warnings still show up in mariadb query error log, and when you have dozen or two of these sites with Wordfence installed that query error log fills up in no time.

    It’s obviously a schema / insert value mismatch on your end, and it’s been for a while, so might wanna fix that in versions going forward…

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @crazyserb, thanks for the warning details and running additional tests!

    Most of the team are now back from the holiday break and have been able to test this more thoroughly today. We have added a case to resolve this warning in an upcoming release as a result.

    We’re not able to provide precise timescales for release dates here on the forums, but will document plugin changes in our changelog.

    Many thanks,
    Peter.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.