- Posts: 280
- Thank you received: 42
Adding values to Custom field - Access forbidden
5 years 4 months ago #332662
by oxido
Adding values to Custom field - Access forbidden was created by oxido
-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.3.28
Hi,
I have a custom field for product, type: Multiple Dropdown and I get this error now: Access forbidden.
It worked before, and now is not working anymore.
Is there a limited number of values that I can add to the custom field?
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.3.28
Hi,
I have a custom field for product, type: Multiple Dropdown and I get this error now: Access forbidden.
It worked before, and now is not working anymore.
Is there a limited number of values that I can add to the custom field?
This message contains confidential information
Please Log in or Create an account to join the conversation.
5 years 4 months ago #332664
by nicolas
Replied by nicolas on topic Adding values to Custom field - Access forbidden
Hi,
While there is no limit in HikaShop's code, there are two limits:
- the type of the field_values column in the database which will restrict the number of characters that can be used. This can change based on the version of HikaShop you had first installed on your website. But by default, even if you started with really old versions of HikaShop, it's still a few thousand values you should be able to enter in the custom field.
- Your server / PHP might limit the number of input fields that can be received by the website in one request:
stackoverflow.com/questions/9399315/how-...post-variable-in-php
stackoverflow.com/questions/12277231/max...ter-passed-in-a-post
With suhosin, that limit is apparently 1000 parameters. With 3 input fields by value, plus all the default input fields of the custom field form page, you can easily reach that limit with a couple hundred values.
While there is no limit in HikaShop's code, there are two limits:
- the type of the field_values column in the database which will restrict the number of characters that can be used. This can change based on the version of HikaShop you had first installed on your website. But by default, even if you started with really old versions of HikaShop, it's still a few thousand values you should be able to enter in the custom field.
- Your server / PHP might limit the number of input fields that can be received by the website in one request:
stackoverflow.com/questions/9399315/how-...post-variable-in-php
stackoverflow.com/questions/12277231/max...ter-passed-in-a-post
With suhosin, that limit is apparently 1000 parameters. With 3 input fields by value, plus all the default input fields of the custom field form page, you can easily reach that limit with a couple hundred values.
The following user(s) said Thank You: oxido
Please Log in or Create an account to join the conversation.
5 years 4 months ago - 5 years 4 months ago #332687
by oxido
Replied by oxido on topic Adding values to Custom field - Access forbidden
Last edit: 5 years 4 months ago by oxido. Reason: Added some details
Please Log in or Create an account to join the conversation.
Time to create page: 0.184 seconds