• Resolved tutankhamun

    (@tutankhamun)


    Hey everyone!

    I can’t seem to get my plugin activated because this is all I get. “Plugin could not be activated because it triggered a fatal error : Fatal error: Cannot redeclare my_get_posts() (previously declared in …./…./functions.php)”. Is there a workaround this issue?

    http://wordpress.org/extend/plugins/team-rosters/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark O’Donnell

    (@markodonnell)

    hi tutanhamun,
    That’s my bad. If you search for my_get_posts in mstw-team-rosters.php, you will find it on lines 73 and 75. If you just change those lines to


    add_filter( 'pre_get_posts', 'mstw_tr_get_posts' );

    function mstw_tr_get_posts( $query ) {

    you should be good to go. I will add this fix to the next release, which should be out this week pending fixes to a couple of featured image/thumbnail issues.

    Sorry for the inconvenience.

    -Mark

    Plugin Author Mark O’Donnell

    (@markodonnell)

    This fix will be included in the next release, which will hopefully be next week.

    [ Signature moderated. ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Cannot redeclare my_get_posts()’ is closed to new replies.