[Skip to main content](#vessel-content)

#   Edit Profile Issues with Custom Fields

##

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#211409](#211409) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211409 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")* was created by *[sapura](/forum/user/37805-sapura "View sapura's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.2
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : Chrome 44.0.2403.155
-- Error-message(debug-mod must be tuned on) -- : Warning: array_values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208

Hi, please help on these issues regarding the custom fields for users.

On registration, it works perfectly fine. But not in the Edit Profile.

[ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;30&#95;04&#95;am.png](/forum/attachment/25957) ](/forum/attachment/25957 "...0&#95;30&#95;04&#95;am.png")

I have set conditional custom fields as follows:
[ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;16&#95;11&#95;am.png](/forum/attachment/25955) ](/forum/attachment/25955 "...0&#95;16&#95;11&#95;am.png")

if Occupation = others
- [none]

if Occupation = student
- school
- coursefacultystudent
- studentid
- studentpass

if Occupation = teacher
- school2
- coursefacultyteacher
- staffid
- staffpass

In the Edit Profile, the conditional are not in place and all fields are shown at the same time.
When I try to fill out only 1 set of fields, and submit, I get the error message shown.

[ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;20&#95;11&#95;am.png](/forum/attachment/25956) ](/forum/attachment/25956 "...0&#95;20&#95;11&#95;am.png")

Appreciate your help. Thanks!

- [ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;16&#95;11&#95;am.png](/forum/attachment/25955) ](/forum/attachment/25955 "...0&#95;16&#95;11&#95;am.png") [ ](/forum/attachment/25955?download=1 "...0&#95;16&#95;11&#95;am.png")
- [ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;20&#95;11&#95;am.png](/forum/attachment/25956) ](/forum/attachment/25956 "...0&#95;20&#95;11&#95;am.png") [ ](/forum/attachment/25956?download=1 "...0&#95;20&#95;11&#95;am.png")
- [ ![Screen&#95;Shot&#95;2015-08-13&#95;at&#95;10&#95;30&#95;04&#95;am.png](/forum/attachment/25957) ](/forum/attachment/25957 "...0&#95;30&#95;04&#95;am.png") [ ](/forum/attachment/25957?download=1 "...0&#95;30&#95;04&#95;am.png")

Last edit: 11 years 2 months ago by [sapura](/forum/user/37805-sapura "View sapura's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#211433](#211433) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211433 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

The warning comes from the "profileGroup" user plugin you're using. That's not a HikaShop plugin.

Regarding the fact that you see fields regardless of their "display limited to" setting, add the code: Code:

$requiredFields = array(); $validMessages = array(); $values = array('user' =&gt; $user); $this-&gt;fieldsClass-&gt;checkFieldsForJS($extraFields, $requiredFields, $validMessages, $values); $this-&gt;fieldsClass-&gt;addJS($requiredFields, $validMessages, array('user'));

after the code: Code:

$fieldsClass-&gt;addJS($null,$null,$null); $fieldsClass-&gt;jsToggle($extraFields['user'],$user,0);

in the file plugins/system/hikashopuser/hikashopuser.php and that should fix that behavior.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago [\#211488](#211488) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211488 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi, Thanks for the reply.

There are however 2 locations of the code in hikashopuser.php Code:

$fieldsClass-&gt;addJS($null,$null,$null); $fieldsClass-&gt;jsToggle($extraFields['user'],$user,0);

I have tried adding to both locations and I get this error when I tried to Edit the Profile Page

> Fatal error: Call to a member function checkFieldsForJS() on null in /Applications/AMPPS/www/plugins/system/hikashopuser/hikashopuser.php on line 341

Line 341 after adding the code is referring to Code:

$this-&gt;fieldsClass-&gt;checkFieldsForJS($extraFields, $requiredFields, $validMessages, $values);

Once I removed the code from the 2nd place, the Edit Profile page is ok, but the fields are again not adhering to the 'display limited to' setting.

Appreciate your help.
Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#211502](#211502) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211502 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

Ah yes, use that code instead: Code:

$requiredFields = array(); $validMessages = array(); $values = array('user' =&gt; $user); $fieldsClass-&gt;checkFieldsForJS($extraFields, $requiredFields, $validMessages, $values); $fieldsClass-&gt;addJS($requiredFields, $validMessages, array('user'));

You can add it to both locations.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago [\#211668](#211668) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211668 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi, I've added to both locations this new code and it is still not working.
/index.php/your-profile/profile?layout=edit

Am I the only one who encounter this issue? ![:(](/media/kunena/emoticons/5.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#211706](#211706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211706 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

Ok, also change the line: Code:

$data .= '&lt;div class="control-group"&gt;&lt;div class="control-label"&gt;&lt;label&gt;'.$fieldsClass-&gt;getFieldName($oneExtraField).'&lt;/label&gt;&lt;/div&gt;&lt;div class="controls"&gt;';

to: Code:

$data .= '&lt;div class="control-group hikashop_registration_' . $fieldName. '_line" id="hikashop_user_' . $fieldName. '"&gt;&lt;div class="control-label"&gt;&lt;label&gt;'.$fieldsClass-&gt;getFieldName($oneExtraField).'&lt;/label&gt;&lt;/div&gt;&lt;div class="controls"&gt;';

and that should work. It now does on my end with these modifications.

Everyone has the issue but you're the first one noticing it as most people don't need fields limited by other fields for the user profile.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago [\#211763](#211763) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211763 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi thanks but it is still showing all fields with the new code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#211788](#211788) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211788 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

We don't have the problem anymore on our end.
Please provide a link to the page, a test account and a FTP access so that we can analyze the issue on your website.
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#211957](#211957) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#211957 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

I was able to log on your website, but I couldn't access the Display&gt;Custom fields area on your backend and you didn't provide a FTP access so I'm not able to debug the issue.
Could you also provide that please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago [\#212001](#212001) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212001 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi, sorry about that. I have enabled access for the Custom Fields.
Also, you can use Components &gt; extplorer to access the files.
Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 2 months ago [\#212226](#212226) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212226 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

Sorry for the delay.
I'm now able to access the custom fields, but I'm not able to access extplorer.
When I click on the link in the components menu, I'm getting redirected back to the dashboard of the backend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 2 months ago [\#212297](#212297) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212297 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi, I've enabled access for extplorer. Please check again. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 1 month ago [\#212347](#212347) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212347 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

I've checked and I could see that you were missing some other patch we had before. I've added them all for you and it's now working.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 1 month ago -  11 years 1 month ago [\#212372](#212372) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212372 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi, thanks.

Yes I see the fields are now conditional.
However, if I select "Teacher", the dropdown for school has no options in it.

Also, Can you advise what are the patches you applied? I will need to apply this to the production server.
Thank you so much.

[ ![edit-profile-screenshot.png](/forum/attachment/26121) ](/forum/attachment/26121 "...screenshot.png")

- [ ![edit-profile-screenshot.png](/forum/attachment/26121) ](/forum/attachment/26121 "...screenshot.png") [ ](/forum/attachment/26121?download=1 "...screenshot.png")

Last edit: 11 years 1 month ago by [sapura](/forum/user/37805-sapura "View sapura's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 1 month ago -  11 years 1 month ago [\#212443](#212443) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212443 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

Hi,

That's an issue with the chozen library. I don't know why it does that.
Try to add that CSS on your website:
\#hikashop_user_school .chzn-container-single-nosearch{ width: auto !important; }

If that doesn't help, you can also turn off the "use chozen library" setting of the HikaShop configuration and that should circumvent the problem.

Regarding the patch, you can simply copy the file plugins/system/hikashopuser/hikashopuser.php to your other website in order to fix the issue.

Last edit: 11 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sapura](/forum/user/37805-sapura "View sapura's Profile")**
- [![sapura's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37805-sapura "View sapura's Profile") Topic Author
- [ Offline](/forum/user/37805-sapura)

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 1 month ago [\#212461](#212461) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  Replied by *[sapura](/forum/user/37805-sapura "View sapura's Profile")* on topic *[Edit Profile Issues with Custom Fields](/forum/33-customers/878740-edit-profile-issues-with-custom-fields#212461 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.2 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 44.0.2403.155 -- Error-message(debug-mod must be tuned on) -- : Warning: array&#95;values() expects parameter 1 to be array, null given in /Applications/AMPPS/www/plugins/user/profileGroup/profileGroup.php on line 208  Hi, please help on these issues regarding the custom fields for users.  On registration, it works perfectly fine. But not in the Edit Profile.  I have set conditional custom fields as follows:  if Occupation = others - &#91;none&#93;  if Occupation = student - school - coursefacultystudent - studentid - studentpass  if Occupation = teacher - school2 - coursefacultyteacher - staffid - staffpass  In the Edit Profile, the conditional are not in place and all fields are shown at the same time. When I try to fill out only 1 set of fields, and submit, I get the error message shown.  Appreciate your help. Thanks!")*

The chosen library was already turned off. And the CSS didn't work.

But I managed to get it working with
\#school2_chzn { width:219px !important;}
Apparently something forces a width:0 on this div.

Thanks for your help in this. Really appreciated.
Cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84Nzg3NDAtZWRpdC1wcm9maWxlLWlzc3Vlcy13aXRoLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.501 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
