1. We suggest you do NOT update to Joomla 3.8.10 until we can resolve an issue it causes with caching in Fabrik. If you do install it, you'll need to disable Joomla's "System Cache" in the global System settings.
  2. Apologies for the recent server outage, a planned migration by our host provider to a new location turned into a bit of a nightmare.

form email plugin issue sending pdf

Discussion in 'Standard Support' started by shawnmcginn, Feb 12, 2018.

  1. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    I do intend to create a custom pdf but just trying the default and it's not working properly. I do get a pdf attached in email but the content of the pdf looks like json output of the form contents. Running Fabrik 3.8 on J! 3.8.2. Please see attached screenshot. I assume I don't need to upgrade dompdf because it's generating the pdf file but perhaps something is incorrect in the templates?

    upload_2018-2-11_21-42-24.png
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    Are you submitting the form from a popup (ie. is the list "AJAXified")?

    -- hugh
     
  3. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    There aren't any pop-ups involved. The image I sent is just a screenshot from when I opened the pdf from gmail. Even if I save the pdf to disk and open it with a pdf reader it still shows the json version of the content and not a templated version. Also, I'm not entirely sure how this is related to the list view as I'm referring to the form email plugin with pdf attachment turned on but I checked and confirmed that the list view is not ajaxified. Let me know if you need more detail, maybe I'm leaving something out here and confusing the matter by mistake. Note as well, fabrik is generating the pdf and sending it no problem, it's just the content of the PDF isn't in any way formatted (ie. the json) as I would assume the default template should provide some basic formatting which I can adjust with a custom template.

    S.
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    I asked because PDF generation doesn't work when the form is submitted via AJAX from a popup in an AJAXified list, because the view format is "raw".

    Which site / form?

    -- hugh
     
  5. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    I think I ask this every time:) Where do I provide the access? Is it on the personal details page or can I email you directly?
     
  6. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    http://fabrikar.com/you/my-sites

    I only need the backend admin, no ftp or cpanel. And put any notes about what form etc in the notes section. And best to give me a dedicated account (not your normal admin) that you can turn off when I'm not actively working on anything.

    -- hugh
     
  7. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    It's the wheatland site and it's form id 15. Let me know if you have any issues.
     
  8. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    Just FYI I'm using the first (non blank) row in the list (rowid 27) to test with - and had to add a "provincial permit#" (of 666) in order to submit.

    -- hugh
     
  9. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    And that test seems to have worked. I added my gmail to the To, just got a copy of the email with a valid PDF attached. You should have received the same one (I think I sent a few, didn't receive them till I realized I'd spelled my email address wrong).

    -- hugh
     
  10. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    I see the PDF and it looks as I expected. Did you change anything?
     
  11. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    Now when I fill it out I get the json in my pdf. Are you using the form on the front end or from within the fabrik interface?
     
  12. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    Nope. Only thing I did was add my address to the To.

    Hugh

    Sent from my HTC6545LVW using Tapatalk
     
  13. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    Front end.

    Sent from my HTC6545LVW using Tapatalk
     
  14. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    If I try it from the backend it works fine but if I try it from the frontend I get the json version of the pdf. Any thoughts?
     
  15. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    The other thing I found, I'm trying to create a custom PDF template as per the documentation (although I have to use the details template) and I find my changes do display on the details page after submission but they do not appear in the pdf. But that may also be related to the json issue.
     
  16. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    Weirdly, when sending from the front end and getting the JSON (raw) output, it looks like it's the wrong row as well ... I get rowid 75 instead of 27.

    I'm still trying to figure out what could be doing that ...

    -- hugh
     
  17. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    Any update on this? I'm going to have another look today as well
     
  18. shawnmcginn

    shawnmcginn Member

    Level: Supporter
    For now I'm just going to use the email template function and I'll get back to the PDF later, but now what I've found is that the signature image appears in the email output when I use the backend version of the form, but again the frontend version has an issue where it won't display the image, I just see a placeholder. Is this an ACL problem?


    upload_2018-2-22_22-10-48.png
     

Share This Page