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 »
  • 3.4 and 4.0 Releases Testing »
  • Undefined FILTER_FORMAT_DEFAULT
Pages: [1]

Author Topic: Undefined FILTER_FORMAT_DEFAULT  (Read 1104 times)

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Undefined FILTER_FORMAT_DEFAULT
March 11, 2011, 09:51:34 am
Seeing an error with the views integration with CiviCRM 4.0a2:

Code: [Select]
Notice: Use of undefined constant FILTER_FORMAT_DEFAULT - assumed 'FILTER_FORMAT_DEFAULT' in civicrm_handler_field_markup->render() (line 13 of /var/www/html/drupal/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_markup.inc).

I'm not positive, but this fix (found here: http://drupal.org/node/1002424) seems to fix:

Code: [Select]
bash-3.2# diff civicrm_handler_field_markup.inc.orig civicrm_handler_field_markup.inc
13c13
<         return check_markup($value, FILTER_FORMAT_DEFAULT, FALSE);
---
> return check_markup($value, filter_fallback_format(), FALSE);

I'd file a bug, but I'm not seeing a way to file one for 4.0.

Comments?

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: Undefined FILTER_FORMAT_DEFAULT
March 11, 2011, 09:53:43 am
can you file a bug and attach the patch. We'll fix the version so it applies to 4.0

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

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Undefined FILTER_FORMAT_DEFAULT
March 11, 2011, 10:40:45 am
Done.

http://issues.civicrm.org/jira/browse/CRM-7761

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Undefined FILTER_FORMAT_DEFAULT

This forum was archived on 2017-11-26.