Register    Login    Forum    Search    FAQ

Board index » General Usage » Payables




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Purchase Orders Truncating
 Post Posted: Mon Oct 18, 2010 8:10 am 
Offline

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?


Top 
 Profile  
 
 Post subject: Re: Purchase Orders Truncating
 Post Posted: Mon Oct 18, 2010 8:26 am 
Offline

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


Top 
 Profile  
 
 Post subject: Re: Purchase Orders Truncating
 Post Posted: Tue Oct 19, 2010 1:18 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3498
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


Top 
 Profile  
 
 Post subject: Re: Purchase Orders Truncating
 Post Posted: Tue Oct 26, 2010 7:08 am 
Offline

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


Top 
 Profile  
 
 Post subject: Re: Purchase Orders Truncating
 Post Posted: Wed Mar 14, 2012 11:51 pm 
Offline

Joined: Sun Mar 04, 2012 10:16 am
Posts: 6
Same issue, not using Suhosin yet; any suggestions?


Top 
 Profile  
 
 Post subject: Re: Purchase Orders Truncating
 Post Posted: Thu Mar 15, 2012 7:26 pm 
Offline

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.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 6 posts ] 

Board index » General Usage » Payables


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: