• Resolved gabor123

    (@gabor123)


    same error on page and on the admin when i try to edit a post
    wp 4.9.4
    Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /wp-content/plugins/simple-post-gallery/app/Controllers/GalleryController.php on line 38

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter gabor123

    (@gabor123)

    php 5.4.45

    Plugin Contributor 10Quality

    (@10quality)

    Hot fix on version 2.1.5.

    Thanks for reporting.

    Thread Starter gabor123

    (@gabor123)

    Thanks for quick fix, but:
    Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /wp-content/plugins/simple-post-gallery/app/Models/Post.php on line 49

    Plugin Author pirulee

    (@pirulee)

    Version 2.1.6 should fix second finding.

    Thread Starter gabor123

    (@gabor123)

    same error here:
    /wp-content/plugins/simple-post-gallery/vendor/10quality/wpmvc-mvc/src/Traits/RelationshipTrait.php on line 183

    Thread Starter gabor123

    (@gabor123)

    Am I the only one around here who still on php 5.4? 🙂

    Plugin Author pirulee

    (@pirulee)

    You have been the only one reporting php 5.4 issues 🙂

    Php 5.6 is the most used and people tend to migrate to php 7 now days, so we have been coding with these versions in mind.
    https://wordpress.org/about/stats/

    I’ll make the fix either later today or tomorrow. 🙂

    We forgot that ::class is supported from 5.5 and on, this has been giving you troubles.

    • This reply was modified 6 years, 8 months ago by pirulee.
    Plugin Author pirulee

    (@pirulee)

    Version 2.1.7 has the fix for the last reported issue.

    Thread Starter gabor123

    (@gabor123)

    And now it is working.
    Thank you! 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Parse error after last update’ is closed to new replies.