Title: Fatal Error &#8211; unexpected T_STRING
Last modified: September 15, 2018

---

# Fatal Error – unexpected T_STRING

 *  Resolved [Isara](https://wordpress.org/support/users/isara/)
 * (@isara)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/)
 * >  Parse error: syntax error, unexpected T_STRING in /home1/*/*/*/wp-content/
   > plugins/image-regenerate-select-crop/image-regenerate-select-crop.php on line
   > 2723
 * I’m setting up a new installation and got this error when I tried to activate
   the plugin. Any ideas about how to fix it?

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

 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/#post-10696195)
 * Hi Isara,
 * I will take a look and get back to you about this. What PHP version do you have
   and on which WP core version are you making the new setup?
 * Regards,
    Iulia
 *  Thread Starter [Isara](https://wordpress.org/support/users/isara/)
 * (@isara)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/#post-10697974)
 * Hi Iulia. Thanks so much for getting back to me. I’m running WP version 4.9.8
   and PHP 5.6.30
    -  This reply was modified 7 years, 8 months ago by [Isara](https://wordpress.org/support/users/isara/).
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/#post-10698104)
 * Hi Isara,
 * The PHP version is quite old. I could test with a 5.6.33 and cannot replicate
   the issue.
    Perhaps try to replace `\WP_CLI\Utils\` with `WP_CLI\Utils\` and 
   if you do not need to run the WP-CLI commands at all, you can remove all the 
   lines starting with 2615.
 * Let me know how it goes.
 * Regards,
    Iulia
 *  Thread Starter [Isara](https://wordpress.org/support/users/isara/)
 * (@isara)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/#post-10698295)
 * Good call on the PHP version. Did an update and the plugin is working now. Thanks!

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

The topic ‘Fatal Error – unexpected T_STRING’ is closed to new replies.

 * ![](https://ps.w.org/image-regenerate-select-crop/assets/icon-128x128.gif?rev
   =2371819)
 * [Image Regenerate & Select Crop](https://wordpress.org/plugins/image-regenerate-select-crop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-regenerate-select-crop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-regenerate-select-crop/)
 * [Active Topics](https://wordpress.org/support/plugin/image-regenerate-select-crop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-regenerate-select-crop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-regenerate-select-crop/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Isara](https://wordpress.org/support/users/isara/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-unexpected-t_string/#post-10698295)
 * Status: resolved