• Resolved timwilde

    (@timwilde)


    Hi,

    I recently upgraded to PDB v2.0 (I am now on v2.5). WordPress V5.9.1

    When I attempt to add a new participant into the database using pdb_signup I get a WordPress Critical Error and the following error in the WP debug file

    [23-Feb-2022 16:23:05 UTC] PDb_submission\match\record::field_value_exists query: SELECT EXISTS( SELECT 1 FROM wp_participants_database p WHERE p.id = '0' AND p.id <> '0' )
    [23-Feb-2022 16:23:05 UTC] PHP Notice:  Undefined variable: record_match in /afk/wp-content/plugins/participants-database/classes/PDb_submission/match/record.php on line 189
    [23-Feb-2022 16:23:05 UTC] PHP Fatal error:  Uncaught Error: Call to a member function matched_record_id() on null in **/**/**/**/wp-content/plugins/participants-database/classes/PDb_submission/match/record.php:189
    Stack trace:
    #0 **/**/**/**/wp-content/plugins/participants-database/classes/PDb_submission/match/record.php(133): PDb_submission\match\record->insert_action()
    #1 **/**/**/**/wp-content/plugins/participants-database/classes/PDb_submission/match/record.php(117): PDb_submission\match\record->adjust_action()
    #2 **/**/**/**/wp-content/plugins/participants-database/classes/PDb_submission/match/form.php(89): PDb_submission\match\record->get_action('insert')
    #3 **/**/**/**/wp-content/plugins/participants-database/participants-database.php(1570): PDb_submission\match\form->get_action('insert')
    #4 **/**/**/**/wp-content/plugins/participants-database/participants-database.php(2512): Participants_Db::process_form(Array, 'insert', false, Arra in **/**/**/**/wp-content/plugins/participants-database/classes/PDb_submission/match/record.php on line 18

    Interesting if I add a new participant using the “Add New
    Participant Record” from within the WordPress back end the Participant is added without any problems

    Any Help would be appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Roland Barker

    (@xnau)

    Don’t use the Record ID field in your “Duplicate Record Check Field” setting, there is a bug that keeps that from working, and you probably don’t need to do that.

    Thread Starter timwilde

    (@timwilde)

    Thanks for the quick response.

    I set ‘Duplicate record check field’ to ‘Private_id’ and ‘Duplicate record preference’ to a ‘create a new record with the submission’ and it all worked well

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘cannot add new participant – Undefined variable: record_match’ is closed to new replies.