• Resolved spottedpaint

    (@spottedpaint)


    Hi,

    The dashboard page (/wp-admin/admin.php?page=loginizer_brute_force) was showing empty.
    There was a problem with two values in the form
    $saved_msgs[‘inv_userpass’]
    and
    $saved_msgs[‘ip_blacklisted’]

    on line 2124 and 2131 in file init.php they seemed to show an error
    “Trying to access array offset on value of type bool …” I think that then bust the table table html and caused the boxes on that page not to display. I’m on Firefox and using PHP 7.4.5

    I’ve hedged around the two values before echoing them in the code below and that seems to work although I don’t have many failed attempts in my installation to test.

    
    <form action="" method="post" enctype="multipart/form-data">
    				<?php wp_nonce_field('loginizer-options'); ?>
    				<table class="form-table">
    					<tr>
    						<th scope="row" valign="top"><label for="msg_inv_userpass"><?php echo __('Failed Login Attempt','loginizer'); ?></label></th>
    						<td>
    							<input type="text" size="25" value="<?php echo (isset($saved_msgs['inv_userpass'])) ? esc_attr($saved_msgs['inv_userpass']) : ''; ?>" name="msg_inv_userpass" id="msg_inv_userpass" />
    							<?php echo __('Default: <em>&quot;' . $loginizer['d_msg']['inv_userpass']. '&quot;</em>', 'loginizer'); ?><br />
    						</td>
    					</tr>
    					<tr>
    						<th scope="row" valign="top"><label for="msg_ip_blacklisted"><?php echo __('Blacklisted IP','loginizer'); ?></label></th>
    						<td>
    							<input type="text" size="25" value="<?php echo (isset($saved_msgs['ip_blacklisted'])) ? esc_attr($saved_msgs['ip_blacklisted']) : ''; ?>" name="msg_ip_blacklisted" id="msg_ip_blacklisted" />
    							<?php echo __('Default: <em>&quot;' . $loginizer['d_msg']['ip_blacklisted']. '&quot;</em>', 'loginizer'); ?><br />
    						</td>
    					</tr>
    				</table><br />
    				<input name="save_err_msgs_lz" class="button button-primary action" value="<?php echo __('Save Error Messages','loginizer'); ?>" type="submit" />
    			</form>
    

    Hope that helps.

    • This topic was modified 4 years, 8 months ago by spottedpaint.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor loginizer

    (@loginizer)

    Thank you for reporting this.

    We have fixed this and it will be available in the next version.

    Plugin Contributor loginizer

    (@loginizer)

    Hi,

    We have just released v1.4.8 which resolves this issue.

    Thank you for reporting this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank Dashboard Page’ is closed to new replies.