Title: Parse error: syntax error, unexpected T_STRING
Last modified: July 22, 2018

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [ckcbarros](https://wordpress.org/support/users/ckcbarros/)
 * (@ckcbarros)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/)
 * Hello!
 * Enabling the plugin gives this error:
    Parse error: syntax error, unexpected 
   T_STRING in /home/storage/2/3b/7f/gettub/public_html/wp-content/plugins/category-
   posts/cat-posts.php on line 21
 * My php Server version: 5.6.35-81.0-log – Percona Server (GPL), Release 81.0, 
   Revision c96c427
 * Can you help me solve it? Thank you!

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

 *  Plugin Author [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * (@kometschuh)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10517159)
 * It’s definitif your PHP server version which is not up-to-date.
    We had many 
   requests from hosted websites by GoDaddy. Do you host your website there?
 * In any cases pleas check your PHP server version, maybe also at the admin panel
   or contact your hosting service.
 * Or use a phpinfo()-page (phpinfo.php at your server file system), write this 
   code lines into the files and call it with your web-browser:
 *     ```
       <?php
   
       // Show all information, defaults to INFO_ALL
       phpinfo();
   
       ?>
       ```
   
 *  Thread Starter [ckcbarros](https://wordpress.org/support/users/ckcbarros/)
 * (@ckcbarros)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10517170)
 * The blog is hosted in a company called Locaweb, I can not update php or modify
   files. 🙁
 *  Plugin Author [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * (@kometschuh)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10517193)
 * It’s a managed WordPress installation you use?
 * I recommend to cantact you Locaweb, e.g. via contact formular or via email and
   write you need a newer PHP version not a 5 years old one
 *  Thread Starter [ckcbarros](https://wordpress.org/support/users/ckcbarros/)
 * (@ckcbarros)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10517197)
 * Yes. I’ll get in touch with them and see, but company, until I know the answer:
   we do not support third-party plugins. 🙁
 * But, thank you anyway. 😉
 *  Plugin Author [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * (@kometschuh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10529030)
 * [Here](https://uk.godaddy.com/blog/interview-with-wordpress-creator-matt-mullenweg-video/)
   are some interesting words from the WordPress creator Matt Mullenweg (the third
   last question):
 * …
 * **What role do hosting companies play in the WordPress ecosystem?**
 * MM: Hosting companies are crucial. The number one thing that they can do is help
   ensure that people are on the latest versions of PHP and MySQL, which will make
   things faster and more secure, and help ensure that people are on the latest 
   versions of WordPress, which of course helps everyone.
 * …
 * Quote source: [Interview with WordPress Creator Matt Mullenweg](https://uk.godaddy.com/blog/interview-with-wordpress-creator-matt-mullenweg-video/)

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

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

 * ![](https://ps.w.org/category-posts/assets/icon-256x256.png?rev=1419008)
 * [Category Posts Widget](https://wordpress.org/plugins/category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-82/#post-10529030)
 * Status: resolved