Title: Plugin causing an exception.
Last modified: October 4, 2018

---

# Plugin causing an exception.

 *  [da_Mask](https://wordpress.org/support/users/da_mask/)
 * (@da_mask)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-causing-an-exception/)
 * Line 65 is causing an exception:
    `if ( current_user_can( 'edit_page') || current_user_can('
   edit_post') )` I think the ‘edit_post’ function requires a second post_id argument,
   but I’m not sure. Has anyone else gotten a `Undefined offset: 0` exception?

The topic ‘Plugin causing an exception.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/remove-featured-image.svg)
 * [Remove Featured Image](https://wordpress.org/plugins/remove-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/remove-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/remove-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/remove-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remove-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remove-featured-image/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [da_Mask](https://wordpress.org/support/users/da_mask/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-causing-an-exception/)
 * Status: not resolved