<p>This has been fixed in <a href="https://craftcms.com/changelog#build2804" rel="nofollow">Craft 2.6.2804</a>.</p>

CC BY-SA 3.0
2016-07-28T13:52:27.953Z
2016-07-28T13:52:27.953Z
Brandon Kelly
<p>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. </p>

<p>EDIT: Ok, this may be a bit of a radical solution, but I just deleted the following on line 428 in the file:</p>

<pre><code>    'criteria' =&gt; [
        'locale' =&gt; $targetLocale
    ],
</code></pre>

<p>At least everything is working again... But a more substantiated solution would be nice ;)</p>

CC BY-SA 3.0
2016-07-28T12:22:40.207Z
Looks like some PHP 5.4 syntax got into the release. We’ll get an update out ASAP that fixes this. Deleting these lines works, or changing `[` to `array(` and `]` to `)`.
Brandon Kelly
CC BY-SA 3.0
2016-07-28T09:53:31.343Z
2016-07-28T09:58:31.983Z
2016-07-28T09:58:31.983Z
Pim S.
<p>I updated Craft to version 2.6.2798.</p>

<p>Since then I'm getting a PHP error:</p>

<pre><code>Parse error: syntax error, unexpected '[' in /craft/app/fieldtypes/BaseElementFieldType.php on line 428
</code></pre>

<p>PHP version on the server is 5.53.</p>

<p>Any ideas to fix that issue?</p>

CC BY-SA 3.0
2016-07-28T05:27:08.007Z
"PHP version on the server is 5.53." You sure about that?  That error is a bug in Craft (just fixed for the next release) that indicates you're probably running PHP 5.3.x.
Brad Bell
<php><error><updates>
PHP error after one click update
# PHP error after one click update

(Asked by: username_0 on 2016-07-28)

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?

**Tags:** php, error, updates

> **Comments:**
> **username_1**: "PHP version on the server is 5.53." You sure about that?  That error is a bug in Craft (just fixed for the next release) that indicates you're probably running PHP 5.3.x.  

---

## 2 answers

### Answer by username_2 on 2016-07-28. Score: 3

This has been fixed in [Craft 2.6.2804](https://craftcms.com/changelog#build2804).


---

### Answer by username_3 on 2016-07-28. Score: 1

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 ;)

> **Comments:**
> **username_2**: Looks like some PHP 5.4 syntax got into the release. We’ll get an update out ASAP that fixes this. Deleting these lines works, or changing `[` to `array(` and `]` to `)`.  

---

