Title: Error when saving Menus
Last modified: August 22, 2016

---

# Error when saving Menus

 *  [marcusds](https://wordpress.org/support/users/marcus1060/)
 * (@marcus1060)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-when-saving-menus/)
 * I get this error when saving a menu:
 *     ```
       arning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WPFeaturedImgCategories' does not have a method 'wpfifc_remove_option_when_post_deleted' in D:\Server\htdocs\wordpress\wp-includes\plugin.php on line 505
   
       Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WPFeaturedImgCategories' does not have a method 'wpfifc_remove_option_when_post_deleted' in D:\Server\htdocs\wordpress\wp-includes\plugin.php on line 505
   
       Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WPFeaturedImgCategories' does not have a method 'wpfifc_remove_option_when_post_deleted' in D:\Server\htdocs\wordpress\wp-includes\plugin.php on line 505
       ```
   
 * It appears to save fine, just need to fix this small error.
 * [https://wordpress.org/plugins/featured-images-for-categories/](https://wordpress.org/plugins/featured-images-for-categories/)

Viewing 1 replies (of 1 total)

 *  [Alan Lee](https://wordpress.org/support/users/alanlee8466/)
 * (@alanlee8466)
 * [11 years ago](https://wordpress.org/support/topic/error-when-saving-menus/#post-5468853)
 * I encountered the same problem you, and I found a method to avoid such error,
   but I don’t know whether it has any negative effects.
 * 1. In “Plugin–>Editor”, select this plugin to edit.
    2. In file “featured-images-
   for-categories/featured-images-for-categories.php”, search for “wpfifc_remove_option_when_post_deleted”.
   3. Comment the whole line, look like this: /*add_action( ‘delete_post’, array(
   $this, ‘wpfifc_remove_option_when_post_deleted’), 10);*/
 * At least there’s no more such annoying errors again. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Error when saving Menus’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/featured-images-for-categories_52ae49.
   svg)
 * [Featured Images for Categories](https://wordpress.org/plugins/featured-images-for-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-images-for-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-images-for-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-images-for-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-images-for-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-images-for-categories/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alan Lee](https://wordpress.org/support/users/alanlee8466/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/error-when-saving-menus/#post-5468853)
 * Status: not resolved