Forums

TCPDF - Copy Form - Error

msreyes 01 Oct, 2013
Hello,

I LOVE the TCPDF to generate PDF files based on forms completed.
I have a "Standard" form I am using - it is my template so to speak. In the back end of Chronoforms I copy the form standard form, rename it, and make some very basic changes.

The original works no problem. The copied form (even if I make no changes) always gives me an error:

Class 'JFolder' not found in /home/mywebsite/public_html/administrator/components/com_chronoforms/form_actions/tcpdf/cfaction_tcpdf.php on line 122



Using Joomla: 3.1.5
Chronoforms: 4.0
GreyHead 02 Oct, 2013
Hi msreyes,

It looks as though your version is not quite the same as mine as I don't have a JFolder call on Line 122.

Please try editing the file and looking for these two lines (lines 98 & 99 for me)
jimport('joomla.utilities.error');
jimport('joomla.filesystem.file');
and add this line as well
jimport('joomla.filesystem.folder');

Bob
msreyes 02 Oct, 2013
Yup... adding this line did it:

jimport('joomla.filesystem.folder');


Thanks! It works.
This topic is locked and no more replies can be posted.