Skip to:
Content
Pages
Categories
Search
Top
Bottom

Two installations have failed


  • Eric J T
    Participant

    @eric-j-t

    Hi, I had on install with the latest wp bp bb etc at hostgator but started getting fatal errors, including
    Fatal error: Call to a member function register() on a non-object in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/widgets.php on line 431
    and
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bpge_js_localize' was given in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/plugin.php on line 406
    then I got
    Fatal error: Call to undefined function add_action() in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/functions.php on line 100
    Well, hostgator page loads were ten seconds or so, and I was considering moving to godaddy, so I set up an account there and installed the latest wp 3.6.1 and just bp and my theme, then started adding fields for member profiles. I updated the name on mine and got the same error
    Fatal error: Call to undefined function add_action() in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/functions.php on line 100
    and now I can’t get into anything, front or back end. Just get that error.

    I’m going to have to reinstall completely to get this working. Please advise as to how to prevent this problem. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • This isn’t really a BuddyPress specific problem. You’ve activated a plugin or theme that doesn’t work, and it’s causing these errors.

    Reinstall WordPress, then BuddyPress. Use a default WordPress theme. Everything will be fine. Reactive plugins one-by-one until the error comes back. You’ve figured out what plugin(s) are misbehaving, so deactivate and delete them. Then try switching back to your theme, and seeing if it all still works.

    Hint: from your logs, the “BP Group Extras” plugin is causing problems, so get rid of that.


    Eric J T
    Participant

    @eric-j-t

    Sorry I didn’t include the code for that. Yes, it is in the wp functions.php file, but it is relevant to bp theme. Here is the full function that line 100 is found in. Line 100 is the third to last, which starts with “add action”.

    /**
     * Sets up theme defaults and registers support for various WordPress and BuddyPress features.
     *
     * Note that this function is hooked into the after_setup_theme hook, which runs
     * before the init hook. The init hook is too late for some features, such as indicating
     * support post thumbnails.
     *
     * To override bp_dtheme_setup() in a child theme, add your own bp_dtheme_setup to your child theme's
     * functions.php file.
     *
     * @global BuddyPress $bp The one true BuddyPress instance
     * @since BuddyPress (1.5)
     */
    function bp_dtheme_setup() {
    
    	// Load the AJAX functions for the theme
    	require( get_template_directory() . '/_inc/ajax.php' );
    
    	// This theme styles the visual editor with editor-style.css to match the theme style.
    	add_editor_style();
    
    	// This theme comes with all the BuddyPress goodies
    	add_theme_support( 'buddypress' );
    
    	// This theme uses post thumbnails
    	add_theme_support( 'post-thumbnails' );
    
    	// Add default posts and comments RSS feed links to head
    	add_theme_support( 'automatic-feed-links' );
    
    	if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
    		// Register buttons for the relevant component templates
    		// Friends button
    		if ( bp_is_active( 'friends' ) )
    			add_action( 'bp_member_header_actions',    'bp_add_friend_button',           5 );
    
    		// Activity button
    		if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() )
    			add_action( 'bp_member_header_actions',    'bp_send_public_message_button',  20 );
    
    		// Messages button
    		if ( bp_is_active( 'messages' ) )
    			add_action( 'bp_member_header_actions',    'bp_send_private_message_button', 20 );
    
    		// Group buttons
    		if ( bp_is_active( 'groups' ) ) {
    			add_action( 'bp_group_header_actions',     'bp_group_join_button',           5 );
    			add_action( 'bp_directory_groups_actions', 'bp_group_join_button' );
    		}
    
    		// Blog button
    		if ( bp_is_active( 'blogs' ) )
    			add_action( 'bp_directory_blogs_actions',  'bp_blogs_visit_blog_button' );
    	}
    }
    add_action( 'after_setup_theme', 'bp_dtheme_setup' );
    endif;
    
    if ( !function_exists( 'bp_dtheme_enqueue_scripts' ) ) :
    

    In the first install the failed bp had been installed and working for a few days. It suddenly gave errors when I edited a css color code on line 1211 in this file and uploaded it to the server by ftp. Yeah, I know you might say I made a mistake, but I know I did it correctly. And they you might say the file got corrupted in transfer, except that the second install on godaddy had no such changes or transfers and in short order – less than an hour of use with no other plugins or style changes – gave the same final error for line 100 when I changed my public name in the buddypress members listing, at which point neither the front nor back ends were accessible.

    Looking forward to your insights.


    Eric J T
    Participant

    @eric-j-t

    Thanks Paul.

    By the way, the theme I am using is Wild Community by Diablolique.

    I didn’t have the bpgroup extras plugin during the second fail. I am emailing the theme creator for support also.

    If there is anything more you can deduce from the code above – maybe how the theme is failing here if that is the problem – let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two installations have failed’ is closed to new replies.
Skip to toolbar