• Resolved cculler02

    (@cculler02)


    My page with the PDB registration form is showing errors on loading*:
    “Notice: Undefined variable: found in /var/www/wp-content/plugins/participants-database/classes/PDb_Field_Group_Item.php on line 227

    Notice: Undefined variable: found in /var/www/wp-content/plugins/participants-database/classes/PDb_Field_Group_Item.php on line 229”

    It appears the code it’s referencing is here (starting on line 225).

    private function group_fields_have_values()
      {
        $has_field_values = wp_cache_get( $this->name, 'pdb-group_fields_have_value', false, $found );
        
        if ( ! $found ) {
          foreach( $this->fields as $field ) {
            /* @var $field PDb_Form_Field_Def */
            if ( $field->has_value() ) {
              $has_field_values = true;
              break;
            }
          }
          reset( $this->fields );
          wp_cache_set( $this->name, $has_field_values, 'pdb-group_fields_have_value', Participants_Db::cache_expire() );
        }
        
        return $has_field_values;

    So it’s likely that it’s the $found variable, but I’m not sure where to go from here. Any suggestions? Thanks!

    *Well it was until I turned WP_DEBUG_DISPLAY to ‘false’. But the underlying issue still remains.

    • This topic was modified 3 years, 12 months ago by cculler02. Reason: Turned WP_DEBUG_DISPLAY to false

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for posting this, it can be safely ignored.

    What version of WordPress are you running? I’m trying to figure out why this message isn’t showing up for me here, thanks. Oh, also your php version, if you would.

    Thread Starter cculler02

    (@cculler02)

    Wordpress 5.6.2

    PHP 7.3

    Thanks for reassuring me that it can be safely ignored. I turned off Debug display so the message won’t pop anymore.

    I really appreciate your products! This has helped our club be able to register and pay safely without handing paper and pen back and forth!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Undefined Variable”’ is closed to new replies.