• Resolved christianmemije

    (@christianmemije)


    Versions 2.0.3 and 2.0.3.1 both give me the following error:

    Parse error: syntax error, unexpected ':' .../wp-content/themes/justwrite/functions.php on line 1018

    Version 2.0.2.1 works perfectley fine.
    Might it have something to due with the PHP version? I have PHP 5.4.45 installed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter christianmemije

    (@christianmemije)

    So turns out the shorthand ternary operator isn’t supported in the PHP version on my server, so I just changed line 1018
    from:
    $format = get_post_format() ? : 'standard';

    to:
    $format = get_post_format() ? get_post_format() : 'standard';

    Since it is a a very simple fix, hopefully it can implemented in next version to avoid compatibility issues.

    Thanks 🙂

    Theme Author acosmin

    (@acosmin)

    ok, thanks for the heads up 🙂

    Thread Starter christianmemije

    (@christianmemije)

    Just a clarification. I was actually using PHP 5.2, not PHP 5.4.45, which explains the incompatibility. Sorry for the confusion.

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

The topic ‘Parse error: syntax error, unexpected ':'’ is closed to new replies.