Support » Fixing WordPress » Log in problems

  • I manage a site http://www.hopesplace.org.uk and usually log in to maintain it by navigating to the site, and after this url typing/wp-admin, whereupon I get a log in screen and it has remembered my username and password. Now when I do it I get a screen full of code instead of my control panel., the first paragraph of which is

    ` element. * Default ‘Log In’. * @param string $message Optional. Message to display in header. Default empty. * @param WP_Error $wp_error Optional. The error to pass. Default empty. */ function login_header( $title = ‘Log In’, $message = ”, $wp_error = ” ) { global $error, $interim_login, $action; // Don’t index any of these forms add_action( ‘login_head’, ‘wp_no_robots’ ); add_action( ‘login_head’, ‘wp_login_viewport_meta’ ); if ( empty($wp_error) ) $wp_error = new WP_Error(); // Shake it! $shake_error_codes = array( ’empty_password’, ’empty_email’, ‘invalid_email’, ‘invalidcombo’, ’empty_username’, ‘invalid_username’, ‘incorrect_password’ ); /** * Filters the error codes array for shaking the login form. * * @since 3.0.0 * * @param array $shake_error_codes Error codes that shake the login form. */ $shake_error_codes = apply_filters( ‘shake_error_codes’, $shake_error_codes ); if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) ) add_action( ‘login_head’, ‘wp_shake_js’, 12 ); $separator = is_rtl() ? ‘ › ‘ : ‘ ‹ ‘; ?> > get_error_code() ) { ?> site_name; } else { $login_header_url = __( ‘https://wordpress.org/’ ); $login_header_title = __( ‘Powered by WordPress’ ); } /** * Filters link URL of the header logo above login form. * * @since 2.1.0 * * @param string $login_header_url Login header logo URL. */ $login_header_url = apply_filters( ‘login_headerurl’, $login_header_url ); /** * Filters the title attribute of the header logo above login form. * * @since 2.1.0 * * @param string $login_header_title Login header logo title attribute. */ $login_header_title = apply_filters( ‘login_headertitle’, $login_header_title ); $classes = array( ‘login-action-‘ . $action, ‘wp-core-ui’ ); if ( is_rtl() ) $classes[] = ‘rtl’; if ( $interim_login ) { $classes[] = ‘interim-login’; ?>

    but I can get no further. What can I do to access my site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like you have a corrupted core file. Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folders before uploading the new ones.

    Thanks, @esmi, will do, but (excuse my ignorance) I can’t find any files or folders called .htaccess – where should I look?

    .htaccess files are usually only found on a web server and are often hidden by default in FTP clients. Check the settings in your FTP software and see if there is an option to show hidden files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Log in problems’ is closed to new replies.