Author Topic: limit to add custom fields  (Read 17231 times)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #30 on: March 15, 2013, 04:28:38 am »
Perfect!  Thanks! 

pcbob

  • Beginner
  • *
  • Posts: 18
Re: limit to add custom fields
« Reply #31 on: April 03, 2013, 04:13:28 am »
Pro that works perfect thanks. Not sure if this is happening to anyone else but, when I add it to a product I see a white textarea but not text, the text I had created is underneath the box, To solve this just click save and it will magically appear in the textarea box. It impressed a client LOL

driver.by

  • Beginner
  • *
  • Posts: 2
Re: limit to add custom fields
« Reply #32 on: June 06, 2013, 09:41:01 am »
Hello, but there is a limit to add custom fields to a product? you can increase it?

I've solved the problem with customfields limitation. Basically there is limit of 131 customfields, then "Invalid Token save" error is occured.
The reason is maximum variables limitation of a POST request. You can change the php.ini variable "max_input_vars" (it may not be there, just add it). Set it to 2000 (1000 is default) and you could add more.

AntiCZ

  • Beginner
  • *
  • Posts: 5
Re: limit to add custom fields
« Reply #33 on: June 06, 2013, 16:28:58 pm »
I also had to make more php.ini changes:

php_admin_value max_input_vars 2000
php_value suhosin.request.max_array_index_length 128
php_value suhosin.post.max_array_index_length 128
php_value suhosin.request.max_vars 2000
php_value suhosin.post.max_vars 2000


EvgenVirtuemart

  • Beginner
  • *
  • Posts: 1
Re: limit to add custom fields
« Reply #34 on: October 13, 2013, 12:40:04 pm »
   
I have the same problem with a limit. Could you explain more what file to change the settings? where is it located? Thank you
I also had to make more php.ini changes:

php_admin_value max_input_vars 2000
php_value suhosin.request.max_array_index_length 128
php_value suhosin.post.max_array_index_length 128
php_value suhosin.request.max_vars 2000
php_value suhosin.post.max_vars 2000



AntiCZ

  • Beginner
  • *
  • Posts: 5
Re: limit to add custom fields
« Reply #35 on: November 15, 2013, 14:35:13 pm »
You can set it in php.ini on the server or in .htaccess or via php funtion ini_set();

kemkoy

  • Beginner
  • *
  • Posts: 1
Re: limit to add custom fields
« Reply #36 on: January 17, 2014, 15:50:54 pm »
Hi Guys

Please which of the php script parameters do i need to append to get this to work.

I am having the same issues.

Please help me, I am stuck

Thanks

kona333

  • Beginner
  • *
  • Posts: 17
Re: limit to add custom fields
« Reply #37 on: May 25, 2017, 11:48:28 am »
Was there any fix to this?

I tried the php.ini additions, didn't work. I tried changing the _virtuemart_product_customfields - customfield_value    varchar(2500)  to varchar(4000)
That did nothing. Not sure if I did that correct.

So any other solution for having more custom fields data? It probably is stopping saving at about 2500 characters. VirtueMart 3.0.18

Thanks

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9839
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: limit to add custom fields
« Reply #38 on: May 31, 2017, 07:42:38 am »
Just update, the new vm3.2 has "text" instead of varchar, so "unlimited" space :-)
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kona333

  • Beginner
  • *
  • Posts: 17
Re: limit to add custom fields
« Reply #39 on: June 08, 2017, 05:43:42 am »
Unfortunately the problem still persists in v3.2.2. Saving custom fields just takes me back to dashboard, assuming at about the 2500 character mark.

Anything else I can try, maybe directly on the database to change it? I've tried to pay a few coders but they just wasted my time.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: limit to add custom fields
« Reply #40 on: June 08, 2017, 13:01:23 pm »
I have just installed VM3.2.3Rev9574  (from SVN) and varchar(4095) is used for custom_value

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

kona333

  • Beginner
  • *
  • Posts: 17
Re: limit to add custom fields
« Reply #41 on: June 09, 2017, 07:07:24 am »
Yep mines the same as below, this under virtuemart_customs

But just won't save. I tried 6095 as well, made no different so maybe this issue isn't the varchar limit?



iskye81

  • Beginner
  • *
  • Posts: 26
Re: limit to add custom fields
« Reply #42 on: June 14, 2017, 17:08:37 pm »
I'm also up against this as well. I have a custom field with a large number of values and once I add over a certain amount of values (80+) the product simply refuses to save. I've tried all the php.ini / .htaccess suggestions from here and elsewhere. None of them make a difference. I'm working on a full upgrade of a website, but this bug has now completely stalled my progress as I can't make any modifications to the products affected as they simply won't save. This was never an issue in VM1. Can't say I'm a fan of the whole custom fields approach at all. Any help on offer would be appreciated.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: limit to add custom fields
« Reply #43 on: June 14, 2017, 18:21:07 pm »
 @iskye81 check your server php resources. See   http://forum.virtuemart.net/index.php?topic=126888
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

kona333

  • Beginner
  • *
  • Posts: 17
Re: limit to add custom fields
« Reply #44 on: June 15, 2017, 12:40:17 pm »
Adding this to php.ini didn't fix ot for me

php_admin_value max_input_vars 2000
php_value suhosin.request.max_array_index_length 128
php_value suhosin.post.max_array_index_length 128
php_value suhosin.request.max_vars 2000
php_value suhosin.post.max_vars 2000


Adding these to htaccess doesn't work, results in 500 server error.

php_value upload_max_filesize 64M
php_value post_max_size 96
php_value max_execution_time 180
php_value max_input_time 600
php_value max_input_vars 2000
php_value request.max_array_index_length 128
php_value post.max_array_index_length 128
php_value request.max_vars 2000
php_value post.max_vars 2000