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
Comment #1
markus_petrux commentedThere should be something odd in your installation. Let's see how does it look content.admin.inc on 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?
Comment #2
darukat commentedcontent.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().
Comment #3
darukat commentedApparently there was a corrupted file. I re-installed the whole website and it works properly. Thanx for your reply.