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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error in calling CRM_Utils_Date::checkBrithDateFormat
Pages: [1]

Author Topic: Error in calling CRM_Utils_Date::checkBrithDateFormat  (Read 1166 times)

Triquanta

  • Guest
Error in calling CRM_Utils_Date::checkBrithDateFormat
January 13, 2010, 06:16:55 am
After upgrading to 3.1beta4 I get the following error on a profile page:

warning: call_user_func(CRM_Utils_Date::checkBrithDateFormat) [function.call-user-func]: First argument is expected to be a valid callback in /public_html/sites/default/files/civicrm/templates_c/en_US/en_GB/%%10/105/10548F31%%Edit.tpl.php on line 41.

It seems that the function CRM_Utils_Date::checkBrithDateFormat can not be found. Is there someone who knows what is going on?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error in calling CRM_Utils_Date::checkBrithDateFormat
January 13, 2010, 06:41:11 pm
Looks like you've got cached 3.0 templates (since that function exists in 3.0 but not in 3.1). Try deleting all folders / files under templates_c.
Protect your investment in CiviCRM by  becoming a Member!

Triquanta

  • Guest
Re: Error in calling CRM_Utils_Date::checkBrithDateFormat
January 14, 2010, 01:05:46 am
I already did that, but that had no result. The function does still exist in 3.1. In the file CRM/Utils/Date.php there is a function named checkBirthDateFormat( $format = null ).

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error in calling CRM_Utils_Date::checkBrithDateFormat
January 14, 2010, 12:04:46 pm
My 'greps' show that the mis-spelled function exists in 3.0 - CRM_Utils_Date::checkBrithDateFormat) - and that the function name and calls to it were corrected in 3.1 to CRM_Utils_Date::checkBirthDateFormat).

So please check your copy of CRM/Utils/Date.php and see which function it contains and see if you find any references to the mis-spelled function in your 3.1 codebase.

Also make sure you don't have an older copy of the CiviCRM codebase anywhere UNDER your sites/all/modules folder - as Drupal will potentially load anything there. Finally, I would triple check that you've deleted all files/folders in /public_html/sites/default/files/civicrm/templates_c
Protect your investment in CiviCRM by  becoming a Member!

Triquanta

  • Guest
Re: Error in calling CRM_Utils_Date::checkBrithDateFormat
January 15, 2010, 01:13:18 am
Oops, sorry. Didn't see the wrong spelling. I had a custom profile template based on /CRM/Profile/Form/Dynamic.tpl and there was the reference to the wrong function. Should have seen that myself. Thanks for helping!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error in calling CRM_Utils_Date::checkBrithDateFormat

This forum was archived on 2017-11-26.