• Resolved r1nk

    (@r1nk)


    Hello, just like the title saying, let’s say i want to download all completed orders pdf invoice in one click, the page will load for like 10sec then display this error.

    Service Unavailable
    PHP did not respond properly to the request. As a result, Apache considers the PHP-FPM service to be unavailable. 
    
    For specific information about the error, see the Apache error log at:
    
    /srv/users/SYSUSER/log/APPNAME/APPNAME_apache.error.log
    The root cause of this error is often slow PHP code. You should disable any plugins the app is using and check the app's PHP error log and PHP slow request log located at:
    
    /srv/users/SYSUSER/log/APPNAME/APPNAME_phpX.Y.error.log
    /srv/users/SYSUSER/log/APPNAME/APPNAME_phpX.Y.slow.log

    If i manually tick up to 30 orders, i can download those pdf invoice. More than that will display that error. Any idea? My memory already set to 1G.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! What is your timeout limit set to in PHP? What do these error logs that are referenced in the message say (APPNAME_phpX.Y.error.log / APPNAME/APPNAME_phpX.Y.slow.log) ?

    Depending on how many orders ‘all the completed orders’ is, what you want may be just too much. Most systems wouldn’t be able to handle a huge single PDF with data from hundreds (let alone thousands) of orders in it.
    In our Professional extension we have a feature that will process the orders into separate PDF files and then ZIP them after the task is done. That way the task is split into byte size subtasks that most systems have no issues with.

    Ewout

    Thread Starter r1nk

    (@r1nk)

    30secs. I changed it to 600secs, but still error. Guess 150 PDFs are too much to be handled.

    In (APPNAME_phpX.Y.error.log), the last line do shows PHP Fatal error: Maximum execution time of 600 seconds exceeded in….. In (APPNAME_phpX.Y.slow.log), im not sure how to intepret it. No fatal error whatsoever.

    So, the best & only solution to grab all those PDFs in one click is to upgrade to Professional?

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! The “PHP Fatal error: Maximum execution time of 600 seconds exceeded in” error is (unfortunately) exactly what it says – generating these 150 invoices in one PDF takes more than 5 minutes to complete.

    As a final try for the free version, you could try setting it to 0 instead of 600, which would let processes run as long as required.

    Otherwise, yes, Professional is your best bet. It also comes with outstanding service in case there’s anything else you need help with ??

    Ewout

    Thread Starter r1nk

    (@r1nk)

    OK, thanx for the reply.

    Last question though, i changed to 0 and the process only run about 10mins then error. But this time, i checked no Fatal error. Is it still because of that big process? Just wanna make sure that when i buy the Professional one, not the same issue gonna arise.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! The professional extension uses an entirely different process, making separate requests for each invoice via AJAX, storing them on the server and then at the end of it zip them up and download the zip. If the same issue would arise we can always assist in resolving it or refund the purchase if it really doesn’t work out. If you have any further questions about the professional extension, please send us an email at [email protected] as this forum is for the free plugin only.

    Ewout

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page error if download more than 30 PDFs at a time’ is closed to new replies.