Title: Consistent PHP Warning
Last modified: August 31, 2016

---

# Consistent PHP Warning

 *  Resolved [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/consistent-php-warning/)
 * Hello!
 * This plugin is generating a pretty consistent PHP warning:
 * `PHP Warning: get_class() expects parameter 1 to be object, boolean given in /
   wp-content/plugins/smart-slider-2/widget.php on line 150`
 * While I could turn off debugging I’d like to keep it on for monitoring purposes.
   I wanted to point this out in hopes of it getting resolved in a future update.
   If you need any more information please let me know!
 * [https://wordpress.org/plugins/smart-slider-2/](https://wordpress.org/plugins/smart-slider-2/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * (@nextendweb_gabor)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/consistent-php-warning/#post-7197110)
 * Hi [@howdy_mcgee](https://wordpress.org/support/users/howdy_mcgee/) !
 * This is connected to the part, where we put our slider to the site origin page
   builder’s modules. Please try out two things. I think the returned value for 
   you will be “false” for some reason, so in that file in line 150.:
    `if(get_class(
   $the_widget) === 'NextendSmartSlider2Widget' && is_admin()){`
 * Please try out to modify it to this instead:
    `if($the_widget!=false && get_class(
   $the_widget) === 'NextendSmartSlider2Widget' && is_admin()){`
 * But if the value isn’t “false”, then you could also try this instead:
    `if(is_object(
   $the_widget) && get_class($the_widget) === 'NextendSmartSlider2Widget' && is_admin()){`
 * Just to check if it’s an object.

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/smart-slider-2_a3918b.svg)
 * [Smart Slider 2](https://wordpress.org/plugins/smart-slider-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-2/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-2/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/consistent-php-warning/#post-7197110)
 * Status: resolved