• Resolved moxymore

    (@moxymore)


    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

    • This topic was modified 1 year, 9 months ago by moxymore.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @moxymore thanks for reporting. I will adjust the function, it will get added in the 6.4.2 version (won’t make next update as that one is already ready for release).

    Thread Starter moxymore

    (@moxymore)

    Allright, appreciated. Thanks.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @moxymore,

    The fix is currently in our testing queue and is planned for version 6.4.2 of the plugin. I’ll mark this thread as resolved for the time being, but feel free to reach us if you have further questions.

    Kind regards, Jarno

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.