Answers.Body: <p>This has been fixed in <a href="https://craftcms.com/changelog#build2804" rel="nofollow">Craft 2.6.2804</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T13:52:27.953Z
Answers.LastActivityDate: 2016-07-28T13:52:27.953Z
Answers.UserDisplayName: Brandon Kelly
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T12:22:40.207Z
Answers.Text: 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 `)`.
Answers.UserDisplayName: Brandon Kelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T09:53:31.343Z
Answers.LastActivityDate: 2016-07-28T09:58:31.983Z
Answers.LastEditDate: 2016-07-28T09:58:31.983Z
Answers.UserDisplayName: Pim S.
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-28T05:27:08.007Z
Comments.Text: "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.
Comments.UserDisplayName: Brad Bell
Tags: <php><error><updates>
Title: PHP error after one click update
ThreadText: # 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 `)`.  
  
  ---
  
  