• Resolved Henrik Gregersen

    (@henrikbonestdk)


    I get this in my logs

    [22-Apr-2017 13:47:51 UTC] PHP Notice: A non well formed numeric value encountered in /home/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php on line 73

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author apasionados

    (@apasionados)

    Hi Henrik,

    Thanks for the info. We are at the WordCamp in Madrid and will check this on Monday.

    This PHP notice seems strange because the numeric value is 1024. Nevertheless we will check on Monday.

    Best regards from Spain.

    Plugin Author apasionados

    (@apasionados)

    Hi Henrik,

    It seems to be related with Hexadecimal strings are no longer considered numeric. I think we should be able to fix this.

    Best regards from Spain.

    Plugin Author apasionados

    (@apasionados)

    Hi Henrik,

    On our test servers we don’t get this PHP Notice: “PHP Notice: A non well formed numeric value encountered”, but we think that we have found a workaround, but we can’t test it as we don’t get the notice. We have tested that the solution is correct (and doesn’t throw another error), but we don’t know if it solves your issue.

    Could you try adding: $return = (int)$return; // Solved: PHP 7.1 Notice: A non well formed numeric value encountered after line 63 and see if the E_NOTICE disappears?

    Thanks for your help.

    Thread Starter Henrik Gregersen

    (@henrikbonestdk)

    Hi

    It does solve the issue to typecast to an int.

    Guess we have to be more type strict in the future.

    Plugin Author apasionados

    (@apasionados)

    Hi Henrik,

    Did you actually test if it solves the NOTICE in PHP 7.1 so that we can upload the new version?

    Best regards from Spain.

    Thread Starter Henrik Gregersen

    (@henrikbonestdk)

    Yes I did, please upload the new version ??

    Plugin Author apasionados

    (@apasionados)

    Ok. We will update it tomorrow. Better on Monday when everybody is in the office.

    Best regards from Spain.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Notice on PHP 7.1.3’ is closed to new replies.