• ika2525

    (@ika2525)


    Suddenly I can no longer log in to the admin screen.

    The login screen is displayed normally with wp-login.php/ and wp_admin/, and I can log in, but I am redirected to the page set as the home screen. So I cannot go to the admin screen.

    I have set the function php so that the toolbar is not displayed for anyone other than the administrator. However, all logged-in users are administrators.

    Also, I disabled the plugin from the database, but for some reason it is not reflected. When I access the admin screen from the rental server, the plugin is disabled, but when I access it with Chrome, it is not disabled. The Chrome cache has been done. Do you know the reason?

    After that, I changed the name of the plugin from the file manager and saved it. When I searched for it in Chrome, the plugin was disabled, but I cannot access the admin screen.

    By the way, an external user was accessing it to investigate problems with the plugin. It seems that I performed troubleshooting. After that, I was no longer able to access the admin screen.

    Is there anything else I can do?

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック投稿者 ika2525

    (@ika2525)

    Additionally.

    I removed the toolbar hiding code from the file manager and was able to access the dashboard, but for some reason I accessed a dashboard that wasn’t for administrators, even though I was supposed to be an administrator.

    So I set the user permissions in phpmyadmin user meta, but there was no change.

    mokkosan

    (@mokkosan)

    Based on the description provided, it seems there might be multiple issues at play affecting your ability to access the WordPress admin screen. Let’s address each potential cause and provide solutions:

    1. User Role and Capabilities Issues
      It sounds like there might be an issue with user roles and capabilities.

    Solution:

    Check User Role: Ensure that the user you are logging in with has the administrator role.

    In phpMyAdmin, run the following query to check the role:
    sql
    SELECT * FROM wp_usermeta WHERE user_id = YOUR_USER_ID AND meta_key = 'wp_capabilities';
    You should see something like a:1:{s:13:”administrator”;b:1;}. If not, update it accordingly.
    Update User Role:

    If the role is incorrect, you can update it:
    sql
    UPDATE wp_usermeta SET meta_value = 'a:1:{s:13:"administrator";b:1;}' WHERE user_id = YOUR_USER_ID AND meta_key = 'wp_capabilities';

    1. Plugin or Theme Conflicts
      Since you mentioned disabling plugins from the database and renaming plugin folders, it’s possible a plugin or theme is still causing issues.

    Solution:

    Disable All Plugins: Ensure all plugins are disabled by renaming the plugins folder temporarily:

    Access your site via FTP or file manager and rename wp-content/plugins to wp-content/plugins-disabled.
    If you can access the admin screen, there is a plugin conflict. Rename the folder back and reactivate plugins one by one to identify the culprit.
    Switch to Default Theme:

    Temporarily switch to a default theme like twentytwentyone by renaming your active theme folder in wp-content/themes.

    1. Cache Issues
      Even though you cleared the Chrome cache, there might be other caching layers involved.

    Solution:

    Server-Side Caching: Clear any server-side cache if you are using caching solutions like Varnish, NGINX, or hosting provider caching.

    Browser Cache: Clear all browser caches, including cookies and site data.

    1. Database Corruption or Misconfiguration
      There might be an issue with your WordPress database settings or tables.

    Solution:

    Repair Database:
    Add the following line to your wp-config.php file:
    php
    define('WP_ALLOW_REPAIR', true);
    Navigate to https://yourwebsite.com/wp-admin/maint/repair.php and follow the instructions to repair and optimize the database. Remove the line from wp-config.php after completing the repair.

    1. External User Interference
      An external user might have made changes that are affecting your site.

    Solution:

    Review Changes: If possible, review the changes made by the external user. Check for any custom code or changes in the functions.php file, plugins, or settings they might have altered.

    Restore Backup: If you have a recent backup before the issue started, consider restoring your site to that point.

    Additional Steps
    Check Debug Logs:

    Enable debugging in wp-config.php to capture any errors:
    php
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    Check the wp-content/debug.log file for any error messages.
    Update WordPress: Ensure that your WordPress installation, themes, and plugins are up to date.

    By following these steps, you should be able to diagnose and resolve the issues preventing access to your WordPress admin screen. If the problem persists, consider reaching out to a WordPress specialist who can provide more in-depth assistance.

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック「I can’t log in to the admin page.」には新たに返信することはできません。