WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
Cannot redeclare wpfp_widget_view() (5 posts)

  1. rstancato
    Member
    Posted 3 years ago #

    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/

    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?

  2. frenchproperty
    Member
    Posted 3 years ago #

    Hi did you find a way around this?

  3. frenchproperty
    Member
    Posted 3 years ago #

    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

  4. lilqhgal
    Member
    Posted 3 years ago #

    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?

  5. lilqhgal
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic