Title: Parse error: syntax error, unexpected T_STRING
Last modified: January 3, 2017

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [vvasilev1107](https://wordpress.org/support/users/vvasilev1107/)
 * (@vvasilev1107)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-80/)
 * I have an interesting issue on my official server it gives me this error – Parse
   error: syntax error, unexpected T_STRING in /var/www/html/wp-content/plugins/
   carousel-slider/includes/Carousel_Slider_Form.php on line 9 after the update.
   The server specs mysql 5.5.54, php 5.5.38.
    The row in the file is at: if( ! 
   trait_exists(‘Carousel_Slider_Form’) ):
 * trait Carousel_Slider_Form
    { public function text( array $args ) { The trait
   Carousel_Slider_Form line is giving me problem, and i cant figure out why.The
   more interesting thing is that localy/development server it works perfectly. 
   My local specs are php 5.4.12 mysql 5.6.12.
    -  This topic was modified 9 years, 5 months ago by [vvasilev1107](https://wordpress.org/support/users/vvasilev1107/).

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

 *  [region4web](https://wordpress.org/support/users/region4web/)
 * (@region4web)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-80/#post-8616000)
 * I’m having the same issue. I’ll be interested to see if a solution presents itself.
 * Edit: I upgraded my PHP version to 5.4 and that solved my problem, but it looks
   like you already have that version of PHP installed. Sorry 🙁
    -  This reply was modified 9 years, 5 months ago by [region4web](https://wordpress.org/support/users/region4web/).
      Reason: Solved
 *  Thread Starter [vvasilev1107](https://wordpress.org/support/users/vvasilev1107/)
 * (@vvasilev1107)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-80/#post-8641407)
 * An update i went and rolled back the php installation and now everything is working
   perfectly. It looks like some old depencies were the cause of my pain. Isntalled
   php 5.6. Cheers!
 *  Plugin Author [Sayful Islam](https://wordpress.org/support/users/sayful/)
 * (@sayful)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-80/#post-8702464)
 * At Carousel Slider version 1.6.2, it has been fixed. Now at PHP 5.3 should not
   get any error.

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

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

 * ![](https://ps.w.org/carousel-slider/assets/icon.svg?rev=3102828)
 * [Carousel Slider](https://wordpress.org/plugins/carousel-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/carousel-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/carousel-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/carousel-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carousel-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carousel-slider/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Sayful Islam](https://wordpress.org/support/users/sayful/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-80/#post-8702464)
 * Status: resolved