• Hi.
    I am using WordPress 3.5.1 and I have a plugin with Google Client API.
    I have a line of code that works pretty much everywhere (other setups), except this particular environment.

    $current_file->getExportLinks()[‘application/pdf’];

    Reference: https://developers.google.com/drive/manage-downloads

    Error:
    Parse error, syntax error, unexpected ‘[‘ in my_file.php on line 123

    I am almost sure that this has nothing to do with Google: it works on other machines, and it is a “parse error” not some runtime issue. even wrapping a try catch block won’t help.

    Any ideas anyone?

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