Support » Plugin: All In One WP Security & Firewall » persistent ERROR: Invalid username

  • Hi,
    After activating All in One WP Security Firewall plugin
    I got

    ERROR: Invalid username.

    This happened after I changed from the twentyfourteenchild theme to justwritechild theme. I had warily begun activating plugins one by one. On activating aiowps plugin I have been locked out with the persistent ‘ERROR: Invalid username’.
    From .htaccess file I removed portion from
    # BEGIN All In One WP Security to # END All In One WP Security.
    In the backup folder I also saw a file “sjlsjslsx_htaccess_backup”
    error_log in the root folder says

    [08-Jun-2014 18:36:14 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 33556046 bytes) in /home/mydoctor/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-backup.php on line 59

    One by one I began deactivating plugins, then themes except ‘twentyfourteen’ and in the end deleted the aiowps plugin. The login page continues to show the same
    ERROR: Invalid username. Lost your password?
    Attempting to browse from the homepage the error displayed in the browser was

    Not Found
    The requested URL /topic/xxxxxpppsss-2/ was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The error file on the server says

    [Mon Jun 09 02:26:13 2014] [error] [client] File does not exist: /home/mydoctor/public_html/cursor.png/, referer:

    phpMyAdmin shows 5 rows

    All plugins and themes are latest version.

    Why am I locked out of website despite correct username and password?
    Is there any salvation?
    Do I need a complete website restore?

    I will truly appreciate your guidance.


Viewing 7 replies - 1 through 7 (of 7 total)
  • Similarity:
    I recall that I had lost my WordPress site a month ago just after changing over to justwrite theme.

    Plugin Author wpsolutions


    If you deactivate that “justwrite” theme and activate the standard WP theme does the error you are seeing go away?

    Do I need a complete website restore?

    No I don’t think you need to do something that dramatic.
    Do the following:

    1) Simply log into your site using FTP and rename the “all-in-one-wp-security-and-firewall” folder to something else temporarily.

    2) Using PHPMyAdmin login to your DB and go to the “options” table.
    Look for the row with option_name called “aio_wp_security_configs“.
    Delete this row. (This will delete all the settings related to the AIOWPS plugin)

    3) Then from your FTP session rename the folder you changed in step 1 back to the original name.

    You should now be able to reactivate the AIOWPS plugin and things should be ok but you will need to reconfigure the security settings again.

    Thanks a lot for personally addressing the problem.

    I deleted option_name called “aio_wp_security_configs”.

    I did fresh reinstall. Yet, I am still logged out of the site.
    I have cPanel and FTP access.
    I have deleted all themes and plugins except the default ones.

    The error_log says

    09-Jun-2014 21:02:42 Asia/Kolkata] PHP Parse error: syntax error, unexpected ‘define’ (T_STRING) in /home/mydoctor/public_html/wp-config.php on line 18

    line 17 // ** MySQL settings – You can get this info from your web host ** //
    line 18 /** The name of the database for WordPress */
    line 19 define(‘DB_NAME’, ‘mydoctor_gp1’);

    All seems to be in order.

    What should I be doing now?
    Thanks again for your expertise and time.

    Dr. Ashok

    Plugin Author wpsolutions


    Your issue is coming from the wp-config.php file and not the AIOWPS plugin.
    You will need to carefully go through that file to find exactly where you have introduced a syntax error.
    (HINT: Look at the lines before line 18 and you might find a mistake somewhere)

    Thank you for your timely assistance.

    On fresh reinstall there were glitches. Patiently and systematically I worked and I got the site running.

    Is it okay to delete the followiing files from phpMyAdmin before I reinstall
    AIOWPS plugin?



    Dr. Ashok Koparday

    Plugin Author wpsolutions


    Yes you can delete those tables before re-installing the plugin.

    The persistent ERROR: invalid username was because my unique username had changed to default ‘admin’.

    wpsolutions, thanks for your prompt precious support.

    I have to correct the crooked look of my dashboard. Then I can begin activating plugins one at a time with twentyfourteen child theme.

    Dr. Ashok Koparday

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘persistent ERROR: Invalid username’ is closed to new replies.