IMPORTANT UPDATE: Please DOWNLOAD and update the Formidable PRO2PDF to the Latest Version!

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: 5 page PDF document with 4 signatures #43996
    alexhash
    Participant

    Hello again,

    I have paid 40 USD for 12 months for this plugin and I am currently unable to use it.
    I wrote you 2 emails and still got no answer from anyone on your side.
    There was a “Premium Support” mention on the website when I purchased, how can I benefit from the Premium support ?

    Please help me with the issue that I am having so I can fully use your plugin.
    Our document requires 4 signatures on the same document and your plugin is unable to generate it as website returns 520 error.

    Form Page:
    attached is the PDF used in Formidable PRO2PDF – Cerere_Sedere_420_2-3c2.pdf
    attached is the PDF generated with 520 error on website – Generated PDF file from FORM signed and sent after 45 seconds on email.pdf

    I followed your instructions:
    I contacted the hosting company and they confirmed all settings were updated fo PHP as mentioned by you:
      – Increase the following PHP settings;
        max_execution_time = 600
        max_input_time = 600
        max_input_vars = 4000
        memory_limit = 512M
        post_max_size = 256M
        session.gc_maxlifetime = 1440
    + they increased the number of PHP workers to 10 workers.

      – Compress the PDF form to the smallest possible file size. (Less than 100k if possible)
     I have compressed the document to the maximum possible and it went down from 986 kb to 320 kb – please see it attached. “Cerere_Sedere_420_2-3c2.pdf”
    I have even created a blank PDF with just some fields and mapped them and everything and it has 32 kb in total, but it still does not work to create it with 4 signatures as site returns 520 as timeout.

      – Create a uniquely named Text Field for each signature on the PDF and map each of them to one single Formidable Form Signature Field.
    I did this and I reduced the signature box in the form from 450 x 150 to 300 x 100 px (to reduce the size, space and resources)

      – Decrease the Signature Field Multiplier (resolution) using this code.
    I have decreased to 0 using this code and tested, the signature is at lowest resolution possible

      – Disable the PDF Attachment and add a shortcode link to the email body so the user can download the PDF on-demand rather than as an attachment.
    If i Disable PDF attachment and (x) checkmark to send email, and I only send an email from the Form notification email with a link, everything works fine, but once I press the download link received on email, I cannot get the file, as my website refuses to generate it, as I continuously hit the 520 error from Cloudflare timeout. I think that after 30 seconds of inactivity, Cloudflare gives 520 error.
    I have also tried to get the file by “EXPORT” tab in Formidable PRO2PDF, and press Export to PDF or Preview PDF – none are able to generate my file as I keep getting 520 error.
    The only way I managed to get this to work is if I deleted 3 signatures, and left the document with only 1 signature, then most of the times it works.

    I also tried this:
    I really need the PDF to be sent as attachment by email to our clients (this is a must for us), so I checked the field Attach file to Email Notification > YES, and (x) Send Email.

    With these settings, I get the email with the attachment PDF after 45-60 seconds after pressing the “submit” button in the form page, but on website the client gets a 520 error, which we do not want, as we need the form to redirect to the thank you page (a simpe page with 2 lines of text, nothing special there).
    Please see attached the generated document from the form, with 520 error on website after submit, called “Generated PDF file from FORM signed and sent after 45 seconds on email.pdf”

    I do now know what else to do and how to make it work, so please help me with a solution so I can use the plugin and generate my PDF with 4 signatures, send it by email and redirect client to a thank you page without any error.

    I got in contact with my hosting again today and they had another look on the hosting side.
    They confirmed yet again that all the PHP settings are as you told me, and that everything is fine on the server side.

    They also confirmed that the only way it works super fast, without any 520 error is if there is no PDF generated or sent by email or generated so I think the problem is generating the PDF which takes a little time 45-60 seconds.
    We also tried generating it again from the back-end of admin in WordPress, from Formidable PRO2PDF >> EXPORT tab >> Export or Preiew PDF. None of those is generating the file if it has 4 signatures. So I cannot generate it from a link or from the plugin itself, it just refuses to work as hdasig returns 520 error as timeout.

    Hosting team told me that I keep getting these errors, can you please have a look ?
    You are still getting this error: 1/18/2022 1:29:07 PM[18-Jan-2022 19:29:07] WARNING: [pool susr2f09dc] child 19655 said into stderr: “sh: 1: pdftk: not found”
    and
    root@4ae91fc4d514:/var/convesio# curl localhost/wp-admin/admin-ajax.php?action=wpfx_generate&form=cereresedere420-2-3c&dataset=159&layout=1002&key=c605d542c23bc49527a803d1bdc4bb45
    [1] 20176
    [2] 20177
    [3] 20178
    [4] 20179
    root@4ae91fc4d514:/var/convesio# The secret key for this form is not valid.

    My hosting thinks this isn’t a hosting issue,but maybe it’s a code issue. SO please help me solve this.

    Looking forward for your answer ASAP.

    P.S. here is the information from Under the Hood, I hope this helps as well:

    Plugin folder: formidablepro-2-pdf
    PHP version: 7.4.25
    WP version: 5.8.3
    FrmAppHelper: Yes
    Trial: No
    PDFTK: No
    System: Linux 4ae91fc4d514 5.0.0-1025-gcp #26~18.04.1-Ubuntu SMP Mon Nov 11 13:09:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    CURL: 7.58.0
    CURL error: No
    CURL test: Yes
    PHP Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, geoip, gettext, iconv, igbinary, imap, intl, json, exif, mysqli, newrelic, pdo_mysql, Phar, posix, pspell, readline, redis, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache

    /var/convesio/wordpress/wp-content/plugins/formidablepro-2-pdf/fields is writable: Yes
    /var/convesio/wordpress/wp-content/plugins/formidablepro-2-pdf/fields can have files: Yes
    /var/convesio/wordpress/wp-content/plugins/formidablepro-2-pdf/fields write successful: Yes
    /var/convesio/wordpress/wp-content/plugins/formidablepro-2-pdf/fields delete successful: Yes
    /tmp is writable: Yes
    /tmp can have files: Yes
    /tmp write successful: Yes
    /tmp delete successful: Yes
    /var/convesio/wordpress/wp-content/uploads/fpropdf-forms is writable: Yes
    /var/convesio/wordpress/wp-content/uploads/fpropdf-forms can have files: Yes
    /var/convesio/wordpress/wp-content/uploads/fpropdf-forms write successful: Yes
    /var/convesio/wordpress/wp-content/uploads/fpropdf-forms delete successful: Yes

Viewing 1 post (of 1 total)