Support » Fixing WordPress » Parse error: syntax error, unexpected ” );’ (T_ENCAPSED_AND_WHITESPACE)

  • Resolved webqueenhtc

    (@webqueenhtc)


    Got this error message:

    Parse error: syntax error, unexpected ” );’ (T_ENCAPSED_AND_WHITESPACE) in /home/sockup3/public_html/index.php on line 17

    when copying the index.php n .htaccess to the root directory following instruction from Using a pre-existing subdirectory install at wordpress.org site.

    here’s my index.php code:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘/wp5/wp-blog-header.php' );    --- this is line 17

    I have done the above on other site so many time successfully, can someone look at the code above and tell what is wrong?

    Thanks in advance.

    • This topic was modified 2 years, 8 months ago by  Steve Stern. Reason: put code in code tags
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Look at that “prime” before /wp5/ It’s a backtick, not an apostrophe.

    • This reply was modified 2 years, 8 months ago by  Steve Stern.

    YEAH!!!!! Thank you! Thank you! It works!!!! (I now can see the difference but I wasn’t able to distinguish earlier).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error, unexpected ” );’ (T_ENCAPSED_AND_WHITESPACE)’ is closed to new replies.