ChronoForms v4 RC3.4 bugs & fixes

GreyHead 03 Jun, 2012
This is a note of reported bugs in ChronoForms v4 RC 3.4 & 3.4.1

I think that the majority of bugs from previous versions have been fixed, see the list for RC 3.3 here.

[list=a]
  • There's a small bug in the Republisher that will replace the closing tag e.g. {/plugin_name} of a Joomla! plug-in included in the Form HTML. There's an example and fix here


  • There are still problems with Reply To email addresses not being handled correctly by Joomla!. Please see this post about Joomla! 2.5 and earlier posts in the same thread about Joomla! 1.6/1.7/2.5. Note that my attempted fix near the end doesn't work :-(


  • The validation classes are not being added to CheckBox groups or Radio buttons in the hmplhelper.php file. Bug reported here


  • The Upload Files action fails if the file inputs have array names (useful in dynamically adding inputs to a form) because the $_FILES array is transposed from the 'normal' structure. This fix to upload_files.php around line 51 will handle one-dimensional arrays.
                $files_array = explode( ",", trim( $params->get( 'files', '' ) ) );
                $file_post_array = array( 'name', 'type', 'tmp_name', 'error' );
                foreach ( $files_array as $file_string ) {
                    if ( strpos( $file_string, ':' ) !== false ) {
                        $file_data = explode( ':', trim( $file_string ) );
                        $file_extensions = explode( '-', $file_data[1] );
                        //convert all extensions to lower case
                        foreach ( $file_extensions as $k => $file_extension ) {
                            $file_extensions[$k] = strtolower( $file_extension );
                        }
                        //get the posted file details
                        $check_array = strpos( $file_data[0], '[' );
                        if ( $check_array > 1 ) {
                            // the input name is an array name
                            $file_input = explode( '[', $file_data[0] );
                            $k = (int) str_replace( ']', '', $file_input[1] );
                            if ( $file_input[0] && $k ) {
                                $file_post = array( 'error' => 99999 );
                                foreach ( $file_post_array as $v ) {
                                    $file_post[$v] = $_FILES[$file_input[0]][$v][$k]['image'];
                                }
                            }
                        } else {
                            $file_post = JRequest::getVar( $file_data[0], array( 'error' => 99999 ), 'files', 'array' );
                        }



  • There's a typo in the Italian version of the validation error messages (see this post)


  • There a bug in the Dynamic DropDown action which means that it will not run if the Extra Options Extensions box is empty - which it usually is if you are using Ajax. Just adding 'x=x' in the box will fix this. The fix is to edit line 36 of cfaction_dynamic_dropdown.php to be
    if ( empty($dynamic_values) && !$params->get('enable_ajax', '') || empty($source_id) || empty($target_id) ) {



  • There's a report here that upgrading removes the 'Tight' layout setting.
  • [/list:o]
    Bob
    This topic is locked and no more replies can be posted.