After creating a cck field of type text or when attempting to configure a cck text field, the following error is displayed:

Fatal error: Call to undefined function content_field_form() in /home4/devgarde/public_html/sites/all/modules/cck/includes/content.admin.inc on line 1092

The specific example was after creating a Status field of type Text for a content type called Project - i.e., attempting to access mysite/admin/content/node-type/project/fields/field_status.

A similar error happens when the field type is numeric. No error occurs when the field type is datetime or image.

The site is in a root URL on a shared Linux hosting setup using Drupal version 6.14 showing no problems in the status report.

Comments

markus_petrux’s picture

Category: bug » support
Status: Active » Fixed

There should be something odd in your installation. Let's see how does it look content.admin.inc on line 1092

    module_load_include('inc', 'content', 'includes/content.node_form');
    $form_element = content_field_form($widget_form, $widget_form_state, $widget_field, 0);   // <--- line 1092

content_field_form() function is defined in includes/content.node_form.inc, which is suppossed to be loaded in line 1091, but it looks like it failed. Why?

darukat’s picture

content.admin.inc looks the same on lines 1091 & 1092 as your version.

content.node_form.inc is there and contains the function definition for content_field_form().

darukat’s picture

Status: Fixed » Closed (fixed)

Apparently there was a corrupted file. I re-installed the whole website and it works properly. Thanx for your reply.