WordPress.org

Ready to get started?Download WordPress

Forums

White screen after refresh or menu click on dashboard... (5 posts)

  1. ChapDaddy65
    Member
    Posted 1 year ago #

    I am working with my first CMS-based custom template for WordPress and for some reason I keep getting a white screen and never refreshes after doing any task in the WP dashboard. I try to publish/update a post...white screen, I install and activate any plugin (via FTP or "Add New")...white screen, I try to access any submenu item in the "Settings" Tab...white screen.

    Why is this happening?

  2. The white screen means that your PHP is tossing 500 Server errors. Check your web servers access and error log files to see where the problem is.

  3. ChapDaddy65
    Member
    Posted 1 year ago #

    Recent Error_Log entry:

    [09-Sep-2012 14:28:39] PHP Warning: Cannot modify header information - headers already sent by (output started at .../public_html/wp-content/themes/ChapDaddy.me/functions.php:5) in .../public_html/wp-includes/pluggable.php on line 881

    Here's the snippet of code the error refers too (the top, first line is actually line 5)

    <?php if (function_exists('register_sidebar'))
        register_sidebar(array(
        'name'=>'Right Sidebar',
        'before_widget' => '<div class="rightwidgets">',
        'after_widget' => '</div>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
        )); ?>

    new to php coding and very new to WP php coding...so what is the problem with line 5(1)?

  4. Cannot modify header information - headers already sent by

    Those are tricky, if that's it. Give this a good read and check your wp-config.php file.

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

  5. ChapDaddy65
    Member
    Posted 1 year ago #

    fixed it for now... it's weird though. I never touched wp-config.php and yet it somehow forgot to end the php code... amazing how just two symbols break the whole site...

Topic Closed

This topic has been closed to new replies.

About this Topic