| Author |
Message |
|
richardl
|
Post subject: Purchase Orders Truncating Posted: Mon Oct 18, 2010 8:10 am |
|
Joined: Fri Oct 15, 2010 8:31 am Posts: 29
|
|
Hi,
I am trying to enter a large purchase order. The order has a lot of items, (109). Whenever I save the order, and then bring it up on the Purchase order manager, it says the value is $0. Then when I open it the order only lists the first 53 items, the rest have disappeared. If I try and add any items over the 53 and save it, whenever I repoen it, it has been truncated back down to 53. Is there a limit on the PO items?
|
|
 |
|
 |
|
richardl
|
Post subject: Re: Purchase Orders Truncating Posted: Mon Oct 18, 2010 8:26 am |
|
Joined: Fri Oct 15, 2010 8:31 am Posts: 29
|
|
UPDATE:- If I delete two items to bring it down to 51 items it shows the correct total in the Purchase order manager.
In summary: >53 items, PO truncated to 53 items, order value show as 0 in PO manager 52 Items, PO not truncated, but PO value show as 0 in PO manager 51 or less, all OK
|
|
 |
|
 |
|
dave
|
Post subject: Re: Purchase Orders Truncating Posted: Tue Oct 19, 2010 1:18 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3506 Location: Colorado, US
|
|
Check your php error log, there is no restriction on the length of a PO. I have used suhosin (hardened PHP) and that application restricted the number of POST and GET entries. I had to up my counts so the entire POST and GET variables were not lost. It looks like you have reached a limit on the form post variables and the input string is becoming truncated by your server. The total field is at the end of the POST variable string and if it is truncated, it will save a value of 0.
Dave
|
|
 |
|
 |
|
richardl
|
Post subject: Re: Purchase Orders Truncating Posted: Tue Oct 26, 2010 7:08 am |
|
Joined: Fri Oct 15, 2010 8:31 am Posts: 29
|
Yep, it is Suhosin. Added following to php.ini and all fine Code: [suhosin] suhosin.post.max_vars = 2500 suhosin.get.max_vars = 250
|
|
 |
|
 |
|
tkj365
|
Post subject: Re: Purchase Orders Truncating Posted: Wed Mar 14, 2012 11:51 pm |
|
Joined: Sun Mar 04, 2012 10:16 am Posts: 6
|
|
Same issue, not using Suhosin yet; any suggestions?
|
|
 |
|
 |
|
tkj365
|
Post subject: Re: Purchase Orders Truncating Posted: Thu Mar 15, 2012 7:26 pm |
|
Joined: Sun Mar 04, 2012 10:16 am Posts: 6
|
|
Apparently PHP defaults max_input_vars to around 1000. I solved this by adding:
max_input_vars = 5000
to the end of my php.ini file.
|
|
 |
|
 |
|