Group Admins

  • Profile picture of Steve

WordPress Troubleshooting and Support

Public Group active 12 months ago ago

WordPress support from our community

ERROR – wp-blog-header.php

This topic contains 4 replies, has 4 voices, and was last updated by  Patrick Ingle 3 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #3313

    Vincent Gentile

    I am getting this error – never saw it before….. any thoughts…?

    Parse error: syntax error, unexpected ‘}’ in /home/deluxe/public_html/wp-blog-header.php on line 20

    Below is the file: wp-blog-header.php


    * Loads the WordPress environment and template.
    * @package WordPress

    #if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    # // Load the WordPress library.
    # require_once( dirname(__FILE__) . ‘/wp-load.php’ );
    # // Set up the WordPress query.
    # wp();

    // Load the theme template.
    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );



    That is not the original file. This is what is should look like >

    Your’s has lots of lines commented out


    D.K. Smith

    Hi Vincent,

    Re-upload all files and folders using a new download of WP, but DO NOT re-upload the wp-content folder.

    If above doesn’t fix it, disable all plugins. Then enable them one at a time. When the problem re-occurs you’ve found the conflict.

    Try these solutions in that order, do not disable/enable plugins first.


    Vincent Gentile

    Thanks Guys….. much appreciated….!


    Patrick Ingle

    Un-comment this line,

    #if ( !isset($wp_did_header) ) {

    by removing the #

    if ( !isset($wp_did_header) ) {

    will fix the error, Parse error: syntax error, unexpected ‘}’ in /home/deluxe/public_html/wp-blog-header.php on line 20

    Since wp-blog-header.php is a core, seems that file got accidentally open, modified and saved.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.