• This plugin seems very promising, but it raises a lot of PHP warnings and notices allover the site.

    Notice: Undefined index: options_array in /www/wp-content/plugins/simplr-registration-form/simplr_form_functions.php on line 362
    
    Notice: Trying to get property of non-object in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Warning: Creating default object from empty value in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_email in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_email_subj in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_activation in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_email_activated in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_email_activated_subj in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15
    
    Notice: Undefined property: stdClass::$mod_roles in /www/wp-content/plugins/simplr-registration-form/views/moderation.php on line 15

    etc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, it does :).
    Some have been fixed in the last release. The ones that are there now, don’t have an easy one-line fix. They will need a better look to get fixed.

    When you save settings, it should be better. It is just that is expecting some settings to be there.

    Thread Starter dvdm

    (@dvdm)

    Thanks for the quick reply!
    (I just downloaded the latest version which showed these warnings.)

    I did indeed notice setting some values resolves a couple of these issues.

    I’ve created a little workaround for some others:

    in views/moderation.php

    if (!is_object($simplr_reg)) $simplr_reg = new stdClass;
    //setup defaults
    foreach($defaults as $k => $v ) {
    	$simplr_reg->$k = isset($simplr_reg->$k) ? $simplr_reg->$k : $defaults->$k;
    }

    That resolves the better part of these messages. I think the other notices & warnings can be resolved in a similar way.

    Cheers!
    Daniel

    Hi, a lot of notices are now fixed in 2.3.2.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warnings & notices’ is closed to new replies.