• Resolved cognoquest

    (@cognoquest)


    I think I found a problem where the validation errors are not showing on version: 1.6.2.7.1

    I believe the problem is in PDb_FormValidation.class.php the function: get_validation_errors() the faulty code is:

    $error_messages[] = $error == 'nonmatching' ? sprintf( $this->error_messages[$error], $field_atts->title, Participants_Db::column_title( $field_atts->validation ) ) : sprintf( $this->error_messages[$error], $field_atts->title );

    I believe it should be: ... $error != 'nonmatching' ...

    Why I am not sure, is the code for that function has been significantly changed between this version and beta and I am not quite certain what the ‘nonmatching’ means?

    https://www.ads-software.com/plugins/participants-database/

Viewing 16 replies (of 16 total)
  • Thread Starter cognoquest

    (@cognoquest)

    You are welcome. Indeed executing the translation filter at an earlier stage did cross my mind and a better solution. I hesitated because of the pdb-validation_error_messages filter. You are going to have to make a design decision if the translation filter will be executed prior or after that execution.

    I also like the implementation of qtranslate-x that uses wp WP_Translator interface and hooks making its use very easy: qtranslate-x Interface WP_Translator

    You have also done a great job with your plugin. Regards …

Viewing 16 replies (of 16 total)
  • The topic ‘Validation Errors are not showing’ is closed to new replies.