Hey, im running more or less basic 5.x installation with a few modules,

the issue is:
I created several new fields in the profile section, however when i go to update new information in these fields it dosent save them.
However, when I register a new user and fill out that inforamtion, I can create and edit those fields no problem.

site: http://www.paciber.org/drupal5/index.php?q=user/6

The reason this important is I want users to be able to browse and access other users information, that will be frequently updated.
Should I use some sort of module for that?

Comments

vm’s picture

Using Drupal 5.0 or Drupal 5.1 ?

I noticed some anomolies that were introduced with the 5.1 installation with the profile.module.

Deterius’s picture

Im using 5.0

Joe One’s picture

I can create new profile fields, edit them in the user/1/edit screen, i can enter text in the fields, hit save, Drupal tells me the changes have been saved. When i return to the user/1/edit screen, the fields are empty.

Drupal 5.1

Web Server
Type	Microsoft IIS
Versie	6.0
PHP
Versie	4.3.11
Magic Quotes GPC	On
Magic Quotes Runtime	Off
Memory Limit	
Register Globals	Off
Safe Mode	Off
Session Cache Limiter	none
Session Save Handler	user
Upload Max Filesize	2M
Extensions
CURL Support	Ingeschakeld
GD Version	bundled (2.0.28 compatible)
FreeType Support	Ingeschakeld
XML Support	Ingeschakeld
Zip Support	Uitgeschakeld
Zlib Support	Ingeschakeld
Database
Type	MySQL
Versie	4.1.7-nt
Charset	utf8
Collation	utf8_general_ci
Create Temporary Tables	Disallowed
Lock Tables	Disallowed
Joe One’s picture

Hi,

I have found a work-around. Deterius does the categorie of the custom profile field contain spaces?
The action of the form which update the profile fields breaks at the space. Change the name of the categorie to something with no spaces and the form works!

Hope this helps. Does this qualify for a bug report ?

regards,

Joe

vm’s picture

no bug. underscores or dashes should be used as a seperators.

The name of the field. The form name is not shown to the user but used internally in the HTML code and URLs. Unless you know what you are doing, it is highly recommended that you prefix the form name with profile_ to avoid name clashes with other fields. Spaces or any other special characters except dash (-) and underscore (_) are not allowed. An example name is "profile_favorite_color" or perhaps just "profile_color".

Joe One’s picture

Thank you for you reply Kenn.

d.estermann’s picture

The author of this thread and myself have problems with the "Category" field where the description sais:

The category the new field should be part of. Categories are used to group fields logically. An example category is "Personal information".

This description including the example is ok, but the implementation in 5.1 is not :-(
Unfortunately, the category contained in the form post action is truncated at the first space. With the example above, the form tag looks like this:

<form id="user-edit" enctype="multipart/form-data" action="/user/30/edit/Personal" method="post">

The correct code should probably produce:

<form id="user-edit" enctype="multipart/form-data" action="/user/30/edit/Personal+Information" method="post">

Cheers,
Daniel

sgomez’s picture

Thank You for pointing that out. I had been struggling with this for hours. It would have been nice if the module displayed a warning or a help-text tip warning about using spaces.

Thank you very much.

vm’s picture

it does, I pulled the quote in my last post from the profile fields description text.

pnc999’s picture

Hi,
I'm a newbie at Drupal and this issue had me flummoxed for a while too until I stumbled upon this post. Anyway what confused me was this explanation under the category text box:

The category the new field should be part of. Categories are used to group fields logically. An example category is "Personal information".

So I followed the explanation and used a space. I didn't realise that the information under the form name also referred to the category.

Thanks for clearing that all up for me though!