Jump to content

Server Error 500 When Generating Multi-Pdf And Changing Multi-Status


andersburn

Recommended Posts

I have this problem, that is most likely connected with my PHP-settings.

Some times when we have maybe 100-150 new orders, we use the "generate PDF file by status" funktion, it works more times than not, but some times it'll make a server error 500 every time i try to generate it.

 

Restarting the PHP service solves it every time. PHP execution time isn't the problem because the error shows up way before the time runs out. And i've tried to change the Ram settings too.

 

What will make my server more stabil? What magic setting is it that i don't know of ? :) 

 

We are using a digital ocean server, running LEMP and Cloudflare. PHP 5.6. We never use more that 25% CPU, 50% ram or 1% SSD-speed.

 

i've had the same problem with changing statuses of 40+ orders at a time, but this is easily solved by ether only changing 20 at a time; or changing the PHP-setting: PHP execution time.

 
I've used much less powerfull shared host that don't have this error :( 
Link to comment
Share on other sites

Well i tried stuff, i made a new server with:

max_execution_time = 100

max_input_time = 30

memory_limit = 100M

 

That one couldn't do 270 orders at one time. 

So i tried to max_execution_time, that didn't do anything.

So i get it 2x ram, and it worked.

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...