Forums

CFv4 Class JParameter not found upload_files_gh.php

pat01 04 Dec, 2013
Hello Bob

I use your Upload[GH] Action.
I have created four upload-fields.
When uploading files I get the following error:

Fatal error: Class 'JParameter' not found in /home/aaabbbccc/public_html/neu/administrator/components/com_chronoforms/form_actions/upload_files_gh/upload_files_gh.php on line 69

Any idea?

Joomla 3.2, CF 4.0.4 and CF Plugin 4.0.3


The Upload did work properly before on Joomla 3.1.5 an CF 4.0 (I guess that's the CF-Version that was installed before).

Thank you very much!

Patrick
GreyHead 04 Dec, 2013
Hi pat01,

Have you downloaded the updated version (in the last week)?

Oops no, my mistake, the updated version wasn't updated :-( It will be in two minutes.

Bob
pat01 04 Dec, 2013
Hi Bob

Just downloaded and installed it, but still:

Fatal error: Class 'JFolder' not found in /home/aaabbbccc/public_html/neu/administrator/components/com_chronoforms/form_actions/upload_files_gh/upload_files_gh.php on line 97


Adding the following code to
administrator/components/com_chronoforms/form_actions/upload_files_gh/upload_files_gh.php

	  jimport('joomla.filesystem.folder');


after

    if ( $actiondata->enabled == 1 && !empty( $files_config ) ) {

      jimport( 'joomla.utilities.error' );

      jimport( 'joomla.filesystem.file' );


so the code looks now:

    if ( $actiondata->enabled == 1 && !empty( $files_config ) ) {

      jimport( 'joomla.utilities.error' );

      jimport( 'joomla.filesystem.file' );

	  jimport('joomla.filesystem.folder');



did solve the problem.

Maybe you want to update your file again? 🙂

Patrick
GreyHead 04 Dec, 2013
Hi pat01,

Thank you and sorry, it's that kind of a week so far.

I've uploaded a new version.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger