• Hello everyone. I have created a simple child theme of Twenty Eleven, with a style.css, a functions.php and a footer.php

    The functions.php is the following:

    <?php
    function childtheme_favicon() { ?>
    <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico">
    <?php }
    add_action('wp_head', 'childtheme_favicon');
    
    //This is for automatically calculating the copyright years
    
    function comicpress_copyright() {
    	global $wpdb;
    	$copyright_dates = $wpdb->get_results("SELECT
    	YEAR(min(post_date_gmt)) AS firstdate,
    	YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts
    	WHERE post_status = 'publish' ");
    
    	$output = '';
    	if($copyright_dates) {
    		$copyright = "? " . $copyright_dates[0]->firstdate;
    		if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {
    			$copyright .= '-' . $copyright_dates[0]->lastdate;
    		}
    		$output = $copyright;
    	}
    	return $output;
    }
    ?>

    The footer.php used to have some code for copyrights, but as of now, for testing reasons it is an exact copy of the unedited parent theme.

    So here is the problem.
    If I remove either the footer.php or the functions.php from the child theme, the site works as expected!
    But if those two coexist in the child-theme folder, I get a blank screen of death when I try to logout. If i force logging out by deleting cookies, salt or whatever, I cannot log back in the dashboard, getting a blank screen once again. Tried different browsers with the same results, and debugging mode is active but I got no messages whatsoever.
    The site is hosted on bluehost.

    Any ideas, please?

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter Mpampirina

    (@mpampirina)

    @esmi Interesting approach. I tried what you suggested. With functions.php empty (only <?php ?> inside) and the footer gone, the site crashes on logout, giving a blank screen. I expected it to work, but it crashes. No errors on logs so far.

    Then it sounds like the theme isn’t the issue. Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Thread Starter Mpampirina

    (@mpampirina)

    The problem is solved. I did deactivate and re-activate all my plugins, with testing after each reactivation. The thing is I didn’t find which plugin caused the initial problem, though I reactivated all of them. Oh well.

    Thank you for your support, everybody.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Twenty Eleven child gives blank screen on Login/Logout’ is closed to new replies.