• Resolved nakaguma

    (@nakaguma)


    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

    (@kubitomakita)

    Hi, can you tell me when does this error occur? On a particular screen? What watermarks you have configured?

    Thread Starter nakaguma

    (@nakaguma)

    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

    (@nakaguma)

    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

    (@kubitomakita)

    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.

    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

    (@nakaguma)

    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 …

    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 5 years, 2 months ago by erdalaltin.
    Plugin Author Kuba Mikita

    (@kubitomakita)

    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.