TCPDF

jformicola 16 Oct, 2023
When trying to "store" a pdf i get the following error:

Warning: fopen(file:///files/JasonFormicola_20231016.pdf): Failed to open stream: No such file or directory in /home/traink5/public_html/administrator/components/com_chronoforms8/libs/tcpdf/include/tcpdf_static.php on line 1811
TCPDF ERROR: Unable to create output file: /files/JasonFormicola_20231016.pdf


That "libs" directory doesn't seem to be present after extending/uploaidng the version 7 tcpdf library to chrono 8

Also another error. When trying to create a pdf with more than one page, the resulting pdf file will not open in adobe for some reason. It almost seems like the pdf fails only when there were shortcodes involved on the second page. Can that be?
Max_admin 17 Oct, 2023
make sure you provide the full absolute path for storing the file, otherwise it will not work, I think the path for you can be:
/home/traink5/public_html/components/com_chronoforms8/files/


Try to omit the shortcodes, does it work ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jformicola 17 Oct, 2023
Thank you, that path made it work.

Another issue. I put in the {var:tcpdf_action_name} in the attachment like you suggested to have the pdf emailed as an attachment and I get the following error.

0 trim(): Argument #1 ($string) must be of type string, array given

I'll get back about the two page pdfs not working in adobe. Today I did a quick test and it seemed to work, not sure what's going on yet.
Max_admin 23 Oct, 2023
Answer
tcpdf_action_name should be the name of the TCPDF action in the form
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jformicola 23 Oct, 2023
Thanks max, yes I understand that. I was just saying that should be the structure. I know to put the name of the actual tcpdf action item there. If you'll remember the solution for me was to put ".path" at the end. I'll add that here in case it helps anyone else. Thank you!

{var:tcpdf57.path}
You need to login to be able to post a reply.