Title: SrcsetFilter.php seems to be causing an error
Last modified: September 13, 2019

---

# SrcsetFilter.php seems to be causing an error

 *  Resolved [nakaguma](https://wordpress.org/support/users/nakaguma/)
 * (@nakaguma)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/)
 * Hi,
    Thank you as always.
 * After updating to 1.0.3, the following error appears on the site.
 * Warning: in_array() expects parameter 2 to be array, null given in /home/****/****.
   com/public_html/wp-content/plugins/easy-watermark/src/classes/Features/SrcsetFilter.
   php on line 174
 * Do you know how to fix it?
 * Best regards.

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

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11929921)
 * Hi, can you tell me when does this error occur? On a particular screen? What 
   watermarks you have configured?
 *  Thread Starter [nakaguma](https://wordpress.org/support/users/nakaguma/)
 * (@nakaguma)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11930997)
 * Hi, Thanks!
 * On the site, it occurs only in past posts, and seems to occur in places using“
   WP_Query”.
 * In addition, only past posts occur at the place where the eye-catching image 
   is set in the editing screen of WordPress.
 * Best regards.
 *  Thread Starter [nakaguma](https://wordpress.org/support/users/nakaguma/)
 * (@nakaguma)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11931036)
 * However, new posts will not cause an error and will have a “Watermark”.
 * Turning off the plug-in will clear the error.
 * It’s a very nice plug-in, so I want to use it while switching the plug-in on 
   and off.
 * I hope that the next update will fix the error.
 * Best regards.
 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11932083)
 * Oh will take a look at this, but in the meantime, I suggest you disable the `
   WP_DEBUG` if this is a live website. It’s not safe to display errors publicly.
 *  [samekhanok](https://wordpress.org/support/users/samekhanok/)
 * (@samekhanok)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11934038)
 * i am also having this error plus i ahve very bad looking water mark on hundreds
   of images i want to restore all images to old one but its giving me error
 * An error occured while processing Fat Woman At The Table: 1 error has occured.
 *  Could not restore attachment.
 *  Thread Starter [nakaguma](https://wordpress.org/support/users/nakaguma/)
 * (@nakaguma)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11940639)
 * thank you for the advice.
 * However, even if WP_DEBUG is disabled, this error will be displayed on the screen.
 * So, there seems to be only a way to turn off the plug-in.
    I wish I could hide
   the error …
 *  [erdalaltin](https://wordpress.org/support/users/erdalaltin/)
 * (@erdalaltin)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11945079)
 * return value is a array to \wp-content\plugins\easy-watermark\src\classes\Watermark\
   Watermark.php line 93
 * but
 * It call object value to \wp-content\plugins\easy-watermark\src\classes\Features\
   SrcsetFilter.php line 174 and had this error “PHP Notice: Trying to get property‘
   image_sizes’ of non-object”.
 * is syntax right?
    -  This reply was modified 6 years, 9 months ago by [erdalaltin](https://wordpress.org/support/users/erdalaltin/).
 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11967519)
 * Ok we patched this in 1.0.4 and rebuilt this srcset filter a bit. Now should 
   work find and not give any errors.

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

The topic ‘SrcsetFilter.php seems to be causing an error’ is closed to new replies.

 * ![](https://ps.w.org/easy-watermark/assets/icon.svg?rev=2153955)
 * [Easy Watermark](https://wordpress.org/plugins/easy-watermark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-watermark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-watermark/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-watermark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-watermark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-watermark/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/srcsetfilter-php-seems-to-be-causing-an-error/#post-11967519)
 * Status: resolved