Group Admins

  • Profile picture of Steve

Group Mods

No Mods

WordPress Troubleshooting and Support

Public Group active 5 days, 17 hours 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 Profile photo of Patrick Ingle Patrick Ingle 3 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3313
    Profile photo of Vincent Gentile
    Vincent Gentile
    Participant

    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

    ——————————————————————

    <?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’ );
    }

    #3314
    Profile photo of Steve
    Steve
    Keymaster

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

    Your’s has lots of lines commented out

    #3315
    Profile photo of D.K. Smith
    D.K. Smith
    Participant

    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.

    #3317
    Profile photo of Vincent Gentile
    Vincent Gentile
    Participant

    Thanks Guys….. much appreciated….!

    #3322
    Profile photo of Patrick Ingle
    Patrick Ingle
    Participant

    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.