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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Date problems: checkBirthDateFormat()
Pages: [1]

Author Topic: Date problems: checkBirthDateFormat()  (Read 675 times)

johanbeckers

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.3.2
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a
  • PHP version: 5.2.14
Date problems: checkBirthDateFormat()
April 27, 2011, 03:17:08 am
Hi all ...
On a new install (v4 on D7) I had everything working fine.
Until I configured the date formats to European style here:
civicrm/admin/setting/date?reset=1

Now when I view a contact I get following error at the top of the page:
Code: [Select]
Notice: Undefined variable: formatMapping in CRM_Utils_Date->checkBirthDateFormat() (line 836 of /home/user/domains/mydomain.com/sites/all/modules/civicrm/CRM/Utils/Date.php).
I checked the date of birth format here:
civicrm/admin/setting/preferences/date?reset=1
and selected the format: dd/mm/yy

Still I'm getting this error.
I just tried in the Sandbox, I modified the date formats just like I have them in my own install, but not getting any errors.
Anyone any ideas?
Thanks in advance,
Johan.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Date problems: checkBirthDateFormat()
April 27, 2011, 10:19:06 am
This is a valid notice - the referenced variable was deprecated (not defined) but not removed. In general Drupal 7 by default shows these notices and we're working on cleaning them up as we find them. However if you see others and the fix is obvious, would be great if you file and issue w/ a patch.

Issue for this is: http://issues.civicrm.org/jira/browse/CRM-7978
You can remove this array element on line 836 if you want to patch yourself:

 'dateParts' => $formatMapping


Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Date problems: checkBirthDateFormat()

This forum was archived on 2017-11-26.