Title: [ERROR] T_CONSTANT_ENCAPSED_STRING
Last modified: April 13, 2020

---

# [ERROR] T_CONSTANT_ENCAPSED_STRING

 *  Resolved [rami](https://wordpress.org/support/users/ramicz/)
 * (@ramicz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-t_constant_encapsed_string/)
 * Hello there, I got this error
 * `Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /plugins/
   widget-google-reviews/grw-reviews.php on line 23`
 * So I checked the code and noticed that you guys should add this `\` for each `'`
   there. Can you fix it and release new update? Thanks.
 * My fix
 *     ```
       $reviews_where = ' AND hide = \'\'';
   
       if (strlen($reviews_lang) > 0) {
   
           $reviews_where = $reviews_where . ' AND language = \'' . $reviews_lang . '\'';
   
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-t_constant_encapsed_string/#post-12669066)
 * Hi [@ramicz](https://wordpress.org/support/users/ramicz/),
 * Sorry, it’s really strange, because the current version of the plugin contains
   exactly the same code:
 * We never had such a problem, and if it was, then several hundred thousand users
   would flood us with similar topics. Maybe someone modified your local copy of
   the plugin, please check this case (by the way, it may be because you have line
   23 in error, and in the source it is line 12).
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘[ERROR] T_CONSTANT_ENCAPSED_STRING’ is closed to new replies.

 * ![](https://ps.w.org/widget-google-reviews/assets/icon-256x256.gif?rev=3152314)
 * [Rich Showcase for Google Reviews](https://wordpress.org/plugins/widget-google-reviews/)
 * [Support Threads](https://wordpress.org/support/plugin/widget-google-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-google-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-google-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-google-reviews/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/error-t_constant_encapsed_string/#post-12669066)
 * Status: resolved