• Resolved Mahdi Akrami

    (@akramipro)


    Hi,

    i use php 8.2

    i got these warnings in my php log:

    [20-Oct-2024 00:55:05 UTC] PHP Deprecated:  Implicit conversion from float 23.5 to int loses precision in /home/xxx/public_html/wp-content/plugins/wordfence/models/scanner/wfScanner.php on line 1272
    [20-Oct-2024 00:55:08 UTC] PHP Deprecated: Implicit conversion from float -0.5 to int loses precision in /home/xxx/public_html/wp-content/plugins/wordfence/models/scanner/wfScanner.php on line 484
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @akramipro, thanks for noting these messages.

    I noticed that you contacted us before about seeing these: https://www.ads-software.com/support/topic/php-warning-480/

    It had been noted at that time to work on them for an upcoming plugin release and I hadn’t seen the issue raised since. Can I just check if you’re using the latest versions of WordPress and Wordfence currently on the site so I have the relevant information to get the latest information from the team?

    Many thanks,
    Peter.

    Thread Starter Mahdi Akrami

    (@akramipro)

    wp ver: 6.6.2

    wf ver: 7.11.7

    php ver: 8.2.20

    i can give you access to site if you want

    Plugin Support wfpeter

    (@wfpeter)

    Hi again @akramipro,

    What time zone is the site configured to use? This doesn’t look like a suppressed message, so knowing that information will assist us in discovering a fix to prevent the deprecation message.

    Many thanks,
    Peter.

    Thread Starter Mahdi Akrami

    (@akramipro)

    Asia\Tehran

    can you please send me your email so i can send you exported diagnostics file

    Plugin Support wfpeter

    (@wfpeter)

    Hi @akramipro, thanks for providing that.

    If you would like to send a diagnostic, you can do this from?Wordfence > Tools > Diagnostics?to us at?wftest @ wordfence . com. Click on?“Send Report by Email”. Please add your forum username where indicated and?respond here after you have sent it.

    NOTE:?It should look as follows – Screenshot of?Tools > Diagnostic > Send by Email

    Thanks again,
    Peter.

    Thread Starter Mahdi Akrami

    (@akramipro)

    sent, thanks for your support.

    Plugin Support wfpeter

    (@wfpeter)

    Thank-you @akramipro.

    We have identified that the 3.5h timezone difference from GMT to Asia\Tehran is the cause of the precision deprecation notice.

    This will not pose visible problems to your site visitors in the mean time, but we’ve added a case to fix it in an upcoming release. Our?changelog?is the best place to keep an eye on changes in new plugin versions as we’re unable to update customers on development progress here on the forums.

    Many thanks for your assistance,
    Peter.

    Thread Starter Mahdi Akrami

    (@akramipro)

    I’m very happy that you find the problem.

    Thank you very much

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.