WordPress.org

Support

Support » Plugins and Hacks » Causes WP Admin bar to disappear

Causes WP Admin bar to disappear

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m having the same issue. Only on an individual group page. It makes the admin bar at the top disappear and I am getting the following error:

    Fatal error: Cannot redeclare _bp_groupblogs_refetch() (previously declared in /home/content/78/6443778/html/marlinsnation/wp-content/plugins/external-group-blogs/bp-groups-externalblogs.php:190) in /home/content/78/6443778/html/marlinsnation/wp-content/plugins/external-group-blogs/bp-groups-externalblogs.php on line 189

    Same issue here – I’ve checked with several other sites running the plugin and it appears they are having same problem – any news on a solution please?

    A temporary solution is to make sure that the function is not redeclared:

    if ( !function_exists( '_bp_groupblogs_refetch' ) ){
        		function _bp_groupblogs_refetch() {
        			global $bp; ?>
        			<script type="text/javascript">
        				jQuery(document).ready( function() {
        					jQuery.post( ajaxurl, {
        						action: 'refetch_groupblogs',
        						'cookie': encodeURIComponent(document.cookie),
        						'group_id': <?php echo $bp->groups->current_group->id ?>
        					});
        				});
        			</script><?php
        			groups_update_groupmeta( $bp->groups->current_group->id, 'bp_groupblogs_lastupdate', gmdate( "Y-m-d H:i:s" ) );
        		}
    }

    However, I don’t see the _bp_groupblogs_refetch() function being called at all from anywhere. Certainly the javascript it writes is not showing up on any of my pages.
    Perhaps someone else has an idea if this code is actually functional?

    ditto. great plugin. any news? @lemmy —> temporary solution gives white screen.

    Just to clarify.

    Have now tried this with bp default theme WP 3.5.1, BP 1.7-beta 2, bbPress 2.3-beta 2
    no other plugins.

    Admin bar contents replaced by empty white bar.

    Please help me also. i have a similar problem. I have WP 3.5.1 + BP last edition. Admin bar disappeared for all non registered users…
    Checked with other BP and WP default themes = the same problem. I think its problem WP itself. Please check my site and give me any suggestions.

    In my case admin bar disappeared at all for all non registered users. Any idea?

    admin bar disappeared across entire site i mean for all non registered users

    Version: 1.2.3 (on wp 3.5.2 and bp 1.7.2) appears to have fixed this.

    Many thanks,Devs.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Causes WP Admin bar to disappear’ is closed to new replies.