• Resolved Joris van Montfort

    (@jorisvanmontfort)


    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)
  • I have the same bug

    Plugin Author Arno Welzel

    (@awelzel)

    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

    So please upgrade at least to PHP 7.4 or ask your webhoster to do so.

    Plugin Author Arno Welzel

    (@awelzel)

    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

    Thread Starter Joris van Montfort

    (@jorisvanmontfort)

    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.