• Hi,

    I updated Limit Login Attempts Reloaded from version 2.20.6 to 2.21.0. After logging in to wp-admin, access to wp-admin is blocked and the following message appears:
    Sorry, you are not allowed to access this page.
    https://prnt.sc/1295wlc

    The plugin was activated for multisite in the network.

    In the file limit-login-attempts-reloaded/core/LimitLoginAttempts.php I changed the code from this:

    public function __construct() {
    
    	    $this->default_options['gdpr_message'] = __( 'By proceeding you understand and give your consent that your IP address and browser information might be processed by the security plugins installed on this site.', 'limit-login-attempts-reloaded' );
    
    		$this->hooks_init();
            $this->app_init();
    	}

    to this:

    public function __construct() {
    
    	    $this->default_options['gdpr_message'] = 'By proceeding you understand and give your consent that your IP address and browser information might be processed by the security plugins installed on this site.';
    
    		$this->hooks_init();
            $this->app_init();
    	}

    After this change the wp-admin works fine.

    WordPress version: 5.7.1
    PHP version: 7.4.16

    Can you check why after adding the __() function in the __construct, the wp-admin is not working?

    Thanks!
    Tomasz

  • The topic ‘Unable to access wp-admin after updating to 2.21.0’ is closed to new replies.