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 Drupal Modules (Moderator: Donald Lobo) »
  • 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
Pages: [1]

Author Topic: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.  (Read 1155 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 12:32:36 pm
In 4.3.1
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CRM_Contribute_PseudoConstant' does not have a method 'contributionType' in civicrm_handler_filter_pseudo_constant->construct() (line 54 of /home/xxx/public_html/beta/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc).


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 12:41:54 pm
drupal 6 or 7? That psuedoconstant has been renamed to financialType
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 12:43:01 pm
D7 - wonder if it is the entity module or webform.  It's a warning so no backtrace.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 12:44:25 pm
open

/public_html/beta/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc

& look to swap contributionType to financialType

you should log a bug report too
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Solved : 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 01:21:33 pm
Ahh...I think I found it :civicrm/drupal/modules/views/components/civicrm.contribute.inc has contributionType in a couple of places.  Changed them to FiancialType and much happier.
 //Financial Type
    $data['civicrm_contribution']['financial_type'] = array(
    'title' => t('Contribution Type'),
                                                               'real field' => 'financial_type_id',
    'help' => t('The Type of Contribution made, ie Member Dues, Event Fees etc'),
    'field' => array(
      'handler' => 'civicrm_handler_field_pseudo_constant',
      'click sortable' => TRUE,
      'pseudo class' => 'CRM_Contribute_PseudoConstant',
      'pseudo method' => 'contributionType',
    ),
    'argument' => array(
      'handler' => 'views_handler_argument',
    ),
    'filter' => array(
      'handler' => 'civicrm_handler_filter_pseudo_constant',
      'allow empty' => TRUE,
      'pseudo class' => 'CRM_Contribute_PseudoConstant',
      'pseudo method' => 'contributionType',
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 01:25:13 pm
Can you paste the link to the JIRA ticket on this thread once logged
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Submitted Bug: 'CRM_Contribute_PseudoConstant' Warning when enabling a module.
April 30, 2013, 01:30:11 pm
submited: http://issues.civicrm.org/jira/browse/CRM-12476

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • 'CRM_Contribute_PseudoConstant' Warning when enabling a module.

This forum was archived on 2017-11-26.