Title: php warnings (php 7.1.4)
Last modified: May 7, 2017

---

# php warnings (php 7.1.4)

 *  Resolved [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/)
 * I’m getting the following warnings:
 * > [Sat May 06 21:02:16.789521 2017] [php7:warn] [pid 551] [client 66.249.83.5:
   > 65492] PHP Warning: A non-numeric value encountered in /var/www/html/ourfamilybios.
   > com/public_html/wp-content/plugins/slider-image/slider.php on line 2251
   >  [Sat
   > May 06 21:02:16.821066 2017] [php7:warn] [pid 551] [client 66.249.83.5:65492]
   > PHP Warning: A non-numeric value encountered in /var/www/html/ourfamilybios.
   > com/public_html/wp-content/plugins/slider-image/slider.php on line 933 [Sat
   > May 06 21:02:16.821107 2017] [php7:warn] [pid 551] [client 66.249.83.5:65492]
   > PHP Warning: A non-numeric value encountered in /var/www/html/ourfamilybios.
   > com/public_html/wp-content/plugins/slider-image/slider.php on line 934 [Sat
   > May 06 21:02:16.821125 2017] [php7:warn] [pid 551] [client 66.249.83.5:65492]
   > PHP Warning: A non-numeric value encountered in /var/www/html/ourfamilybios.
   > com/public_html/wp-content/plugins/slider-image/slider.php on line 981 [Sat
   > May 06 21:02:16.821138 2017] [php7:warn] [pid 551] [client 66.249.83.5:65492]
   > PHP Warning: A non-numeric value encountered in /var/www/html/ourfamilybios.
   > com/public_html/wp-content/plugins/slider-image/slider.php on line 982

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

 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9115915)
 * Dear joneiseman,
 * Thank you for contacting us.
 * Please, be kindly informed that we have checked the warning messages you receive
   with your developers and the issue comes from the database (the values are now
   set incorrectly).
 * In the case, if you contact us via email info [at] huge-it.com, our developers
   would be happy to check everything and assist you in solving the issue.
 * Best regards,
 *  Thread Starter [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9119506)
 * I did some debugging on this and I found it’s not a problem with my database.
   The problem is in the function that defines the short code:
 *     ```
       function huge_it_slider_images_list_shotrcode($atts)
       {
           extract(shortcode_atts(array(
               'id' => 'no huge_it slider',
   
           ), $atts));
               add_style_to_header($atts['id']);
               add_action('wp_footer', 'add_style_to_header');
       ```
   
 * In the first call to add_style_to_header it is passing in a valid slider id. 
   But then it registers an action on the wp_footer hook. When this action is triggered
   it calls add_style_to_header with no argument to the function so $id in that 
   function is not set so the $slider[0] will not be set so in the following code
   $sliderheight will be set to an empty string instead of a number:
 *     ```
           if(isset($slider[0]->sl_height)){
               $sliderheight=$slider[0]->sl_height;
           }else{
               $sliderheight='';
           }
       ```
   
 * In php 7.1 using an empty string as a number will give a warning message.
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9121113)
 * Dear joneiseman,
 * Thank you for the additional information,
 * Please, be kindly informed that we have checked the code you have provided with
   our developers.
    As we could understand from the code you are using the PRO version
   of the plugin. Note that normally the Lite version of the plugin is discussed
   in this forum. Our developers have suggested changing the version of the plugin
   to the latest one which will solve the current issue. In this case, you can contact
   us via email info [at] huge-it.com or via social accounts. FYI, if you have created
   an account on our website, you can log in and download it from there as well.
 * Please, keep us updated about the results.
    Regards,
 *  Thread Starter [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9121699)
 * Hi,
 * You’re right I had the pro version. I purchased the latest pro version and now
   it’s working fine with no warnings.
 * Thanks,
    Jon
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9123709)
 * Dear Jon,
 * That is great. Thank you for keeping us updated.
    In the case of additional questions,
   please, let us know.
 * Best regards,

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

The topic ‘php warnings (php 7.1.4)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slider-image_277db5.svg)
 * [Responsive Slider - Image Slider - Slideshow for WordPress](https://wordpress.org/plugins/slider-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slider-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slider-image/)
 * [Active Topics](https://wordpress.org/support/plugin/slider-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slider-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slider-image/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-warnings-php-7-1-4/#post-9123709)
 * Status: resolved