Hi,
We have development server and production server. Both server have same version and third-party libs.
In the development server, We are using user_module and safecracker module together for a member to edit his profile. It works fine in our dev. For instance, we define first_name, last_name as member fields, and define other field “faculty_rank_channel_cf” as channel field in the gbcb_member_profiles channel. After login, I can modify those of the fields and save the changed values after I submit the form.
I migrate the above code to our production website. I can only change the faculty_rank which is channel field, but not the value of the custom fields (first_name, last_name) after I submit the form. The code works in our development server, but not the production server.
Can anyone can help us!
Following is my code.
{if logged_in}
{exp:user:edit form:id="edit_profile_form" form:name="edit_profile_form"
return="{gbcb_template_path}/edit_profile/success” screen_name_password_required=“no”
error_page=”{gbcb_template_path}/error_template”
onsubmit=“return validateForm()”}
<table>
<tbody>
{exp:safecracker channel="gbcb_member_profiles"
url_title="{username}” logged_out_member_id=”{member_id}”
preserve_checkboxes=“no” include_jquery=“no”
safecracker_head=“yes”
return=”{gbcb_template_path}/edit_profile/success”}
<tr class=“alt”>
<td valign=“top”>
<font color=”#ff0000”>*</font>
<label for=“first_name”>First Name:</label>
(e.g. John)
</td>
<td valign=“top”>
<input type=“text” name=“first_name” id=“first_name” value=”{first_name}” size=“30” maxlength=“100” class=“required”>
</td>
</tr>
<tr class=“alt”>
<td valign=“top”>
<font color=”#ff0000”>*</font>
<label for=“last_name”>Last Name:</label>
(e.g. Smith)
</td>
<td valign=“top”>
<input type=“text” name=“last_name” id=“last_name” value=”{last_name}“size=“30” maxlength=“100” class=“required”>
</td>
</tr>
<tr class=“alt”>
<td valign=“top”>
<font color=”#ff0000”>*</font>
<label for=“faculty_rank_channel_cf”>Faculty Rank:</label>
(e.g. Assistant Professor,Associate Professor, Full Professor
</td>
<td valign=“top”>
<input type=“text”
name=“faculty_rank_channel_cf”
id=“faculty_rank_channel_cf”
value=”{faculty_rank_channel_cf}”
size=“30”
maxlength=“100” class=“required”>
</td>
</tr>
<tr>
<td> </td>
<td>
<input type=“submit” name=“submit” value=“Submit” />
</td>
</tr>
{/exp:safecracker}
</tbody>
</table>
{/exp:user:edit}
{/if}