Title: Parse error: syntax error, unexpected &#8216;const&#8217; (T_CONST)
Last modified: February 18, 2021

---

# Parse error: syntax error, unexpected ‘const’ (T_CONST)

 *  Resolved [jansudek](https://wordpress.org/support/users/jansudek/)
 * (@jansudek)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/)
 * Hello, I updated to newest version 1.10.0 but website crashed .. in log is
 * `An error of type E_PARSE was caused in line 12 of the file /wp-content/plugins/
   foogallery/includes/class-foogallery-crop-position.php. Error message: syntax
   error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE)`
 * can you fix it ?? thx
 * PHP 5.6.40
    WP 5.6.1

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

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/#post-14070916)
 * hi [@jansudek](https://wordpress.org/support/users/jansudek/)
 * Thanks for reporting – we are investigating now
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/#post-14070929)
 * I think this is an issue with PHP 5.6
 * I will release an update now
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/#post-14070960)
 * [@jansudek](https://wordpress.org/support/users/jansudek/)
 * I have released v1.11.1 which fixes the issue.
 * Thanks again for reporting this, so that we could quickly resolve the problem
 *  Thread Starter [jansudek](https://wordpress.org/support/users/jansudek/)
 * (@jansudek)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/#post-14070996)
 * [@bradvin](https://wordpress.org/support/users/bradvin/) yes, it is ok now, thx
   for fix for old php versions

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

The topic ‘Parse error: syntax error, unexpected ‘const’ (T_CONST)’ is closed to
new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jansudek](https://wordpress.org/support/users/jansudek/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-const-t_const/#post-14070996)
 * Status: resolved