Hello, I hope you can help me, I have an order with more than 300 lines, but when creating a shipment of that order it only passes me 159 lines, leaving aside the rest. Any of you happened to them? dolibarr has a limit for shipments ?. Thank you
Hi aitorxs,
Well, I’ve never dealt with that number of lines. I see nothing special in terms of limit in the code. At which stage does it pass only this number of lines ? Is it when action=create or when action=add (third and final step of shipment creation)? This knowledge could help better identify the cause of the trouble.
Regards,
Marc
Hello!
I already solved the problem I had, it happens that in expeditions the sending of the values from the order is done using the POST method, therefore more data are being sent to more lines.
PHP by default supports up to 1000 variables in both POST and GET methods.
The quickest solution would be to increase the value in the php.ini configuration
max_input_vars = 1000
This happens in action = add
Cheers!
So, in order to set it up, we should follow the steps:
- Stop the virtual server; (DoliWampStop) you can find it in the start menu.
- Navigate to the folder with php.ini, (for windos is in C:\dolibarr\bin\apache\apache2.4.xx\bin)open it, and edit it. Add a line under the section ; Resource Limits ; with max_input_vars = 5000
- Save it.
- Start the server using DoliWampStart.
- If it doesn’t work, perform a restart of the virtual server.