I updated Craft to version 2.6.2798.
Since then I'm getting a PHP error:
Parse error: syntax error, unexpected '[' in /craft/app/fieldtypes/BaseElementFieldType.php on line 428
PHP version on the server is 5.53.
Any ideas to fix that issue?
I updated Craft to version 2.6.2798.
Since then I'm getting a PHP error:
Parse error: syntax error, unexpected '[' in /craft/app/fieldtypes/BaseElementFieldType.php on line 428
PHP version on the server is 5.53.
Any ideas to fix that issue?
I got exactly the same issue, not sure what PHP version i'm on though. It is possible to access the login screen, but after getting redirected to the dashboard it shows a HTTP 500 error message and with 'devmode on' it gives me this same error on whatever page off my site I try to access.
EDIT: Ok, this may be a bit of a radical solution, but I just deleted the following on line 428 in the file:
'criteria' => [
'locale' => $targetLocale
],
At least everything is working again... But a more substantiated solution would be nice ;)
[ to array( and ] to ).
– Brandon Kelly
Jul 28 '16 at 12:22