• Hello everyone,

    I’d appreciate any help I can get because I’ve already spent hours on troubleshooting but I can’t find an answer.

    My problem started as soon as I switched over my website from one domain to another domain on GoDaddy. (mcgeesteel.com > karmasteel.us)

    After doing that, I was unable to access my dashboard. Every time I would enter my login credentials, instead of taking me to the dashboard, it would refresh karmasteel.us and show me the home page.

    I tried creating new admin users thinking that maybe something is wrong with my account. I updated PHP through GoDaddy, tried switching it back to the old domain, tried deleting .htaccess, talked to GoDaddy support team… Nothing really helped.

    It seems like there might be a plugin issue because after I disabled WooCommerce in the phpMyAdmin, it got me to this stage: https://prnt.sc/gO5YyftMqzJ4

    Now I can at least see that a dashboard exists but I still cannot access it after I click on Karma Steel / Steel Buildings Contractor.

    I do not know what else can I do to fix that. Is my website lost at this point? Should I just start over?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hi @kingcace

    The most usual problem with the domain change is that you probably have references to the old URL (mcgeesteel.com) in the database.

    If you have access to the database, try to update all the occurrences in the database from mcgeesteel.com to karmasteel.us. You can do this with:

    Hi @kingcace,

    You mentioned you were able to disable the WooCommerce plugin through phpMyAdmin. Could you try disabling all plugins and see if the problem remains? If that fixes it, then you can enable plugins one by one to identify the problematic plugin.

    Could you also verify that the user you are logged in as is an admin? You can do so through phpMyAdmin, in the wp_usersmeta table: the wp_capabilities meta_key for that user should look something like a:1:{s:13:"administrator";b:1;}.

    Thread Starter kingcace

    (@kingcace)

    Do you maybe have a link to a tutorial that might help with it? I can’t install any plugins because I cannot access the dashboard, but I have access to phpMyAdmin.

    I tried following this (Step: How to Change/Update links with MySQL) and it said that it affected over 1000 rows but even after that I cannot access the dashboard.

    Thread Starter kingcace

    (@kingcace)

    @psrpinto – Yes, I did disable all of them and that is how I realised that maybe WooCommerce might be the issue. But unfortunately, the issue still remains.

    Yes, I can confirm that I am logged in as an administrator.

    If you don’t have access to the backend, how did you disable the plugins? If your hosting has WP-CLI, you can enable, disable and install new plugins using the wp cli command.

    Thread Starter kingcace

    (@kingcace)

    @amieiro – I do have access to the backend (phpMyAdmin, cpanel etc.), but I do not know how to use wp cli or do anything with a plugin from the backend.
    I ended up using these instructions (How to manually replace the old URL in the WordPress database) but it still does not work.

    It feels like I’m running out of options.

    Thread Starter kingcace

    (@kingcace)

    I hope this could be my last resort but is it possible to download all the content, restart wordpress and upload it again so everything works?

    You can download a copy from the files and the database, but if you restart the WordPress and you upload the files and the database again, you are going to overwrite the files and database created when you restart WordPress, so you will be in the starting point.

    Thread Starter kingcace

    (@kingcace)

    Ahh… Does anyone else have an idea what can I do? ??

    @kingcace Hi, Since you mentioned that you updated the domain in WordPress, can you confirm that you changed both “siteurl” and “home” in wp_options table?

    This query would show you both values:

    select * from wp_options where option_name IN ("siteurl","home");

    If they don’t match the new domain, then that could be the problem. Could you show us the value for both rows, like this:

    
    MariaDB [example_com]> select * from wp_options where option_name IN ("siteurl","home");
    +-----------+-------------+--------------------------+----------+
    | option_id | option_name | option_value             | autoload |
    +-----------+-------------+--------------------------+----------+
    |        40 | home        | https://example.com      | yes      |
    |         1 | siteurl     | https://example.com      | yes      |
    +-----------+-------------+--------------------------+----------+

    That being said, don’t worry, this is fixable. Just need to figure out what’s causing the redirection from the WordPress admin panel to frontend homepage ??

    Thread Starter kingcace

    (@kingcace)

    Thread Starter kingcace

    (@kingcace)

    I talked to GoDaddy support again this morning and they’re telling me his:

    https://prnt.sc/mv2_96lUdT6L

    https://prnt.sc/KfVg90V6EEAC

    https://prnt.sc/m5C5jIvRyxnM

    • This reply was modified 1 year, 9 months ago by kingcace.

    Ok, the siteurl and home is correct. Like your webhost support said, there is something that’s redirecting you once you login, which depends on where that resides i.e. in code or in database.

    And based on the screenshot in your original post, I can see you are logged in on the site, as I can see admin bar. Can you try accessing https://karmasteel.us/wp-admin/plugin-install.php directly, to see if its redirecting you away from all admin pages or not? This would atleast enable you to disable plugins or install plugins easily. And jump to specific pages in admin. ??

    If you have access to file manager in your hosting account panel, you can still install plugins by uploading the files under wp-content/plugins directory. I need you to install Better Search Replace plugin as originally suggested by Jesús above. Then you want to replace all occurrences of https://mcgeesteel.com and https://mcgeesteel.com with https://karmasteel.us. This has a very good chance of replacing your configured redirection and fixing the issue.

    Thread Starter kingcace

    (@kingcace)

    @ashfame – this is what I’m getting after trying to go to https://karmasteel.us/wp-admin/plugin-install.php

    https://prnt.sc/ZhNzuUI-yofJ

    I have access to file manager and I did install it there but I can’t seem to understand how to run the plugin from File Manager

    https://prnt.sc/q4umNlkxnNdU

    Based on that screenshot when trying to access plugin install page directly, that indicates your user account doesn’t have the permission i.e. it doesn’t have privileges as an admin account should.

    This sort of an issue doesn’t happen when changing the domain, but lets try to find out what’s wrong. Can you run the following queries and tell me the output (I would need the second one in text and not a screenshot – use a code block for it by typing /code and pasting the text in it).

    ### List users and their roles

    select ID, user_login, meta_value from wp_users u JOIN wp_usermeta um ON (um.user_id = u.ID) WHERE um.meta_key = 'wp_capabilities';

    ### Capabilities attached to roles

    SELECT option_value FROM wp_options WHERE option_name = 'wp_user_roles';
Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Dashboard not working after switching domains’ is closed to new replies.