Forums

Error when storing a pdf file with TCPDF

Mmax2 4d ago

Good evening, when trying to "store" a pdf i get the following error: 

Warning: fopen(): Remote host file access not supported, file://home/mhd-01/www.miosito.it/htdocs/components/com_chronoforms8/files/test.pdf in /home/mhd-01/www.miosito.it/htdocs/administrator/components/com_chronoforms8/libs/tcpdf/include/tcpdf_static.php on line 1811

I don't know what to do now. I simply want to attach a pdf with the data of the form to the email submitted, I think this is the only way: store the pdf and then attach it to the mail. Is there any other method? Thank you.

Mmax2 3d ago
Answer
1 Likes

I found a solution to my problem: if I prefix a "/" all works.

In the "Storage path" the default string is: "{path:front}/files/test.pdf". If I write "/{path:front}/files/test.pdf", I get rid of the error and the file is correctly stored into the path.

I hope this is a correct and "robust" solution.

Max_admin 17h ago

This is the solution and it should be fixed in the next update, thank you for posting it!

Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.