Support » Fixing WordPress » White screen after refresh or menu click on dashboard…

  • 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    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.

    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)?

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    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

    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…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘White screen after refresh or menu click on dashboard…’ is closed to new replies.