• After updating my WordPress version and moving my site to a new version of WordPress. The WP login page changed the layout, and I can’t login anymore. The front-end loads but some pages are broken. Please anyone who can help, what could be the issue and what are my next possible steps to recover my site.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The front-end loads but some pages are broken.

    That may be a sign that an address change was incomplete. Or there’s a plugin conflict or server configuration issue causing some errors behind the scenes.

    Can you share the site address so we can take a look?

    Thread Starter imageshandlani

    (@imageshandlani)

    Thanks for the reply George. The site is currently not available to the public it is in our dev environment. But I have downloaded the files locally to debug with xammp. Can I share the full plugin list and versions, with the theme as well? if that can help.

    Can I share the full plugin list and versions, with the theme as well? if that can help.

    No, that won’t be useful at all.

    Instead, check your browser’s developer console and network tab for any hints as to why some parts of your site are broken or not leading. You’ll likely see some 403, 404, or 500 HTTP errors… or possibly some unreachable URLs.

    Thread Starter imageshandlani

    (@imageshandlani)

    Alright, thanks I’ll do so and see if I can resolve.

    And if nothing sticks out, enable WordPress debugging to see what’s really happening behind the scenes after submitting the login credentials:

    https://developer.www.ads-software.com/advanced-administration/debug/debug-wordpress/

    Please check your database, it may be corrupted and reset your password if possible.

    1. Reset password
      You can reset the password from the WordPress dashboard, by clicking on Reset Password or Lost Your Password.
      OR
      1. Log into your cPanel or FTP.
      2. Navigate to Databases > phpMyAdmin.
      3. Choose your database, choose the wp_users table and change the username and password.
    2. Security plugins block you
      If you use a WordPress security plugin, you might unintentionally restrict your access. For example, several WordPress security plugins come with functionality to restrict login attempts, which may temporarily ban you if you input an incorrect username/password multiple times.

      You have two options: wait, as typically the block is temporary and you can retry after a while, or you can manually disable the security plugin to regain immediate access.
    3. Check your Site URL
      1. Log into your cPanel account.
      2. Go to the Files > File Manager.
      3. Inside public_html, open the wp-config.php file and check both URLs.
    4. Check your File permission
      Ensure that wp-login.php is set to 664.
      Ensure that the wp-admin folder is set to 775.
    • This reply was modified 9 months, 3 weeks ago by clayp.
    Thread Starter imageshandlani

    (@imageshandlani)

    Alright @clay P. I’ll attempt the steps you provided and see if I can resolve the issue

    Thread Starter imageshandlani

    (@imageshandlani)

    Hi guys again. I think the WP-Admin access issue is secondary to the real issue. The site has a fatal error where the front end, wp-login were not accessible detailed below:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “ws_private_posts_subscribers” not found or invalid function name in C:\xampp\htdocs\sites\new-metro\wp-includes\class-wp-hook.php:324 Stack trace: #0 C:\xampp\htdocs\sites\new-metro\wp-includes\class-wp-hook.php(350): WP_Hook->apply_filters(NULL, Array) #1 C:\xampp\htdocs\sites\new-metro\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #2 C:\xampp\htdocs\sites\new-metro\wp-settings.php(643): do_action(‘init’) #3 C:\xampp\htdocs\sites\new-metro\wp-config.php(109): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\sites\new-metro\wp-load.php(50): require_once(‘C:\\xampp\\htdocs…’) #5 C:\xampp\htdocs\sites\new-metro\wp-blog-header.php(13): require_once(‘C:\\xampp\\htdocs…’) #6 C:\xampp\htdocs\sites\new-metro\index.php(17): require(‘C:\\xampp\\htdocs…’) #7 {main} thrown in?C:\xampp\htdocs\sites\new-metro\wp-includes\class-wp-hook.php?on line?324

    I followed the stack trace and commented line324 which removed the fatal error, and loaded the front end and wp-login but could not access the backend. @clay p & @George Appiah any advice or suggestions of handling this kind of fatal error?

    Sorry for the late response: life got in the way ??

    You shouldn’t be editing core files, and I’ll recommend you revert the change.

    Instead, disable all your plugins (by renaming the plugins folder in wp-content)…

    … and your active theme (by renaming the theme’s folder inside wp-content/themes/)… and test.

    If this works, then the problem is one of your add-ons doing something it shouldn’t be doing, causing the fatal error.

    You can then enable them one after the other, testing each time, until you find the culprit.

    Thread Starter imageshandlani

    (@imageshandlani)

    No worries at @George Appiah, I really appreciate the help.

    So yes I reverted all the changes I made in the files. I got the fatal error again. I then changed themes to the default 2024 one and boom the site loads with no fatal error just the layout and look changed. So it seems the theme is the cause of the fatal error.

    But the for the wp-admin I still can’t login. I’ll disable all plugins and re-able one at a time while testing to see the results thanks.

    Thread Starter imageshandlani

    (@imageshandlani)

    Good day again guys, @gappiah & @clayp. Good news so I managed to get admin access to my site. The theme was the culprit, I disabled the theme and everything worked. However now pages, links and content is rearranged and does not look and function as it should. Is there something I can do on the dashboard to get everything working as it should?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I can’t login to wp admin even with the right credentials’ is closed to new replies.