• clickingclients

    (@clickingclients)


    When adding a new user to the DB via [pdb_signup groups="personal" action="thanks" submit_button="Allow Editing"]

    I get this error:

    Notice: Undefined variable: value in /home/customer/www/adams39.sg-host.com/public_html/wp-content/plugins/participants-database/classes/PDb_Tag_Template.php on line 302

    It seems the $value is not set in the following code.

    if ( array_key_exists( $fieldname, Participants_Db::$fields ) ) {
          $field = new PDb_Field_Item( (object) array('name' => $fieldname, 'value' => $value, 'module' => 'tag-template', 'record_id' => ( isset( $this->data['id'] ) ? $this->data['id'] : null )) );
          /**
           * @version 1.7.0.8 prevent non-pdb field items from using HTML Bug #1343
           * 
           * @version 1.7.1.4 added "raw" mode
           * 
           */
          $field->html_mode( !$this->raw );
        }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter clickingclients

    (@clickingclients)

    It seems lines 262-300 have vanished.

    Line 251 was previous providing the “value”

    private function value_display( $fieldname, $value )

    Thread Starter clickingclients

    (@clickingclients)

    Possibly solved? If so needs code updated

    Line 239: needs $value added…

    $field = $this->field_item($fieldname, $value);

    Line 289 need $value added

    private function field_item( $fieldname, $value )

    Plugin Author xnau webdesign

    (@xnau)

    Thanks for pointing this out…will include a fix in the next update. I doesn’t actually need to assign the value in that function at all, that’s why the unassigned variable doesn’t keep it from working. The value is assigned in the field object later.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error – Undefined variable: value when new signup db entry added’ is closed to new replies.