Installed latest dev. Then tried to update some non crm modules. During run of update.php, i got:

Fatal error: Class 'crm_core_contact_handler_field_contact' not found in ...\modules\crm_core\modules\crm_core_contact\includes\views\handlers\crm_core_contact_handler_field_contact_type.inc on line 6

Comments

Anonymous’s picture

Assigned: Unassigned »

Just did a recent pull from git to get the latest version of crm_core that is installed on a vanilla Drupal 7 and was then able to run update.php without any errors.

What happens if you disable the crm_core module and then run update.php?

Thanks for helping us to test this module we really appreciate your feedback \ O /

Best, Paul

zeezhao’s picture

Hi. I am using the dev version of 2012-May-02 listed on project homepage.

update.php ran fine without crm_core.

I also get the same error when trying to activate CRM core for search via: admin/config/search/settings
I clicked tick boxes by "CRM Core Activity" & "CRM Core Contact", and then pressed "Save Configuration", and then got:

Fatal error: Class 'crm_core_contact_handler_field_contact' not found in ...\crm_core\modules\crm_core_contact\includes\views\handlers\crm_core_contact_handler_field_contact_type.inc on line 6
dealancer’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this issue using recent dev version.

This problem can be caused by views, that have not been updated yet. Try to go to the views page and revert all crm core views. Also try to empty all cache tables. Make sure you are using recent views version.

If this won't help, please, tell us:

1) Is it a new installation of crm core, or have you updated it from the previous version?
2) What modules are enabled. You can check it using drush command 'drush pmi'?

zeezhao’s picture

done all you've suggested above.

It turns out that in: crm_core\modules\crm_core_contact\includes\views\handlers

crm_core_contact_handler_field_contact.inc was called called crm_core_contact_handler_field_contact.in

[I am using crm_core-7.x-1.x-dev.tar.gz] So I change extension to .inc, and error disappeared.

dealancer’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Glad that problem is solved.

I am no sure why you have different filename spelling. I checked recent *.zip and *.tar.gz files and could not find anything wrong with filenames, thus I am closing this issue.