Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13339

CRM_Core_PseudoConstant warnings

    Details

      Description

      On a clean Drupal 7.23 install (MySQL 5.1.69, Apache 2.2.15, PHP 5.3.3, CentOS 6.4), I get numerous PHP warnings when creating a custom field, modifying a profile, enabling or disabling Drupal modules from the Drupal module administration screen, or running the Drupal database upgrade script. I have tried clearing caches, rebuilding the menu, and restarting the server, and it always returns; however, I was not able to reproduce the bug on the sandbox.

      The errors all relate to class CRM_Core_PseudoConstant missing a method in civicrm_handler_filter_pseudo_constant->construct() at line 54 of civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc :

      Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CRM_Core_PseudoConstant' does not have a method 'locationType' in civicrm_handler_filter_pseudo_constant->construct() (line 54 of /var/www/html/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc).

      Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CRM_Core_PseudoConstant' does not have a method 'gender' in civicrm_handler_filter_pseudo_constant->construct() (line 54 of /var/www/html/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc).

      Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CRM_Core_PseudoConstant' does not have a method 'preferredLanguage' in civicrm_handler_filter_pseudo_constant->construct() (line 54 of/var/www/html/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc).

      (and more like this, running through various other methods)

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              choster JJC
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: