Title: Error Message: Non-numeric Value Encountered
Last modified: July 30, 2017

---

# Error Message: Non-numeric Value Encountered

 *  [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/error-message-non-numeric-value-encountered/)
 * I get the following error message:
 * `[30-Jul-2017 13:21:13 UTC] PHP Warning: A non-numeric value encountered in /
   home/…/public_html/…/wp-content/plugins/js-css-script-optimizer/js-css-script-
   optimizer.php on line 506`
 * What could cause this error message?

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

 *  Thread Starter [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-message-non-numeric-value-encountered/#post-9444818)
 * Any news?
 *  [Matthias Honert](https://wordpress.org/support/users/matthias-honert/)
 * (@matthias-honert)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-message-non-numeric-value-encountered/#post-9594559)
 * me too.
 * great Plugin. But on PHP 7.1 the same Error on my install.
    -  This reply was modified 8 years, 8 months ago by [Matthias Honert](https://wordpress.org/support/users/matthias-honert/).
 *  [Matthias Honert](https://wordpress.org/support/users/matthias-honert/)
 * (@matthias-honert)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-message-non-numeric-value-encountered/#post-9597588)
 * I am not a super pro on php and I haven’t reading the script js-css-script-optimizer.
   php about what the variables $script[‘ver’] and $script[‘src’] mean on line 506.
 * I checked this:
    [https://stackoverflow.com/questions/42044127/warning-a-non-numeric-value-encountered](https://stackoverflow.com/questions/42044127/warning-a-non-numeric-value-encountered)
 * After that reading I complemented the line 506 with an if-statement:
 *     ```
       if ( is_numeric($script['ver']) && is_numeric($script['src']) ) {
         $fileId += $script['ver'].$script['src'];
       }
       ```
   
 * The Error is now gone.

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

The topic ‘Error Message: Non-numeric Value Encountered’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/js-css-script-optimizer_cdb920.svg)
 * [JS & CSS Script Optimizer](https://wordpress.org/plugins/js-css-script-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/js-css-script-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/js-css-script-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/js-css-script-optimizer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matthias Honert](https://wordpress.org/support/users/matthias-honert/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/error-message-non-numeric-value-encountered/#post-9597588)
 * Status: not resolved