• Resolved Paco42

    (@pacart42)


    Hi, I noticed that WP give me an error while on the dashboard.

    PHP Notice: A non well formed numeric value encountered in [..]/wp-content/plugins/my-simple-space/my-simple-space.php on line 129

    My test result on this variable is “256M”.
    Could you add a check of the result and a retrieval of the numerical value only if necessary?

    Thanks a lot.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author idowebwork

    (@mannweb)

    apologies for not seeing this sooner. I am checking on this for you.

    Plugin Author idowebwork

    (@mannweb)

    Thanks for catching this. Line 127 now casts both $memory_usage and $memory_limit to int, before rounding. Line 127 now looks like this:

    $memory_percent = round ( (int)$memory_usage / (int)$memory_limit * 100, 0 );

    Pushing up an update shortly.

    Plugin Author idowebwork

    (@mannweb)

    Version 1.2.1 fixes this issue and has been pushed up to the repository.

    Thread Starter Paco42

    (@pacart42)

    Thanks ??

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