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

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [ericjevitts](https://wordpress.org/support/users/ericjevitts/)
 * (@ericjevitts)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/)
 * I just updated both of your plugins and now I’m getting the same errors:
 * **Parse error: syntax error, unexpected T_STRING in /home/eevitts/public_html/
   wp-content/plugins/wp-invoice/wp-invoice.php on line 40**
 * **Parse error: syntax error, unexpected T_STRING in /home/eevitts/public_html/
   wp-content/plugins/wp-crm/wp-crm.php on line 40
    
   
    for both wp-invoice and wp-
   crm
 * I am runnning PHP Version 5.2.17
 * I have recurring invoicing and sensitive data I need to recover. I do have site
   backups but not too recent and don’t want to lose billing history.
 * [https://wordpress.org/plugins/wp-invoice/](https://wordpress.org/plugins/wp-invoice/)

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

 *  Thread Starter [ericjevitts](https://wordpress.org/support/users/ericjevitts/)
 * (@ericjevitts)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443153)
 * I just updated PHP version and that seemed to do the trick.
    I could not find
   the PHP requirement for the plugins. Updated to 5.4 and all is working again.
 *  [jebernier](https://wordpress.org/support/users/jebernier/)
 * (@jebernier)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443578)
 * Same issue, updated to PHP 5.4 and site still broken?
 *  [jules22](https://wordpress.org/support/users/jules22/)
 * (@jules22)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443613)
 * I am getting the same error. Our hosting service updated to php 5.5.29. Was throwing
   a line 161 error and then I updated plugin…now throwing a line 40 error:
 * Parse error: syntax error, unexpected T_STRING in /wp-content/plugins/wp-invoice/
   wp-invoice.php on line 40.
 * please resolve..i have all my invoice data here.
 * Thanks
    Jules
 *  Plugin Contributor [MariaKravchenko](https://wordpress.org/support/users/mariakravchenko/)
 * (@mariakravchenko)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443614)
 * Hello,@jules22 and [@jebernier](https://wordpress.org/support/users/jebernier/)
 * Check this [ticket](https://github.com/cakephp/debug_kit/issues/142) also.
 * This issue relates only to php version on your server.
 * Regards.
 *  [jules22](https://wordpress.org/support/users/jules22/)
 * (@jules22)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443615)
 * Yes, correct after doing a phpinfo I see that the version I am running is PHP
   Version 5.2.9. The program will not run on 5.2.9 ? It has to be upgraded to 5.4?
   Is this correct ?
 *  Plugin Contributor [MariaKravchenko](https://wordpress.org/support/users/mariakravchenko/)
 * (@mariakravchenko)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443616)
 * [@jules22](https://wordpress.org/support/users/jules22/)
 * Yes, you need to update the php version to 5.3 or higher.
 * Regards.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-invoice_c36510.svg)
 * [WP-Invoice - Web Invoice and Billing](https://wordpress.org/plugins/wp-invoice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-invoice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-invoice/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-invoice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-invoice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-invoice/reviews/)

## Tags

 * [Parse error: syntax error](https://wordpress.org/support/topic-tag/parse-error-syntax-error/)

 * 6 replies
 * 4 participants
 * Last reply from: [MariaKravchenko](https://wordpress.org/support/users/mariakravchenko/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-70/#post-6443616)
 * Status: resolved