WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cant' login wp-admin / wp-login.php error (3 posts)

  1. Kathleen Steegmans
    Member
    Posted 9 months ago #

    Hello,

    I can't login to my wordpress website anymore after changing the admin password. Not sure if it has anything to to with this but the website was infected with a virus a few days ago. (this was cleaned by Sucuri Monitor)

    When I go to http://www.immassur.be/wp-admin I get this message: Parse error: syntax error, unexpected T_LNUMBER in /nfs/home/deb47268n14/domains/immassur.be/public_html/wp-login.php on line 399

    I've had a look at the wp-login.php file I see there's a problem but I can't find it.

    This is line 399 from the file: setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() 10 * DAY_IN_SECONDS, COOKIEPATH );

    Does anybody know what to do? Thx!

  2. Justin
    Member
    Posted 9 months ago #

    I would take reinstall WordPress instead of using the cleaned files form Sucuri. You should be able to over override the old file with new files. You theme and data would still be there but you will have a clean install.

    You will chase your tail if the core files have been touched.

  3. Kathleen Steegmans
    Member
    Posted 9 months ago #

    I'm in again! :)

    Line 399 in wp-login.php was changed to:
    setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() 10 * DAY_IN_SECONDS, COOKIEPATH );

    I replaced the line with a copie from another wp site to this:
    setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 10 * DAY_IN_SECONDS, COOKIEPATH );

    I can now login again and will reinstall WordPress to have a clean install.

    Thanks for your help!

Reply

You must log in to post.

About this Topic