• Resolved dorich

    (@dorich)


    My dashboard shows six messages of the form “….line 619 Notice: Undefined index: …..”
    All of these are from BPS/includes….

    I’m running BPS version .52
    The theme I’m using is lightsource from Elegant Themes.

    I don’t know what to infer from the messages or how to get rid of them.

    Any advice would be gratefully received.

    Thanks.

    https://www.ads-software.com/plugins/bulletproof-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AITpro

    (@aitpro)

    hmm yep I was able to recreate the php error messages by setting WP_DEBUG_DISPLAY to true in my wp-config.php file. WP_DEBUG should only be used when you are debugging things and should not remain turned on at all times. Doing that will cause major website performance problems. So for now turn off WP Debugging after you are done debugging things. In the long run we will suppress the php errors from occurring since they are insignificant and do not cause any issues/problems.

    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', false);
    define('WP_DEBUG_DISPLAY', false);
    Plugin Author AITpro

    (@aitpro)

    Or if you feel like suppressing the php errors now then do these steps:

    1. Open and edit this BPS plugin file: /bulletproof-security/admin/includes/admin.php.
    2. Add an @ symbol in front of all of these lines of code shown below to suppress the php errors.

    // Idle Session Logout (ISL): Do not automatically set ISL up. This should be left up to users to choose whether to use this or not.
    function bulletproof_security_options_validate_idle_session($input) {
    	$options = get_option('bulletproof_security_options_idle_session');
    	$options['bps_isl'] = wp_filter_nohtml_kses($input['bps_isl']);
    	$options['bps_isl_timeout'] = trim(wp_filter_nohtml_kses($input['bps_isl_timeout']));
    	$options['bps_isl_login_url'] = trim(wp_filter_nohtml_kses($input['bps_isl_login_url']));
    	$options['bps_isl_user_account_exceptions'] = wp_filter_nohtml_kses($input['bps_isl_user_account_exceptions']);
    	@$options['bps_isl_administrator'] = wp_filter_nohtml_kses($input['bps_isl_administrator']);
    	@$options['bps_isl_editor'] = wp_filter_nohtml_kses($input['bps_isl_editor']);
    	@$options['bps_isl_author'] = wp_filter_nohtml_kses($input['bps_isl_author']);
    	@$options['bps_isl_contributor'] = wp_filter_nohtml_kses($input['bps_isl_contributor']);
    	@$options['bps_isl_subscriber'] = wp_filter_nohtml_kses($input['bps_isl_subscriber']);
    	@$options['bps_isl_tinymce'] = wp_filter_nohtml_kses($input['bps_isl_tinymce']);
    
    	return $options;
    }
    
    // Authentication Cookie Expiration (ACE): Do not automatically set ACE up. This should be left up to users to choose whether to use this or not.
    function bulletproof_security_options_validate_auth_cookie($input) {
    	$options = get_option('bulletproof_security_options_auth_cookie');
    	$options['bps_ace'] = wp_filter_nohtml_kses($input['bps_ace']);
    	$options['bps_ace_expiration'] = trim(wp_filter_nohtml_kses($input['bps_ace_expiration']));
    	$options['bps_ace_rememberme_expiration'] = trim(wp_filter_nohtml_kses($input['bps_ace_rememberme_expiration']));
    	$options['bps_ace_user_account_exceptions'] = wp_filter_nohtml_kses($input['bps_ace_user_account_exceptions']);
    	@$options['bps_ace_administrator'] = wp_filter_nohtml_kses($input['bps_ace_administrator']);
    	@$options['bps_ace_editor'] = wp_filter_nohtml_kses($input['bps_ace_editor']);
    	@$options['bps_ace_author'] = wp_filter_nohtml_kses($input['bps_ace_author']);
    	@$options['bps_ace_contributor'] = wp_filter_nohtml_kses($input['bps_ace_contributor']);
    	@$options['bps_ace_subscriber'] = wp_filter_nohtml_kses($input['bps_ace_subscriber']);
    
    	return $options;
    }
    Thread Starter dorich

    (@dorich)

    Thanks.
    I used the first suggestion, and that solved the problem.

    I found I didn’t have the second and third items in my wp-config.php file. So I added them and set them to false.

    Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why am I getting "..Undefined Index…" Messages?’ is closed to new replies.