• I’ve been struggling with my website since it went live last night.

    Page takes inordinate amount of time to load, or wont load at all. PageSpeed form Google simply times out. Debug tools just report the word “failed” and doesn’t debug anything.

    I’m mostly infrastructure, so I assumed it was a dns issue. Nope. All good.
    Firewall issue? Absolutely not.
    Virtual host headers, sound.
    Apache? Nope.

    Removed custom CSS. No help
    Removed modified Footer, no help

    Changed theme…. it loaded fast…
    Changed back, took out slider, no help.

    After much Googling, someone mentioned removing the logo for a problem that wasn’t related. So I did, and it and the page came up quickly.

    I tried ‘re-uploading’ the logo, but the concern persists. The logo is 27k, png. Nothing spectacular.

    I removed the empty space at the tail of my functions.php. . .

    I would really like to have a logo.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sean

    (@swscully)

    Additionally,
    I’ve wiped out the Database,
    ‘Re installed’ wordpress
    removed/re installed the Theme Customizr.

    With no other modifications aside from adding the logo, the behavior persists.

    Im at a total loss. It seemed to work very well on the LAN, but now that its over the WAN, it wont work the same way.

    Thread Starter Sean

    (@swscully)

    To be clear on my previous post, IT was always over the LAN.
    Previously I had a hosts file which directed the URL at the servers WAN IP of the server at the datacenter for development.

    The change was from my local hosts file, to using our Authoritative DNS server as a pointer.

    Changing it back to the dev config, just as a test resolved nothing.

    Thread Starter Sean

    (@swscully)

    I’m not a dev, and was really hoping to get some help. . .
    The page is now loading properly, in about 3 seconds. I started chasing variables, back to the file
    /var/www/pbtgmain/wp-content/themes/customizr/inc/parts/class-header-header_main.php</em>”

    And just started clipping functions. The following was the culprit, causing 62 second loading times.

    <?php
        //filter args
        $filter_args = array(
    	'logo_src' 	=>	$logo_src,
    	'logo_resize' 	=>	$logo_resize,
    	'logo_class'	=> 	$logo_class
    		   	);
        ob_start();
    	$width 				= '';
    	$height 			= '';
    //gets height and width from image, we check if getimagesize can be used first with the error control operator
         if ( @getimagesize($logo_src) ) {list( $width, $height ) = getimagesize($logo_src);
    }?>

    I compared this against the original install files from a previous backup and see no difference.

    Can anyone explain this function to me, and what it accomplishes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page wont load, or loads slowly, with custom logo image.’ is closed to new replies.