WordPress.org

Forums

Blank Admin Screen on Update (6 posts)

  1. mnancarrow
    Member
    Posted 11 months ago #

    Hello fellow wordpressers,
    I am developing a theme for my own site, not for distribution, but as portfolio website for my blog and marker art. I enjoy doing the code, but I'm not very good at it, and I don't really have any training. I learned it basically through googling tags and copy-pasting.

    I made some changes to my functions.php file; added some image sizes and enabled post thumbnails. However, now when I make any update, the admin screen goes blank. It completes the update, but I have to hit the back button to get the screen to come back up. I can't filter posts or do much of anything that requires more than one step. I'm kind of annoyed and I'm not sure what I did.

    I found a similar problem posted by this guy: http://wordpress.org/support/topic/wp-admin-goes-blank-after-saving-changes-theme-issue?replies=8
    However, I really don't understand the answer.

    Here is what my functions.php file looks like, can anyone tell me what might be causing this problem?

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebars((2),array(
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
        'after_widget' => '</div>',
                'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));
    
    if ( function_exists( 'add_image_size' ) ) {
    	add_image_size( 'wideside', 250, 9999 );
    	add_image_size( 'homepage-thumb', 9999, 250, true );
    	add_image_size( 'display', 800, 9999, true );
    }
    
    ?>
    
    <?php add_theme_support( 'post-thumbnails' ); ?>
  2. Tara
    Member
    Posted 11 months ago #

  3. mnancarrow
    Member
    Posted 11 months ago #

    Alright. I took a look but it doesn't seem to have anything specific... I mean I think I did something to my function file that is causing issues. Is there anything about the code that maybe would cause that?

  4. Tara
    Member
    Posted 11 months ago #

    I think I did something to my function file that is causing issues.

    you may try replacing your functions.php with a fresh copy.

  5. mnancarrow
    Member
    Posted 11 months ago #

    Alright. I tried to replace the functions.php. I just deleted everything, and pasted an exact copy into the file. Oddly enough, that worked. The code is all the same, but the program is running fine now.

    Might anyone know why that happened?

  6. Tara
    Member
    Posted 11 months ago #

    Glad you got it working. :-)

Reply

You must log in to post.

About this Topic