FieldException: Attempt to create a field of unknown type <em class="placeholder">list_text</em>. in field_create_field() (line 110 of /homepages/43/d503288075/htdocs/exercisetigermemorial/modules/field/field.crud.inc).
The website encountered an unexpected error. Please try again later.

Module does not install properly. Blocks are there, but no admin page.

Comments

Collins405’s picture

Issue summary: View changes
Collins405’s picture

Status: Active » Closed (works as designed)

Added field_info_cache_clear(); to paypal_donations.install to solve problem.

From this...

  $t = get_t();
  if (!field_info_field('field_paypal_transaction_id')) {
    $field = array(
      'field_name' => 'field_paypal_transaction_id',
      'type' => 'text',
    );

To...

  $t = get_t();
  if (!field_info_field('field_paypal_transaction_id')) {
  field_info_cache_clear();
    $field = array(
      'field_name' => 'field_paypal_transaction_id',
      'type' => 'text',
    );