Support » Plugin: NewStatPress » Undefined Offset

  • Resolved KTS915


    Testing PHP7 on localhost, I am getting an “undefined offset” warning for line 116 of newstatpress/includes/nsp_functions-extra.php.

    I think the solution is to change that line from
    list($null,$q)=array_pad(explode("?",$url,2), 2, null);

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cHab


    Hi KTS915,
    Thank you to report. The plugin was not tested with PHP7. We will check if your correction works well with old php version and integrate it in next version.
    See you,

    I see it’s now in the latest version — thanks!

    There is another change that you might like to make in the next version because get_currentuserinfo() was deprecated in WP 4.5.

    There are three instances of it in /newstatpress/newstatpress.php. These need to be replaced with wp_get_current_user().

    Thanks again!

    Plugin Author cHab



    No problem 🙂
    Thank you to report here, it will be change in the next version so.
    Stay tuned.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined Offset’ is closed to new replies.