Title: PHP 7.1 Warning Notice
Last modified: January 25, 2017

---

# PHP 7.1 Warning Notice

 *  Resolved [Magina](https://wordpress.org/support/users/alexis-mag/)
 * (@alexis-mag)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-1-warning-notice/)
 * Hello,
 * On my server (PHP 7.1), a PHP Warning is logged from class-wp-smush :
    `PHP Warning:
   A non-numeric value encountered in /home/web/******/httpdocs/wp-content/plugins/
   wp-smushit/lib/class-wp-smush.php on line 1968,(1969,1970)`
 * In order to fix it, can you edit the line 1966 :
    Before : `$stats['stats']['
   size_before'] = $stats['stats']['size_after'] = $stats['stats']['time'] = '';`
   After : `$stats['stats']['size_before'] = $stats['stats']['size_after'] = $stats['
   stats']['time'] = 0;`
 * (Change the value from ” (string) to 0 (numeric))
 * Can you test this change on older versions and update code for next plugin-updates?
    -  This topic was modified 9 years, 3 months ago by [Magina](https://wordpress.org/support/users/alexis-mag/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-1-warning-notice/#post-8697582)
 * Hello alexis-mag,
 * Thank you for reporting this – I checked on my site with 7.1 PHP and I was able
   to replicate this warnings.
    I’m sending message for developer so he will check
   this.
 * kind regards,
    Kasia
 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-1-warning-notice/#post-8720029)
 * Hi [@alexis-mag](https://wordpress.org/support/users/alexis-mag/),
 * I’ve added the suggested changes. Thanks for the fix.
 * Cheers, Umesh

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 7.1 Warning Notice’ is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 3 participants
 * Last reply from: [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-1-warning-notice/#post-8720029)
 * Status: resolved