• Resolved jansudek

    (@jansudek)


    Hello, my page shown some error, can you fix it to not shown ??

    E_DEPRECATED Implicit conversion from float 19.891520023345947 to int loses precision in file /wp-content/plugins/mailpoet/lib/Cron/DaemonHttpRunner.php on line 113
    public function pauseExecution($pauseTime) {
        return sleep($pauseTime);
      }

    sleep accept only int .. float given return warning .. use usleep * 1000 or retype value (int) instead .. thanks

    Mailpoet v4.48.2
    PHP 8.1

Viewing 1 replies (of 1 total)
  • Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @jansudek ,

    Thank you for reaching out to us and bringing this matter to our attention. The error message you’re encountering is related to the use of PHP 8.1, which has updated the way certain types of data are handled, specifically regarding the precision of numbers when converting from float (floating-point numbers) to int (integers).

    I will inform our development team about this issue so that they can investigate and implement a fix in a future update.

    In the meantime, if this warning is not affecting the functionality of your website, you may consider suppressing deprecated warnings in your PHP configuration. This is only a temporary measure and should be reversed once a plugin update is provided.

    To suppress E_DEPRECATED warnings, add the following line to your php.ini file:

    error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED

    Again, please use this only as a temporary measure.

    Thank you for understanding

Viewing 1 replies (of 1 total)
  • The topic ‘E_DEPRECATED Implicit conversion from float 19.89 to int loses precision’ is closed to new replies.