PDF email attachment problem

Home Forums Pre-Sale PDF email attachment problem

This topic contains 23 replies, has 3 voices, and was last updated by  Ognen 1 month, 3 weeks ago.

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #15644 Reply

    Alessio Balduini
    Participant

    Hello Pro2Pdf team!

    I have a small problem with the paid version of your plugin.
    I got 2 forms that are populating the same pdf document (separate versions to create the pdf, not interconnected).

    For the 1st form it works great, I press the Attach to email checkbox and that’s it!

    On the 2nd form if I just press the Attach to email checkbox I get an email with the form input but NO PDF!
    If I check the Notify Email checkbox I recieve the PDF in the email, but I lose many of the recepients, I get just 1 email on 1 address instead of 3.

    What do you think is the problem?
    Please I need a fast reply 🙂

    #15651 Reply

    admin
    Keymaster

    If possible, complete this form and we’ll take a look to quickly troubleshoot the issue. If not possible, then please provide a screenshot of the Form #2’s “Email Notification” page and a screenshot of the PRO2PDF field map layout screen with Form #2 and the field map layout selected. And, provide answers to the following;

    . How many field map layouts exist for Form #2? (Check for test, abandoned, or incomplete layouts if any exist, delete the layout(s) or disable the email attachment option)
    . Clarify (expand on) your statement “If I check the Notify Email checkbox I recieve[sic] the PDF in the email, but I lose many of the recepients[sic], I get just 1 email on 1 address instead of 3.”
    . Regarding workflow and the original PDF Form, how is Form #1 related to Form #2?

    We remain at your service.

    #15684 Reply

    Alessio Balduini
    Participant

    Please help

    #15685 Reply

    Alessio Balduini
    Participant

    Thank you for the support!
    I managed to work around my problem, 1st form has not selected the Email Notification checkbox (only Attach Email = YES), the 2nd form has YES, plus the checkbox. Like this it sends the email to all recipients and the pdf is attached.

    #15686 Reply

    Alessio Balduini
    Participant

    I also want to provide the possibility for Download button right after Submit.
    I insert this On Submit message:
    [if 165 not_equal=”][formidable-download form=’42dtg’ dataset=[id] layout=’17’ inline=’1′ flatten=’yes’][/if 165]

    With inline=’1′ or download=’auto’ (no matter flatten=”yes”) I get the same error when I try to view the pdf: Failed to load PDF document (RELOAD)

    #15689 Reply

    Alessio Balduini
    Participant

    I managed to solve my other problem as well!
    Sorry for the Posts but there was an Error and I had to divide and conquer it 😀

    Thank you, All the best!

    #15696 Reply

    Alessio Balduini
    Participant

    By adding just [formidable-download form=”42dtg” dataset=[id] layout=”18″ download=”auto”] in the On Submit of my form I am able to download automatically and by pressing the Download button.

    The only problem is when I test this feature using Google Chrome, it starts the download action but quickly redirects back to the Form. On my other Browsers works just fine.

    How do I solve this issue for Google Chrome?

    Thank you in advance.

    #15697 Reply

    admin
    Keymaster

    How documents are opened in Chrome is a browser setting, not a feature of PRO2PDF.

    See more here.

    We remain at your service.

    #15714 Reply

    Ognen

    I don’t believe you understood my question.

    I have an automatic download button on my website, 90% of my clients use Google Chrome,
    and the “Download” button and auto download feature do not work there!

    In conclusion many of my clients are not able to use the feature you provide,
    I tested on other browsers and it works just fine for both features.

    How do I adapt to this issue?

    #15715 Reply

    admin
    Keymaster

    The automatic download function works perfectly with the Chrome browsers, copy/paste your shortcode here and a link to your form, if possible, for further review.

    We remain at your service.

    #15716 Reply

    Ognen

    Here is my code:
    [formidable-download form=”42dtg” dataset=[id] layout=”18″ download=”auto”]

    Since it was working with all the other browsers I thought it is a bug.
    What do you suggest?

    #15717 Reply

    Ognen
    #15718 Reply

    Ognen

    When I press the Download button, the chrome error is that it first activates the function on:
    http://creditpassport.com.gridhosted.co.uk/wp-admin/admin-ajax.php?action=wpfx_generate&form=42dtg&dataset=362&layout=18&download=auto&key=235359fe6772962eb4f13ed5c80833bf

    But afterwards is redirecting back to the Form Link above.

    #15719 Reply

    admin
    Keymaster

    What is the correct format for these fields?
    1
    Provincia del Luogo di Nascita *

    Provincia del Luogo di Nascita is invalid
    Stato del del Luogo di Nascita *

    2
    Provincia del Comune di Residenza *

    Provincia del Comune di Residenza is invalid
    Stato del Comune di Residenza *

    3
    Numero di telefono per eventuali comunicazioni *

    Numero di telefono per eventuali comunicazioni is invalid

    #15720 Reply

    Ognen

    Provincia both fields are 2 Capital Letters, example: FE
    Number is 8-12 digits acceptable I believe: 9999999999

    #15721 Reply

    admin
    Keymaster

    It appears your site has redirect or security plugin(s) that is preventing PRO2PDF from resolving the PDF download link. We are unable to access the dashboard to troubleshoot any further. Try adding inline=1 to the end of your shortcode and remove the download=”auto” parameter.

    This is not an issue we have seen since the release of the plugin 2 1/2 years ago.

    Complete this form if you would like us to troubleshoot your server/installation issue.

    We remain at your service.

    #15722 Reply

    admin
    Keymaster

    Try disabling all plugins except the Formidable plugins, if all works as expected then add the plugins back one-by-one and test until you find the plugin causing the redirect. Let us know the result.

    We remain at your service.

    #15723 Reply

    Ognen

    It works great, thank you!

    Is it possible to use the 2 features together?
    Inline and auto download?

    #15724 Reply

    admin
    Keymaster

    No, inline does not “auto download” and visa-versa… specifically, inline forces the document to open on a new tab. You can have two shortcodes in the on submit message box, one for the user to click and another to auto download.

    However, it still appears your WP install has an issue with redirecting when the auto download parameter is used.

    We remain at your service.

    #15725 Reply

    Ognen

    I tried what you proposed, disabling and enabling the plugins.

    Do you have any other suggestion? Because it had no effect.
    I have the following code in functions.php of my theme, maybe you think it is problematic:

    // Block Access to /wp-admin for non admins.
    function custom_blockusers_init() {
    if ( is_user_logged_in() && is_admin() && !current_user_can( ‘administrator’ ) ) {
    wp_redirect( ‘http://creditpassport.com.gridhosted.co.uk/manual-access/’ ); //http://creditpassport.com.gridhosted.co.uk/company-access/
    exit;
    }
    }
    add_action( ‘init’, ‘custom_blockusers_init’ ); // Hook into ‘init’

    #15726 Reply

    Ognen

    I commented this code and the chrome function works perfectly.

    Do you have any suggestion about how to modify it so I can keep both features?

    #15727 Reply

    Ognen

    The code is a simple redirect that doesn’t allow non-admin Users to access the dashboard.

    #15728 Reply

    Ognen

    Please help me with this issue, I am still stuck debuging.

    The code I provided is the problematic part, maybe you know a different way to navigate from the log in directly to a website, without accessing wp-admin page.

    Or some if/else statement that will remove the Chrome Download btn Redirect?

    Thank you.

    #15729 Reply

    Ognen

    Fixed it by replacing my custom redirect code with a plugin that does the same thing.
    Thank you guys.

Viewing 24 posts - 1 through 24 (of 24 total)
Reply To: PDF email attachment problem
Your information: