Parse error: syntax error

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #190391

    Arthur Kelly III
    Expired Member
    Post count: 6

    Updated GD this morning and now my site only shows the following error. Uploading a new copy has the same issue.

    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php on line 2473

    Line 2473 is
    $default_post_type = geodir_get_posttypes()[0];

    #190404

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    sorry about this problem. We just realized that line of code is not compatible with some older version of PHP. You must have one below 5.6

    Stiofan is releasing a version with a fix that will work for very old versions of PHP too.

    It will be available in the next few minutes.

    Thanks for spotting this.

    #190450

    Arthur Kelly III
    Expired Member
    Post count: 6

    Ah, ok. My host only has 5.5 available in cPanel. Thanks for the quick fix!

    #190457

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount