BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Wp-Login Logo Error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Question

    #34066
    @george123

    Got this on the top of my wp-login:

    Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /wp-content/themes/buddyboss/buddyboss-inc/theme-functions.php on line 918

    Warning: getimagesize(wp-content/uploads/2014/08/logo3.jpg) [function.getimagesize]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /wp-content/themes/buddyboss/buddyboss-inc/theme-functions.php on line 918

    Any idea how to fix this?

    Answers

    #34086

    Alyssa
    Participant
    @alyssa-buddyboss

    @george123 delete and re add your logo via theme customizer

    #35385
    @alison985

    This did not work for me. I still have the error. I tried several times.

    #35391
    @style960

    @alison985 Are you deleting the image from your Media Library? I’d be sure all instances of that image have been removed, then upload again using the Customizer.

    #35408

    Alyssa
    Participant
    @alyssa-buddyboss

    @george123 make sure your server allows url_fopen and is set to on. Otherwise you need to try reuploading the theme. If you recently upgraded from version 3.x then you need to completely remove the theme and upload version 4.x

    #35444
    @alison985

    @style960 @tjchester Yes, I’m deleting the image. Yes, I’ve tried deleting parent and child themes and then readding them. I am getting a slightly different error:

    Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/bankofkn/public_html/creatingchangecommunity.org/pride/wp-content/themes/buddyboss/buddyboss-inc/theme-functions.php on line 915
    
    Warning: getimagesize(http://creatingchangecommunity.org/pride/wp-content/uploads/2015/02/ccc_small.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /home/bankofkn/public_html/creatingchangecommunity.org/pride/wp-content/themes/buddyboss/buddyboss-inc/theme-functions.php on line 915
    #35461

    Alyssa
    Participant
    @alyssa-buddyboss

    @alison985 it’s right there in the code:
    wrapper is disabled in the server configuration by allow_url_fopen=0
    this need to be set to 1 or on by your hosting provider

    #37120
    @foxdenvixen

    I am replying to this problem as well. I was able to change the php5.ini file in the root of my site from off to on and still get this error. I have deleted the logo and uploaded it again. This is just weird that it worked just fine on another site I had that used version 3x of this template. I know that others are NOT having this problem. I am not going to delete everything and start over. That is just a PITA!

    #37199
    @mairaj

    I have this problem since I upgraded to BuddyBoss 4

    #37276

    Alyssa
    Participant
    @alyssa-buddyboss

    @george123 @alison985 @mairaj @foxdenvixen try adding this to your custom.css file but manually add your logo width and height were noted:

    function remove_bb_logo(){
    remove_action( 'login_head', 'buddyboss_custom_login_logo' );
    }
    add_action( 'init' , 'remove_bb_logo' );
    
    function buddyboss_custom_login_logo_redux()
    {
        $logo = get_theme_mod( 'buddyboss_logo', FALSE );
    	
    	/*convert from relative url to absolute url*/
    	$scheme = is_ssl() ? 'https://' : 'http://';
    	$logo_absolute_url = $scheme . @$_SERVER['HTTP_HOST'] . $logo;
    
        if ( $logo ) {
            if ( !0 ) {
                $width = [insert image width];
                $height = [insert image height];
                echo '<style type="text/css">
                        #login h1 a {
                            background-image: url('.esc_url($logo).');
                            background-size: '.intval($width).'px '.intval($height).'px !important;
                            min-height: 87px;
                            width: '.intval($width).'px;
                            height: '.intval($height).'px;
                            overflow: hidden;
                        }
                        body.login {
                            background: #fff !important;
                        }
                        .login form {
                            -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.3);
                            -moz-box-shadow: 0 1px 3px rgba(0,0,0,.3);
                            box-shadow: 0 1px 3px rgba(0,0,0,.3);
                        }
                    </style>';
            }
        }
    }
    add_action( 'login_head', 'buddyboss_custom_login_logo_redux' );
    #37845
    @mairaj

    Hi!

    Do I have supply the logo url also? Above code didn’t make a diffrence.

    Thanks

    #37854

    Alyssa
    Participant
    @alyssa-buddyboss

    @mairaj the logo should still be uploaded via regular customization screen. You do need to specify the height and width where it says [insert image width]

Viewing 12 posts - 1 through 12 (of 12 total)
  • The question ‘Wp-Login Logo Error’ is closed to new replies.