Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [raphamonte](https://wordpress.org/support/users/raphamonte/)
 * (@raphamonte)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/)
 * Hi,
 * This message appears when I try to activate the plugin after re-installation.
 * **Parse error: syntax error, unexpected T_STRING in […]/wp-content/plugins/rating-
   widget/rating-widget.php on line 5336**
 * […] = address hosting location
 * WordPress = 3.9.1
    WooCommerce = 2.1.9 Plugin = 2.0.6
 * =================================
 *     ```
       //define('WP_RW___LATE_LOAD', 20);
       if (defined('WP_RW___LATE_LOAD'))
           add_action('plugins_loaded', 'ratingwidget', (int)WP_RW___LATE_LOAD);
       else
           $GLOBALS['rw'] = ratingwidget();
       endif;
       ?>
       ```
   
 * [https://wordpress.org/plugins/rating-widget/](https://wordpress.org/plugins/rating-widget/)

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

 *  [androapp](https://wordpress.org/support/users/androapp/)
 * (@androapp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/#post-4952468)
 * same here…
 *  Plugin Author [RatingWidget](https://wordpress.org/support/users/ratingwidget/)
 * (@ratingwidget)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/#post-4952469)
 * The error happens because we’ve integrated or php SDK that is using namespaces
   which are only supported since php 5.3
 * Don’t worry, we are working to resolve the problem ASAP, and the fixed version
   will be released tomorrow.
 *  [0crash0](https://wordpress.org/support/users/0crash0/)
 * (@0crash0)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/#post-4952505)
 * since update have error, and require del folder and reinstall plugin to bring
   my site to work back
 * actualy error at init api:
    ` // Init API. $rwapi = new \RatingWidget\Api\Sdk\
   RatingWidget ( ‘site’, WP_RW__SITE_ID, WP_RW__SITE_PUBLIC_KEY, WP_RW__SITE_SECRET_KEY);`…
   will wait for new relise thnks for plug-in and support UPD:oh, thats fast =) 
   thanks all working now
 *  Plugin Author [RatingWidget](https://wordpress.org/support/users/ratingwidget/)
 * (@ratingwidget)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/#post-4952506)
 * We’ve just released a fix for the namespaces issue. Please upgrade to version
   2.0.7 and let us know if that worked:
    [http://downloads.wordpress.org/plugin/rating-widget.2.0.7.zip](http://downloads.wordpress.org/plugin/rating-widget.2.0.7.zip)

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/rating-widget_4db0e0.svg)
 * [Rating-Widget: Star Review System](https://wordpress.org/plugins/rating-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rating-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rating-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/rating-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rating-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rating-widget/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [RatingWidget](https://wordpress.org/support/users/ratingwidget/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-52/#post-4952506)
 * Status: resolved