Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

PDF Stamper – Timeout error

by

Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › PDF Stamper – Timeout error

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 11 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 6, 2012 at 10:02 pm #7087
    computercourage
    Member

    We’re in the process of moving our site over to WPEngine. The issue is that with the larger pdfs, the stamper will time out and generate a 502 Bad Gateway error. Is there any way to get the stamper to execute under 90 seconds, or do you have any other suggestions? Or is it at all possible to get the unencrypted code so that the WPEngine folks can maybe try their hand at it?

    Thanks.

    August 7, 2012 at 3:33 am #48119
    admin
    Keymaster

    If the server doesn’t have enough power to handle stamping of a large file then you will have this issue. Ideally it shouldn’t take more than 5-10 seconds to stamp a file if the server is powerful enough (the larger the file, the more power is needed). More details on this here:

    http://www.tipsandtricks-hq.com/wp-pdf-stamper/minimum-requirements-for-the-wp-pdf-stamper-plugin-104

    With that said, try the following options:

    1) Uncheck the “Enable PDF File Encryption” option if you have it checked. PDF file encryption requires good CPU resources so turning that off can help.

    2) Try using stamping method 2 for the “PDF Stamping Method” option.

    3) Some more helpful discussions on this topic here:

    https://support.tipsandtricks-hq.com/forums/topic/is-it-possible-to-speed-up-stamping-takes-30s

    August 7, 2012 at 5:00 pm #48120
    computercourage
    Member

    1) “Enable PDF File Encryption” is unchecked.

    2) Using method 2 doesn’t seem to make a difference.

    WPEngine loads the site much faster than my old host, so I don’t really think it’s a server power issue, though they do have a pretty stringent timeout limit. They’re willing to help work out this issue, but can’t do it if the code is encrypted.

    I have noticed that using the Manual Stamping in the Dashboard seems to have a higher success rate than using my custom code to generate the pdfs in the frontend. I’m using the suggested code here: http://www.tipsandtricks-hq.com/wp-pdf-stamper/third-3rd-party-integration-guide-10

    Which actually seems to be outdated, and might be part of the problem. Do you have an updated version of this code? I know that for one, this line isn’t applicable anymore:

    list ($status, $value) = explode (“n”, $returnValue);

    August 8, 2012 at 12:18 am #48121
    admin
    Keymaster

    If the manual stamping works for this same file then it would be something do with the use of the API, otherwise manual stamping wouldn’t work either. The API requires the ability to do HTTP POST using CURL. I have a feeling this hosting provider has this option turned off. Ask them the following question:

    “Do you allow HTTP POST on the same server using CURL?”

    August 8, 2012 at 9:24 pm #48122
    computercourage
    Member

    A tech confirmed that HTTP POST is allowed on the same server as CURL.

    He does ask:

    “However, it’s possible that the timeout may not be with our server. Can you ask the plugin developers whether the stamping is done directly by the plugin, or whether it uses an API to the plugin server to do the stamping?”

    In any case, do you have an updated example of the HTTP POST integration guide? I’ve discovered that even if the integration code manages to stamp, Acrobat isn’t able to open the file (this is after I upgraded the plugin, was working fine before), so I think there’s an issue with changed code in the updated plugin.

    August 9, 2012 at 11:52 pm #48123
    admin
    Keymaster

    I have checked the 3rd party integration documentation and verified that the given code is working correctly. I have sent you an email.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ