• Resolved andypp

    (@andypp)


    Hi, and thank you for your great plugin!

    I’m using Redis Object Cache version 2.6.1 on a WordPress installation running PHP 7.2.34.
    According to the plugin page, PHP 7.2 is still supported.

    However, after enabling object caching, my site crashes with this fatal error:

    PHP Parse error: syntax error, unexpected ” (T_ENCAPSED_AND_WHITESPACE), expecting ‘-‘ or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /wp-content/object-cache.php on line 2078

    I downloaded the plugin again from ww.wp.xz.cn to ensure the file wasn’t corrupted, but the error persists.
    Looking at the changelog for 2.6.1, I noticed you mention:

    Fixed PHP 7.2 heredoc parsing error

    Could this be a similar edge case or a missed fix?

    Thanks again for your work!

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Thanks for the report. This is a weird one. It’s a bug inside of PHP 7.2 actually.

    I’ll release a fix later today!

    Thread Starter andypp

    (@andypp)

    Thanks for the quick fix, everything works perfectly now! Much appreciated 🙏

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

The topic ‘Fatal syntax error in object-cache.php on PHP 7.2 — Redis Object Cache 2.6.1’ is closed to new replies.