Adding values to Custom field - Access forbidden

  • Posts: 223
  • Thank you received: 26
  • Hikaserial Subscription Hikashop Business
2 years 10 months ago #332662

-- 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?

This message contains confidential information

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 10 months ago #332664

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.

The following user(s) said Thank You: oxido

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 26
  • Hikaserial Subscription Hikashop Business
2 years 10 months ago #332687

Thank you Nicolas,
The limitation was in php.ini, I was able to change that from cpanel in php ini editor
from 1000 -> 5000 in max_input_vars

Attachments:
Last edit: 2 years 10 months ago by oxido. Reason: Added some details

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum