Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Syntax error, unexpected '$lock' (T_VARIABLE), expecting function (T_FUNCTION)

Started by Muut Archive 11 years ago · 3 replies · 940 views
11 years ago

Are you running Grav from github? Can you try doing a composer update from the Grav main folder?

11 years ago

I download Grav core+ plugin admin and run Grav whith MobaXTerm

11 years ago

Hi, it seams like a really strange error. Maybe this is connected with your PHP version? Further it can be due to a corrupted file. Can you double-check this?

If nothing helps, maybe it then has to do something with the syntax being used at line L205, File.php. You may try with

PHP
$lock = $block ? LOCK_EX : (LOCK_EX | LOCK_NB);

but I don't know whether this helps.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago