I'm setting up a new site with RedHen CRM. This used to work fine but as I've been developing the website this error has started to occur. The steps are:

- Open a contact
- Go to "+ Add Connection"
- Choose connection type (e.g. Personal Connection)
- Start typing in Contacts autocomplete field

Immediately throws the following:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://www.example.com/redhen/relation/autocomplete/child/redhen_contact/redhen_contact/4
StatusText: OK
ResponseText: 
Fatal error:  Call to a member function entityType() on a non-object in /home/example/public_html/sites/all/modules/redhen/modules/redhen_relation/redhen_relation.module on line 331

Any help is much appreciated.

Comments

danair’s picture

I haven't managed to solve this but I've rebuilt my site and it hasn't reoccurred.

danair’s picture

Further update for anyone else who has this issue and stumbles across this.

Having rebuilt the site and all gone fine for a while, I suddenly experienced the same issue. This happened after installing the Devel module. I disabled the module and everything is working again. So it seems there's some kind of conflict.

I can live without Devel although it's annoying. I would love to know if anyone else has experienced this.

CountPacMan’s picture

Status: Active » Postponed (maintainer needs more info)

Unable to reproduce error. Added devel module, 50 auto-generated users, and made some of them RedHen contacts. Contacts autocomplete field works as expected. On a related note, I have seen this error before in a similar setting, but clearing cache resolved it. Are you still seeing this error?