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

#   Custom field error - field "0" not secured

##

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile") Topic Author
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

11 years 11 months ago [\#179545](#179545) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#179545 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")* was created by *[korzo](/forum/user/34428-korzo "View korzo's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- Error-message(debug-mod must be tuned on) -- : field "0" not secured

There is an error "field "0" not secured" when trying to save custom field with "Display limited to" set to custom field of type with multiple choices.

How to reproduce:
- Create product custom field with field type Checkbox or Multiple Dropdown
- Create second product custom field, save it and then set "Display limited to" to custom field from step 1, set at least 1 value and save it.

Problem is in the file administrator\components\com_hikashop\classes\field.php on line 1019.
For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to
**hikashop\_secureField()** with integer argument results in die().

Here is var_dump($fieldOptions) for field type dropdown
[ ![dropdown.jpg](/forum/attachment/20681) ](/forum/attachment/20681 "dropdown.jpg")

and var_dump($fieldOptions, $value) for field type Checkbox.
[ ![checkbox.jpg](/forum/attachment/20682) ](/forum/attachment/20682 "checkbox.jpg")

- [ ![dropdown.jpg](/forum/attachment/20681) ](/forum/attachment/20681 "dropdown.jpg") [ ](/forum/attachment/20681?download=1 "dropdown.jpg")
- [ ![checkbox.jpg](/forum/attachment/20682) ](/forum/attachment/20682 "checkbox.jpg") [ ](/forum/attachment/20682?download=1 "checkbox.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 11 months ago [\#179646](#179646) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#179646 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

Hi,

Thanks for the report.
For the moment I fixed the value thanks to Code:

$fieldOptions = JRequest::getVar('field_options', array(), '', 'array'); foreach($fieldOptions as $column =&gt; $value) { if(is_array($value)) { foreach($value as $id =&gt; $val) { if($column != 'parent_value') hikashop_secureField($id); $fieldOptions[$column][$id] = strip_tags($val); }

I'll talk with Nicolas in order to get his opinion.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[ila.qs.ad](/forum/user/9576-ila-qs-ad "View ila.qs.ad's Profile")**
- [![ila.qs.ad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9576.jpg)](/forum/user/9576-ila-qs-ad "View ila.qs.ad's Profile")
- [ Offline](/forum/user/9576-ila-qs-ad)

Less More

- Posts: 7
- Thank you received: 0
-
-
-

11 years 9 months ago -  11 years 9 months ago [\#185323](#185323) by [ila.qs.ad](/forum/user/9576-ila-qs-ad "View ila.qs.ad's Profile")  Replied by *[ila.qs.ad](/forum/user/9576-ila-qs-ad "View ila.qs.ad's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#185323 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

Excuse me Jerome, I have the same problem with custom field. My question is: did you add this code or changed some other part of code?

Tks!

Last edit: 11 years 9 months ago by [ila.qs.ad](/forum/user/9576-ila-qs-ad "View ila.qs.ad's Profile").

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile") Topic Author
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

11 years 9 months ago [\#185329](#185329) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#185329 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

What is your version?
Issue I reported was fixed in later release of Hikashop 2.3.4.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#185333](#185333) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#185333 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

Hi,

That's right Korzo, the fix has been added by Nicolas into HikaShop 2.3.4 and is still present in HikaShop 2.3.5

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

10 years 11 months ago [\#221968](#221968) by [globalcpe](/forum/user/27583-globalcpe "View globalcpe's Profile")  Replied by *[globalcpe](/forum/user/27583-globalcpe "View globalcpe's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#221968 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

I have found this problem has resurfaced in HikaShop Business 2.6.0 [1511171458] and using Joomla 3.4.5 What kind of fix or workaround can you suggest please.

My site is currently in development and I am trying to build the event registration form and attach the product for the number of days at the conference and I am recieving this error just like its described above in the previous posts.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3Mjk5My1jdXN0b20tZmllbGQtZXJyb3ItZmllbGQtMC1ub3Qtc2VjdXJlZD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 11 months ago [\#221972](#221972) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#221972 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

Hi,

How did you configure your custom fields ?
Could you provide screenshots of their settings ?
Could you give a link to the registration page so that we could reproduce the problem on your website ?

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

10 years 1 month ago [\#248580](#248580) by [bigArman](/forum/user/38378-bigarman "View bigArman's Profile")  Replied by *[bigArman](/forum/user/38378-bigarman "View bigArman's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#248580 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

HikaShop Business 2.6.3 [1608060803]
Joomla! Version Joomla! 3.6.2 Stable

I'm getting the following message when saving custom filed type entry, with multi and or single drop down menus - "field "0" not secured". Is there a fix for this?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3Mjk5My1jdXN0b20tZmllbGQtZXJyb3ItZmllbGQtMC1ub3Qtc2VjdXJlZD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 3 weeks ago [\#251291](#251291) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field error - field "0" not secured](/forum/25-install-update/872993-custom-field-error-field-0-not-secured#251291 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : field &quot;0&quot; not secured  There is an error &quot;field &quot;0&quot; not secured&quot; when trying to save custom field with &quot;Display limited to&quot; set to custom field of type with multiple choices.  How to reproduce: - Create product custom field with field type Checkbox or Multiple Dropdown - Create second product custom field, save it and then set &quot;Display limited to&quot; to custom field from step 1, set at least 1 value and save it.  Problem is in the file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;field.php on line 1019. For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to hikashop&#95;secureField() with integer argument results in die().  Here is var&#95;dump($fieldOptions) for field type dropdown  and var&#95;dump($fieldOptions, $value) for field type Checkbox.")*

Hi,

Please update to the latest version and try again.
If you still have the issue please provide some screenshots of the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3Mjk5My1jdXN0b20tZmllbGQtZXJyb3ItZmllbGQtMC1ub3Qtc2VjdXJlZD90bXBsPW1hcmtkb3du) 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.258 seconds

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

[](#top)
