Answers.Body: <p>This appears to be identical to <a href="https://issues.civicrm.org/jira/browse/CRM-20558" rel="nofollow noreferrer">CRM-20558</a>.  Upgrading to 4.7.20 or applying the fix there should solve your problem.  Note that CiviCRM is not tested against PHP 7.1, so you may want to consider using PHP 7.0 instead.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-14T13:04:13.613Z
Answers.Text: Thank you Jon -- I'll update to 4.7.20 post-haste and report back later today. I will also ratchet PHP down to 7.0 regardless of whether yesterday's Civi update does the trick.
Answers.UserDisplayName: Prónay
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-14T17:54:11.717Z
Answers.Text: While the 4.7.20 upgrade gave me a minor new problem (addressed in another thread, missing indices warning), I'm thrilled to report the Contribution Summary problem was fixed by the upgrade. We're finally able to run the Contribution Summary report again without server errors. Thank you Jon!
Answers.UserDisplayName: Prónay
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-14T19:48:52.503Z
Answers.Text: Yeah, I got bit by the missing_indices warning too.  I just hid it for a month; it seems likely that 4.7.21 will have a fix.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-25T02:32:30.627Z
Answers.Text: By the way, I switched from PHP 7.1 to PHP 7.0 and that may have fixed a different problem. Draft/Unscheduled Mailings and Scheduled & Sent Mailings were both throwing 500 errors every time I tried to load them, but after switching to PHP 7.0, they load fine. Waiting to hear from backend users as to how well it's working now.
Answers.UserDisplayName: Prónay
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-14T03:41:13.770Z
Answers.LastActivityDate: 2017-06-14T03:41:13.770Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <blockquote>
    <p>Uncaught Error: [] operator not supported for strings in
    /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php:580</p>
  </blockquote>
  
  <p>Don't know whether this started with Civi 4.7.19, WP 4.8, or something else -- but now I get this 500 error whenever I try to run a Contribution Summary (Reports / Contribution Reports).</p>
  
  <p>Other Civi summary reports (e.g. Constituent Summary, Event Participants List) run as expected. Other Civi Contribution reports also run as expected. It seems Contribution Summary is our only misbehaving report.</p>
  
  <p>I've disabled all plugins other than CiviCRM and activated Twenty Seventeen theme, but that doesn't stop the 500 error.</p>
  
  <blockquote>
    <p>Stack trace: [13-Jun-2017 08:57:17 America/New_York] PHP Fatal error:
    Uncaught Error: [] operator not supported for strings in
    /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php:580
    Jun 13, 12:53:49 PHP Warning: Failed to send an email, wp_mail()
    returned FALSE in /wp-content/plugins/error-log-monitor/Elm/Plugin.php
    on line 200
    5 [REDACTED] in /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php
    on line 580
    4 /wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Submit.php(74):
    CRM_Core_Form->mainProcess()
    3 /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(447): CRM_Report_Form_Contribute_Summary->postProcess()
    2 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php(756):
    CRM_Report_Form->postProcess()
    1 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(3249): CRM_Report_Form->buildQuery()
    0 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(2626): CRM_Report_Form_Contribute_Summary->groupBy()</p>
  </blockquote>
  
  <p>It is possible we've had this problem since well before the current Civi and WordPress iterations were released/installed, but hadn't noticed it before because we're still somewhat new to Civi.</p>
  
  <p>I activated debugging and backtracing, but no error info displayed when running Contribution Summary.</p>
  
  <p>I assume Contribution Summary is working fine for everyone else. What should I try next?</p>
  
Tags: <civireport><reports><500>
Title: Contribution Summary throws 500 error
ThreadText: # Contribution Summary throws 500 error
  
  (Asked by: username_0 on 2017-06-13)
  
  > Uncaught Error: [] operator not supported for strings in
  > /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php:580
  
  Don't know whether this started with Civi 4.7.19, WP 4.8, or something else -- but now I get this 500 error whenever I try to run a Contribution Summary (Reports / Contribution Reports).
  
  Other Civi summary reports (e.g. Constituent Summary, Event Participants List) run as expected. Other Civi Contribution reports also run as expected. It seems Contribution Summary is our only misbehaving report.
  
  I've disabled all plugins other than CiviCRM and activated Twenty Seventeen theme, but that doesn't stop the 500 error.
  
  > Stack trace: [13-Jun-2017 08:57:17 America/New\_York] PHP Fatal error:
  > Uncaught Error: [] operator not supported for strings in
  > /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php:580
  > Jun 13, 12:53:49 PHP Warning: Failed to send an email, wp\_mail()
  > returned FALSE in /wp-content/plugins/error-log-monitor/Elm/Plugin.php
  > on line 200
  > 5 [REDACTED] in /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php
  > on line 580
  > 4 /wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Submit.php(74):
  > CRM\_Core\_Form->mainProcess()
  > 3 /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(447): CRM\_Report\_Form\_Contribute\_Summary->postProcess()
  > 2 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form/Contribute/Summary.php(756):
  > CRM\_Report\_Form->postProcess()
  > 1 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(3249): CRM\_Report\_Form->buildQuery()
  > 0 /wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(2626): CRM\_Report\_Form\_Contribute\_Summary->groupBy()
  
  It is possible we've had this problem since well before the current Civi and WordPress iterations were released/installed, but hadn't noticed it before because we're still somewhat new to Civi.
  
  I activated debugging and backtracing, but no error info displayed when running Contribution Summary.
  
  I assume Contribution Summary is working fine for everyone else. What should I try next?
  
  **Tags:** civireport, reports, 500
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-06-14. Score: 2 | Accepted answer
  
  This appears to be identical to [CRM-20558](https://issues.civicrm.org/jira/browse/CRM-20558). Upgrading to 4.7.20 or applying the fix there should solve your problem. Note that CiviCRM is not tested against PHP 7.1, so you may want to consider using PHP 7.0 instead.
  
  > **Comments:**
  > **username_0**: Thank you Jon -- I'll update to 4.7.20 post-haste and report back later today. I will also ratchet PHP down to 7.0 regardless of whether yesterday's Civi update does the trick.  
  > **username_0**: While the 4.7.20 upgrade gave me a minor new problem (addressed in another thread, missing indices warning), I'm thrilled to report the Contribution Summary problem was fixed by the upgrade. We're finally able to run the Contribution Summary report again without server errors. Thank you Jon!  
  > **username_1**: Yeah, I got bit by the missing_indices warning too.  I just hid it for a month; it seems likely that 4.7.21 will have a fix.  
  > **username_0**: By the way, I switched from PHP 7.1 to PHP 7.0 and that may have fixed a different problem. Draft/Unscheduled Mailings and Scheduled & Sent Mailings were both throwing 500 errors every time I tried to load them, but after switching to PHP 7.0, they load fine. Waiting to hear from backend users as to how well it's working now.  
  
  ---
  
  