Home Forums Newsletter Plugin Support Replace substr with mb_substr in PINT theme

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44611
    Anonymous
    Inactive

    I encountered an error [“Database error see the log files (log files path can be found on Newsletter diagnostic panel)”] when creating a new newsletter using PINT theme, with following being written into the log:
    13-09-2017 08:09:48 – FATAL – m: 21,1 MB, u: 1 –
    13-09-2017 08:09:48 – FATAL – m: 21,1 MB, u: 1 – SHOW FULL COLUMNS FROM wp_newsletter_emails

    After some debugging, I found out the problem. My article titles contain diacritical characters and because the theme is using substr to trim the titles, some invalid characters appear occasionally and $wpdb->insert fails consequently. The solution is to use mb_substr (multi-byte safe substr) in theme.php instead of substr.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
×