CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Warnings when I try to create constituant sumary report
Pages: [1]

Author Topic: Warnings when I try to create constituant sumary report  (Read 9301 times)

FastPhil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.04
  • CMS version: Drual 7
  • MySQL version: 5.154
  • PHP version: 5.3.5
Warnings when I try to create constituant sumary report
August 11, 2011, 06:27:06 pm
Warning: htmlspecialchars() expects parameter 1 to be string, array given in HTML_Common->_getAttrString() (line 144 of /var/www/sites/all/modules/civicrm/packages/HTML/Common.php).

I get two of those in an orange box at the top of the page when I try to use the constituent summary report.  any thoughts on what is wrong.

ddunn

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.0.7-dev
  • PHP version: 5.3.4
Re: Warnings when I try to create constituant sumary report
April 12, 2012, 01:22:02 am
I'm also seeing this error offered, running 4.1.1 on Drupal 7. Would be grateful of any suggestions.

britebyte

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 2
  • CiviCRM version: Several 3.4+, 4.1+
  • CMS version: Drupal 6, Drupal7
  • MySQL version: Several 5.1+
  • PHP version: Several 5.2+
Re: Warnings when I try to create constituant sumary report
April 13, 2012, 09:16:24 am
I have the same error as well.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Warnings when I try to create constituant sumary report
April 13, 2012, 03:45:05 pm
Can you replicate the same on demo.civicrm.org

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

britebyte

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 2
  • CiviCRM version: Several 3.4+, 4.1+
  • CMS version: Drupal 6, Drupal7
  • MySQL version: Several 5.1+
  • PHP version: Several 5.2+
Re: Warnings when I try to create constituant sumary report
April 16, 2012, 06:29:34 am
Quote from: Yashodha Chaku on April 13, 2012, 03:45:05 pm
Can you replicate the same on demo.civicrm.org

No, it works fine on the demo site for me.

FastPhil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.04
  • CMS version: Drual 7
  • MySQL version: 5.154
  • PHP version: 5.3.5
Re: Warnings when I try to create constituant sumary report
April 16, 2012, 07:34:03 am
I am sorry I might have helped with posting our findings.  My ISP switched servers to a new server with much tighter restrictions and they had to remove some of them for this to work.  I wish I had the technical details for you but it was done by the ISP.

The Next Wave

  • I post occasionally
  • **
  • Posts: 111
  • Karma: -9
  • I'm just here to change the world.
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress 3.8.1
  • MySQL version: 5.1.72-cll
  • PHP version: 5.4.25
Re: Warnings when I try to create constituant sumary report
April 04, 2013, 01:19:27 pm
Getting same message with 4.3 Beta 5
2 lines- when trying to generate a report:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/Common.php on line 144

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Warnings when I try to create constituant sumary report
April 04, 2013, 04:36:12 pm

What are the sequence of steps to get this error. I went to the constituent summary report and did not get this message with sample data

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Warnings when I try to create constituant sumary report
May 08, 2013, 02:25:54 pm
I get this error on some of my reports for a Drupal 6 - CiviCRM 4.2.9 installation (a moderate sized install that started life back in the 3.x series, a few years ago).

The argument to htmlspecialchars is an empty array, and the argument to the containing function _getAttrString is this:

Code: [Select]
Array  (
                    [name] => custom_10_value
                    [type] => text
                    [value] => Array
                        (
                        )

                    [id] => custom_10_value
                    [class] => form-text
)

So I'm guessing this comes up with custom fields, and that empty 'value' array that is getting left in somehow.

In this installation, custom_10 field is from a All Contact Types custom field group (a group called Legacy Import).

Does that help?

moj0rising

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.3.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.3
Re: Warnings when I try to create constituant sumary report
June 13, 2013, 12:05:47 am
I am seeing the same warnings with a 4.3.3 install.

Does anyone have an update on the situation? Has anyone been able to work around it?

Thanks,
Mike

dshong21

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: drupal 7.31
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Warnings when I try to create constituant sumary report
March 09, 2015, 04:49:33 am
I get this error when I make a custom field searchable. I want the custom field in my reports but I guess if you don't need it you can make your custom fields unsearchable. I don't have a real solution though unfortunately.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Warnings when I try to create constituant sumary report

This forum was archived on 2017-11-26.