“Undefined Variable”
-
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 227Notice: 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.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘“Undefined Variable”’ is closed to new replies.