Please Help me.it is urgent : Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /h

Discussion in 'PHP' started by Tony Toreto, Jul 18, 2014.

  1. #1
    i found this error on my client site main page "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/10/10872410/html/wp-blog-header.php on line 23"

    Here is the WP-Blog-Header.php code

    <?php
    /**
    * Loads the WordPress environment and template.
    *
    * @package WordPress
    */

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . '/wp-load.php' );

    wp();

    require_once( ABSPATH . WPINC . '/template-loader.php' );

    }
    hp' );

    wp();

    require_once( ABSPATH . WPINC . '/template-loader.php' );

    }
     
    Last edited: Jul 18, 2014
    Tony Toreto, Jul 18, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #2
    so which line is line 23?

    running encrypted code could mean anything is happening in there - including running code picked up from another site. Consider changing the theme to one that isn't encrypted code.
     
    sarahk, Jul 18, 2014 IP
  3. Tony Toreto

    Tony Toreto Member

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    last one is 23 line
     
    Tony Toreto, Jul 18, 2014 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #4
    so you've edited out all the encrypted code which is odd. and you've left in a stray

    hp');

    your error is somewhere above line 23 given that line 23 is actually ok. There is something above that hasn't closed the line properly and it's causing the problem.
     
    sarahk, Jul 18, 2014 IP
  5. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #5
    I am sorry but I am confused how do you feel Line 23 is ok? Its seems to be broken part of a function call and is bound to show a syntax error.
     
    shubhamjain, Jul 20, 2014 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #6
    experience
     
    sarahk, Jul 20, 2014 IP