Hi there, i am new to Drupal and I am facing a problem that i can't sort out!
I installed the event module as I wanted to be able to build up a calendar of events. I also installed CCK.
I created a custom field for my Event node, let's say "Venue of the event" as text field. Then I created an event and filled up my custom "Venue..." field with a text. When i wanted to see a preview or submit it, i have an error message which says "Illegal value for Venue of the event".

Don't know what to do...need help...

Thanks,

S@lime

Comments

salime’s picture

Title: "Illegal value for" error message for custom field » "Illegal value for" error message while creating custom field for a node

No one to help me out? I am desperated. I have tried to change the types in the database but for no avail...

arnulphe’s picture

I came accross the same issue. In my case the reason for this error was quite simple, not a bug at all: once you have created a "text field" with CCK, Drupal expect a text value, therefore you should get the error ONLY if
* you enter something else in your form
* you did limit the choice to some values in the "allowed values list" when you created the custom text field

Do you have a html editor installed ? If so, it might have automaticaly filled the "allowed values list" with some tag, in my case a
tag. Just remove the editor when you create your custom text field.

I hope this can help.

salime’s picture

Merci Arnulphe!

Indeed, I installed nicEdit html editor. I removed it when creating the custom field (it showed a <BR> that I deleted) and then I was able to create content without any error.

Merci encore et bon WE!

Salime

PS : J'utilisais SPIP avant et je découvre l'univers de Drupal :-)

yched’s picture

Status: Active » Fixed

OK, fixed then.
Thx arnulphe.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.