Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dmailer::getMilliseconds : Return value must be of type int, float returned #476

Open
webdev2027 opened this issue Jan 18, 2024 · 0 comments

Comments

@webdev2027
Copy link

Hello. I've made an upgrade from v10 to v11 and change also PHP to 8.1 and use direct_mail 9.5.2

Choose and Test-Newsletter is working.

But if I want to send the Newsletter via Scheduler, I get this error: DirectMailTeam\DirectMail\Dmailer::getMilliseconds(): Return value must be of type int, float returned

The file is located Ext:direct_mail/Classes/Dmailer.php : L1473 : change return round(microtime(true)*1000); to return an integer like 180000. And now the transfer via scheduler works. Nice workaround, but does anyone know what's wrong here? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant