Title: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

 *  Resolved [juanrodriguezfreire](https://wordpress.org/support/users/juanrodriguezfreire/)
 * (@juanrodriguezfreire)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-1/)
 * Hello,
 * New to this. Getting the following error with a php file (sitepress)
    :
 * **Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/balume/
   public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line
   40**
 * The code I have is the following:
 * PHP Code:
 *     ```
       if(defined('WP_ADMIN')){
           require('ICL_PLUGIN_PATH . '/inc/php-version-check.php');
           if(defined('PHP_VERSION_INCOMPATIBLE')) return;
       }
       ```
   
 * Could anyone inform me what could be the problem with the code.
 * Thank You

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [paxmanpwnz](https://wordpress.org/support/users/paxmanpwnz/)
 * (@paxmanpwnz)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-1/#post-1687389)
 * Remove ‘ before ICL_PLUGIN_PATH.
 *  Thread Starter [juanrodriguezfreire](https://wordpress.org/support/users/juanrodriguezfreire/)
 * (@juanrodriguezfreire)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-1/#post-1687432)
 * Thanks. Did that but I’m now getting the following error:
 * Warning: require(/home/balume/public_html/wp-content/plugins/sitepress-multilingual-
   cms/inc/php-version-check.php) [function.require]: failed to open stream: No 
   such file or directory in /home/balume/public_html/wp-content/plugins/sitepress-
   multilingual-cms/sitepress.php on line 39
 * Fatal error: require() [function.require]: Failed opening required ‘/home/balume/
   public_html/wp-content/plugins/sitepress-multilingual-cms/inc/php-version-check.
   php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/balume/public_html/
   wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 39
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING’ is 
closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [juanrodriguezfreire](https://wordpress.org/support/users/juanrodriguezfreire/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-1/#post-1687432)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
