Title: syntax error in version 4.0.3
Last modified: June 14, 2022

---

# syntax error in version 4.0.3

 *  Resolved [Joris van Montfort](https://wordpress.org/support/users/jorisvanmontfort/)
 * (@jorisvanmontfort)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/)
 * Version 4.0.3 won’t load a givces the following error:
 * Parse error: syntax error, unexpected ‘string’ (T_STRING), expecting function(
   T_FUNCTION) or const (T_CONST) in /home/kwecnl/public_html/wp-content/plugins/
   lightbox-photoswipe/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php on line 16
 * Please fix this.
 * Kind reagrds, Joris

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

 *  [covirtek](https://wordpress.org/support/users/covirtek/)
 * (@covirtek)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/#post-15735016)
 * I have the same bug
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/#post-15735084)
 * This is likely caused by an outdated PHP version on your webhosting. I will try
   to provide an update which should work with PHP 7.0 and up. However older versions
   than 7.0 will not be supported any longer and even PHP 7.0 got “end of life” 
   already 3(!) years ago:
 * [https://www.php.net/eol.php](https://www.php.net/eol.php)
 * So please upgrade at least to PHP 7.4 or ask your webhoster to do so.
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/#post-15735137)
 * Release 4.0.0 should now also work with PHP 7.0 and up.
 * However I still recommend using an up to date PHP version! Versions older than
   PHP 7.4 may have security issues and even PHP 7.4 will become end of life this
   year and no longer get security updates: [https://www.php.net/supported-versions.php](https://www.php.net/supported-versions.php)
 *  Thread Starter [Joris van Montfort](https://wordpress.org/support/users/jorisvanmontfort/)
 * (@jorisvanmontfort)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/#post-15735182)
 * The site with this error was running php 7.3 and will be updated soon.
 * 4.0.4 fixed the issue. Thanks very much.

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

The topic ‘syntax error in version 4.0.3’ is closed to new replies.

 * ![](https://ps.w.org/lightbox-photoswipe/assets/icon-256x256.png?rev=2906302)
 * [Lightbox with PhotoSwipe](https://wordpress.org/plugins/lightbox-photoswipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-photoswipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-photoswipe/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-photoswipe/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Joris van Montfort](https://wordpress.org/support/users/jorisvanmontfort/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-in-version-4-0-3/#post-15735182)
 * Status: resolved