Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal error: Cannot redeclare bp_dtheme_ajax_querystring()


  • mallowtribedesign
    Member

    @mallowtribedesign

    I’m designing a new child theme for Buddypress 1.5.1 using WordPress version 3.2.1, following the directions here (http://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/). I’ve just uploaded the functions.php file with the code

    if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {}
    endif;

    as it says on that page, but I’m getting this error:

    Fatal error: Cannot redeclare bp_dtheme_ajax_querystring() (previously declared in /home/sddia/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:17) in /home/sddia/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php on line 81

    Any idea what is going wrong here?

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

  • Paul Wong-Gibbs
    Keymaster

    @djpaul

    The error’s to do with a duplicate bp_dtheme_ajax_querystring() function somewhere. Did you copy that into your theme, too?


    modemlooper
    Moderator

    @modemlooper

    Deactivate BuddyPress template pack if you are using a child theme and not a WordPress theme you want to add BuddyPress support to.


    thomaswest14
    Member

    @thomaswest14

    I get this error too, but have not edited the themes. I am now unable to view any pages including admin. How can I resolve this?

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