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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • warning 'htmlspecialchars expects string' on contribution submission
Pages: [1]

Author Topic: warning 'htmlspecialchars expects string' on contribution submission  (Read 3492 times)

chrism

  • Guest
warning 'htmlspecialchars expects string' on contribution submission
August 06, 2008, 05:37:41 am
Submitting either a live or test contribution on the Sandbox returns a htmlspecialchars warning at the final submission step. To recreate:
A) Correctly fill in a Live contribution page and proceed to final submit button; or
B) Correctly fill in a Test contribution page and proceed to final submit button; or
C) Leave some required fields blank, and click Next on the first page.

Observe the error messages:
A)
warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/drupal-6.civicrm.org/public
/sites/sandbox.civicrm.org/modules/civicrm/packages/HTML/Common.php on line 144.

Payment Processor Error message: 10002:Security error

B)
warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/drupal-6.civicrm.org/public
/sites/sandbox.civicrm.org/modules/civicrm/packages/HTML/Common.php on line 144.

Payment Processor Error message: 10759:Gateway Decline

C)

warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/drupal-6.civicrm.org/public

Please correct the following errors in the form fields below:

    * Card Number is a required field.
    * Security Code is a required field.
    * Expiration Date is a required field.
    * Card Type is a required field.


chrism

  • Guest
Re: warning 'htmlspecialchars expects string' on contribution submission
August 06, 2008, 05:55:44 am
Also note, that even though an Error message was received for this contribution page - which would lead one to believe that no contribution was processed and no changes where made to the database - if the contribution on behalf of an organization is entered, then the organization record is created and a relationship is made between the organization and the contact.

This is a separate issued from teh htmlspecialchars() issue I think.

Desired behaviour is that no organization is created if the payment processor returns as error.

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: warning 'htmlspecialchars expects string' on contribution submission
August 12, 2008, 03:27:02 am
I have this also, alpha installed  in Joomla! 1.5.5.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • warning 'htmlspecialchars expects string' on contribution submission

This forum was archived on 2017-11-26.