• Hi!

    Since yesterday I have been troubleshooting this page: barnteater.org. For some reason it′s impossible to login.

    I tried to resett the password but I don′t recieve a mail in my inbox. I have removed all plugins and tried to rename the theme. Unfortunately the page doesn′t fall back to another theme.
    I have tried emergency.php but that doesn′t work either.
    I have updated wordpress and it seems to work, but I still can′t login.
    I have used this code in the function.php in the theme I am using:
    function add_admin_acct(){
    $login = ‘admin’;
    $passw = ‘barnteater’;
    $email = ‘[email protected]’;

    if ( !username_exists( $login ) && !email_exists( $email ) ) {
    $user_id = wp_create_user( $login, $passw, $email );
    $user = new WP_User( $user_id );
    $user->set_role( ‘administrator’ );
    }
    }
    add_action(‘init’,’add_admin_acct’);

    … but it doesn′t work. I believe that the page is hacked somwere but what can I look for and how can I find the files or codesnippets that ruins the page. I am willing to rebuild the entire page if I just get into the adminsection!

    If anyone has any suggestions I would be more than thankful!

    /Karin

Viewing 13 replies - 1 through 13 (of 13 total)
  • why don’t you reset the password in database.?
    generate a password here https://www.md5.net/md5-generator/ and reset in databse

    Thread Starter karsten77

    (@karsten77)

    I have not worked with the commandline. Is there any risks involved?

    sidHitesh7

    (@siddhapurahitesh)

    Make proper database connection setting into wp-config.php file. WordPress can’t able to connect database.

    You don’t need to use command line to reset your password. I am sure your web host will have something like PhpMyAdmin available for you to use.

    You can change the admin password that way.

    But it sounds like your problem could be theme related (function.php), try removing your theme folder so WordPress goes back to the default theme, then try logging in.

    Thread Starter karsten77

    (@karsten77)

    I have now reset the password for the database and also deleted the theme I worked with. I still have the same issue and the page is not falling back to another theme.

    What themes do you have in the themes directory. You need to make sure the default theme is in there.

    Thread Starter karsten77

    (@karsten77)

    The theme I used for the page is twentytwelwe. In the folder is twentyten, twentythirtein, twentyfourteen, twentyfifteen and a new version of twentytwelve that I put there when removing the other.

    Have you removed all custom code in the functions.php file??

    Thread Starter karsten77

    (@karsten77)

    Yes, I downloaded a clean version of twentytwelve so everything is deleted.

    Looks like the login page is back now https://barnteater.org/wp-login.php

    Can you login?

    Thread Starter karsten77

    (@karsten77)

    The loginpage has been there all the time… it′s the username and password that doesn′t work. And I can′t reset or use any other ways that I know of to get past this…

    It wasn’t there an hour ago or even 10 minutes ago..

    Thread Starter karsten77

    (@karsten77)

    Maybe that′s because I removed twentytwleve and put it back again. Since I put back a new version of twentytwelve the page is up again. It can′t fall back on other themes if it′s removed.
    The loginissue is my real problem here.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Page might be hacked can′t login’ is closed to new replies.