Support » Plugin: Mailjet Email Newsletter Marketing » fatal error validate_email() already declared (WP multisite)

  • Resolved nicomollet

    (@nicomollet)


    Hello
    New version of Mailjet (v4.2.1) crashed my WordPress multisite, which already declared validate_email() in the core. (wp-includes/ms-deprecated.php line 170 in WP 4.7.5)

    Mailjet should rename the function and/or check with function_exists before declaring it.
    Or better, use the core function is_email().

    Thank you.
    Nico

    • This topic was modified 1 year, 7 months ago by  nicomollet.
Viewing 4 replies - 1 through 4 (of 4 total)
  • It seems there are other functions in the plugin declared without function_exists:

    my_show_extra_comment_fields
    subscribe_comment_author
    register_extra_fields

    Prefix them with “mailjet_” and check with function_exists to prevent fatal crashes! Thank you

    Plugin Author Mailjet

    (@mailjet)

    Hey nicomollet,

    Sorry for this bug. We are working on the fix right now and will release it ASAP.

    Best regards,
    Mailjet Plugins Team

    Plugin Author Mailjet

    (@mailjet)

    Hello again, we’ve just updated the plugin, so that the fatal errors should not occur anymore.

    Please let us know if you face further issues.

    Thanks!

    Everything is ok now, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘fatal error validate_email() already declared (WP multisite)’ is closed to new replies.