Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error after update – Returns “Page not Working HTTP Error 500”


  • xavi3r12
    Participant

    @xavi3r12

    Hello, am running WordPress Version 4.8 and BuddyPress Version 2.7.4 but each time i want to update to the new version which is version 2.8.0, My Websites returns an error of Page not working http error 500 as provided in the screen short, Screen Short of Error After Update
    what could be the problem??

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

  • wbcomdesigns
    Participant

    @wbcomdesigns

    Hello @xavi3r12

    – Try MANUALLY re-updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Updatedirections first.

    – Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Hope this will help.

    Thanks.


    xavi3r12
    Participant

    @xavi3r12

    I have tried that it still returned the same error, however i have just noticed that if i delete my bp-custom.php everything works fine but my pages does not redirect users to there profile “if logged in” which was the purpose of the bp-custom.php file. This in the code in my bp-custom.php file

    <?php
    // hacks and mods will go here
    /* Redirects to profile upon login */
    add_action('login_form', 'redirect_after_login'); 
    function redirect_after_login() 
    {     
    global $redirect_to; 
    if   (!isset($_GET['redirect_to'])) 
    { 
    $redirect_to =   get_option('activity');
    //  sample-page = your page name after site_url
    } }
    
    function bp_help_redirect_to_profile(){
    global $bp;
    
    if( is_user_logged_in() && bp_is_front_page() )
    bp_core_redirect( get_option('home') . '/members/' . bp_core_get_username( bp_loggedin_user_id() ) . '/activity' );
    
    }
    
    add_action( 'get_header', 'bp_help_redirect_to_profile',1);
    
    add_action('wp_logout','go_home');
    function go_home(){
      wp_redirect( home_url() );
      exit();
    }
    
    add_action( 'bp_complete_signup', 'buddydev_redirect_after_signup' );
     
    function buddydev_redirect_after_signup() {
        
        $page = wp_redirect( get_option('siteurl') . '/profile' );
        
        
        bp_core_redirect( site_url( $page ) );
    }
    
    ?>

    So how do i fix this?? I need help Please

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar