Body: <p>Has anyone else seen the above error under Joomla and CiviCRM 5.11.0 when running the Event Report: Attendee List?  I've done a bit of troubleshooting and it appears it seems when a custom form value is empty and is then in the form of an empty array rather than an empty string.  A workaround is to test for the variable type and, if it is an empty array, replace it with an empty string.  There seems no longer to be a Joomla demo site, so can't replicate it.<a href="https://i.sstatic.net/0dJfg.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0dJfg.jpg" alt="$attributes values"></a></p>
  
  <p>I plan to raise this as an issue, too.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-26T17:51:58.860Z
Comments.Text: For demos there is https://joomla.demo.civicrm.org, although it seems an older version.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-02T12:16:38.827Z
Comments.Text: I am seeing this error too on Wordpress at this URL: https://mydomain.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Freport%2Finstance%2F2
Comments.UserDisplayName: CTG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-04T10:07:55.020Z
Comments.Text: it's there on drupal as well, using a recent CiViCRM version of 5.21
Comments.UserDisplayName: Doka
Tags: <custom-fields><civireport>
Title: Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../civicrm/packages/HTML/Common.php on line 144
ThreadText: # Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../civicrm/packages/HTML/Common.php on line 144
  
  (Asked by: username_0 on 2019-03-26)
  
  Has anyone else seen the above error under Joomla and CiviCRM 5.11.0 when running the Event Report: Attendee List? I've done a bit of troubleshooting and it appears it seems when a custom form value is empty and is then in the form of an empty array rather than an empty string. A workaround is to test for the variable type and, if it is an empty array, replace it with an empty string. There seems no longer to be a Joomla demo site, so can't replicate it.[![$attributes values](https://i.sstatic.net/0dJfg.jpg)](https://i.sstatic.net/0dJfg.jpg)
  
  I plan to raise this as an issue, too.
  
  **Tags:** custom-fields, civireport
  
  > **Comments:**
  > **username_1**: For demos there is https://joomla.demo.civicrm.org, although it seems an older version.  
  > **username_2**: I am seeing this error too on Wordpress at this URL: https://mydomain.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Freport%2Finstance%2F2  
  > **username_3**: it's there on drupal as well, using a recent CiViCRM version of 5.21  
  
  ---
  
  ## 0 answers
  
  