Undefined index ‘type’ in class-field.php (line 1295)
-
Hello,
I don’t know why, but I had annoying PHP notices when upgrading to your last version. Reverting back at a 1 or 2 version before didn’t helped.
I had to modify a core file of your plugin (class-field.php) in order to add a condition in the public function get_field_type($fieldname) like so:public function get_field_type( $fieldname ) { if ( ! isset( COMPLIANZ::$config->fields[ $fieldname ] ) || ! isset( COMPLIANZ::$config->fields[ $fieldname ]['type'] ) ) { return false; } return COMPLIANZ::$config->fields[ $fieldname ]['type']; }
It’s probably related to old database entries (related to cookies maybe). Nevertheless, can you give me some informations about this and check on your side, because this core file modification will be erased at the next plugin update.
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Undefined index ‘type’ in class-field.php (line 1295)’ is closed to new replies.