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) »
  • There is a validation error with your html input.
Pages: 1 2 [3]

Author Topic: There is a validation error with your html input.  (Read 8127 times)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: There is a validation error with your html input.
October 01, 2012, 10:16:42 am
What's the source of the content you're putting in the field? Are you copying and pasting from Word (which often causes this type of error). Since this is a custom field we don't (yet) have a way to tell IDS to ignore it.
Protect your investment in CiviCRM by  becoming a Member!

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: There is a validation error with your html input.
October 02, 2012, 08:10:35 am
I did copy and paste from a website, but pasted into the html source window, to strip away any html and save as text only.  When I save it in this format, I have no problem.  However, when I go back to the same text, and edit it, adding some html formatting, then I cannot save it.  That is when I get the error.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: There is a validation error with your html input.
October 02, 2012, 02:37:12 pm
If it's important to be able to save HTML to that custom field, one option is to completely disable the IDS feature. You an do this by editing your civicrm.settings.php file. Find this line:

define( 'CIVICRM_IDS_ENABLE', 1);

and change it to

define( 'CIVICRM_IDS_ENABLE', 0);

Please note that IDS stands for Intrusion Detection System - so disabling it may open your site to hackers inputting malicious javascript into your database (if you have public facing forms).

We don't currently have another solution for this. If you have developer resource you could look at providing a patch which conditionally appends custom "Note" fields to the IDS exceptions array (currently hard-coded in CRM/Core/IDS.php).
 
Protect your investment in CiviCRM by  becoming a Member!

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: There is a validation error with your html input.
October 03, 2012, 12:51:50 pm
Will leave IDS enabled.  It is not critical to have html functionality in this case.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: There is a validation error with your html input.
April 04, 2013, 12:29:16 pm
Client was complaining they couldn't paste this in to a wysiwyg on event rego page.
Quote
Participants to the previous xxxxxx already have an account on our web-site. Please 'log in' before proceeding with the registration. In case you forgot your password please request a new one 'here'.
It kept spitting the dummy. I tried pasting in to html directly, via Word.
Finally just started typing in each bit and saving.
Finally it came down to that last word.

If i typed in 'here' (with quote marks) it failed, if i typed it in without them , ie just h e r e - it worked.

I tried typing 'here' on demo just in case - no issues.

I changed demo to tinymce - no issues.

Just flagging it here in case it ever mimics a problem someone else has.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Re: There is a validation error with your html input.
April 04, 2013, 01:54:42 pm
The problem could arise if your client is using CKEditor prior to version 4.1 and Internet Explorer 10. IE10 will NOT play nicely with old versions of CKEditor.
--
Joe

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: There is a validation error with your html input.
April 04, 2013, 01:56:06 pm
thanks for suggestion - they should be on latest of everything and it wasn't IE in this case
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • There is a validation error with your html input.

This forum was archived on 2017-11-26.