On a site that has never had IP Login or IP Address Field installed, I attempted to install IP Login 7.x-3.0 and IP Address Field 7.x-1.0-beta1 at the same time. I received the following error message:

FieldException: Attempt to create a field of unknown type field_ipaddress. in field_create_field() (line 110 of /modules/field/field.crud.inc).

The website encountered an unexpected error. Please try again later.

To resolve this issue, I had to uninstall and remove all data for both IP Login and IP Address Field, and then install IP Address Field first, followed by IP Login separately. Doing so completed the installation successfully.

Seems as though there is some type of weight issue that causes IP Login to attempt to complete its installation before IP Address Field is completely installed and available.

Comments

davidwhthomas’s picture

Thanks for the bug report, that's interesting,

IP Login 7.x-3.x has a dependency on the field_ipaddress module declared in the ip_login.info file.

I would assume that's sufficient to ensure field_ipaddress is installed first by Drupal - because it's a dependency.

I'm not certain, but perhaps there's a field info cache issue.

I will add a field info cache clear prior to creating the field_ipaddress field aiming to ensure the field type provided by the field_ipaddress module is available during install.

Needs testing but hopefully that helps!

Cheers.

  • aa353e7 committed on 7.x-3.x
    Issue #2539952: Error when installing IP Login and IP Address Field...