• Resolved Eric Sprangers

    (@esprange)


    Since upgrade to PHP 7.4 I do see the following warning in the error log:
    PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in …wp-mail-smtp/src/Providers/Mailgun/Mailer.php on line 270

    That line contains :
    $boundary = base_convert( uniqid( ‘boundary’, true ), 10, 36 );
    and PHP will warn because of the text ‘boundary’ as base_convert assumes a numeric argument.

    if changed to
    $boundary = base_convert( uniqid( ”, true ), 10, 36 );
    the warning will no longer occur.

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Eric,

    Thank you very much for reporting this issue.

    I’ve tested it and $boundary = base_convert( uniqid( ”, true ), 10, 36 ); also causes the PHP notice to show up. So we updated the code and used what the PHPMailr class uses for generating boundaries.

    This will be fixed in the next plugin update.

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated use of baseconverion’ is closed to new replies.