Title: [Plugin: WP Favorite Posts] Cannot redeclare wpfp_widget_view()
Last modified: August 19, 2016

---

# [Plugin: WP Favorite Posts] Cannot redeclare wpfp_widget_view()

 *  [rstancato](https://wordpress.org/support/users/rstancato/)
 * (@rstancato)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/)
 * I tryed to install the plugin and a Fatal Error occurred.
    And I notice that 
   this error only occurs with this theme ([http://appthemes.com/themes/classipress/](http://appthemes.com/themes/classipress/)
 * > Fatal error: Cannot redeclare wpfp_widget_view() (previously declared in /home/
   > stancato/ricardo.stancato/wp-content/plugins/wp-favorite-posts/wp-favorite-
   > posts.php:339) in /home/stancato/ricardo.stancato/wp-content/plugins/wp-favorite-
   > posts/wp-favorite-posts.php on line 339
 * Any help?

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

 *  [frenchproperty](https://wordpress.org/support/users/frenchproperty/)
 * (@frenchproperty)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/#post-1625915)
 * Hi did you find a way around this?
 *  [frenchproperty](https://wordpress.org/support/users/frenchproperty/)
 * (@frenchproperty)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/#post-1625916)
 * I figured it out.
 * I have
 * in wpfp-widgets.php
 * The last line I removed the last }
 * and in the first lines I replaced
 * function wpfp_widget_init() {
 * with
    function wpfp_widget_init() { }
 * This may not allow all the widget features but it works.
 * Demo : [French property](http://frenchproperty.co.uk)
 *  [lilqhgal](https://wordpress.org/support/users/lilqhgal/)
 * (@lilqhgal)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/#post-1625921)
 * Hi I’m having the same problem except my ‘cannot redeclare’ line is 3 and I don’t
   have a closing } tag at the last line. Any ideas?
 *  [lilqhgal](https://wordpress.org/support/users/lilqhgal/)
 * (@lilqhgal)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/#post-1625922)
 * Well nevermind. It’s always after I test 37 different scenarios before I ask 
   for help and then test again and the next thing works. I removed the last } from
   the code (in my case was line 97 and moved it up as the above poster mentioned.
   At least the plugin functions now. Thanks!

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

The topic ‘[Plugin: WP Favorite Posts] Cannot redeclare wpfp_widget_view()’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-favorite-posts.svg)
 * [WP Favorite Posts](https://wordpress.org/plugins/wp-favorite-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-favorite-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-favorite-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-favorite-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-favorite-posts/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [lilqhgal](https://wordpress.org/support/users/lilqhgal/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-cannot-redeclare-wpfp_widget_view/#post-1625922)
 * Status: not resolved