Answers.Body: <p>OK my bad. Upgraded to 5.6.1 and problems disappear.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-29T18:14:36.423Z
Answers.LastActivityDate: 2018-10-29T18:14:36.423Z
Answers.UserDisplayName: Tony Horrocks
Body: <p>Getting this error when trying to add contacts to a group from a report.</p>
  
  <p>Table 'childpsy_civicrm.Array' doesn't exist</p>
  
  <p>It's this 'xxx_civicrm.Array' doesn't exist that puzzles me. I'm getting it on another site, but not on others. The CiviCRM Demo site works fine. But that's 5.8.1</p>
  
  <p>Also when viewing a contact, to see what groups they are in....the smart group membership does not work. Using v 5.6. </p>
  
  <p>Can anyone repeat this? </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-29T16:22:49.413Z
Comments.Text: Normally "Array" is what you get when the code is expecting a variable to be a string but it's an array, so php converts it to the literal string "Array". The backtrace should have the filename and line number - see if you can debug what's actually in the array and it might give a clue.
Comments.UserDisplayName: Demerit
Tags: <civireport><error>
Title: Getting an error trying to add contacts to a group from an activity report.
ThreadText: # Getting an error trying to add contacts to a group from an activity report.
  
  (Asked by: username_0 on 2018-10-29)
  
  Getting this error when trying to add contacts to a group from a report.
  
  Table 'childpsy\_civicrm.Array' doesn't exist
  
  It's this 'xxx\_civicrm.Array' doesn't exist that puzzles me. I'm getting it on another site, but not on others. The CiviCRM Demo site works fine. But that's 5.8.1
  
  Also when viewing a contact, to see what groups they are in....the smart group membership does not work. Using v 5.6.
  
  Can anyone repeat this?
  
  **Tags:** civireport, error
  
  > **Comments:**
  > **username_1**: Normally "Array" is what you get when the code is expecting a variable to be a string but it's an array, so php converts it to the literal string "Array". The backtrace should have the filename and line number - see if you can debug what's actually in the array and it might give a clue.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-10-29. Score: 2
  
  OK my bad. Upgraded to 5.6.1 and problems disappear.
  
  
  ---
  
  