• I had some trouble yesterday and I thought I had it figured out but now I can’t even access the admin page at all and my theme has reverted to just the blog feed on the frontend. So far I have done the following:
    1. I updated the database prefix (db_prefix) in wp-config file
    2. Reset .htaccess file to default WordPress setup
    3. I changed the default theme, stylesheet and disabled all plugins in the database via phpmyadmin

    When I try to access wp-admin i get the following:

    Notice: Constant FORCE_SSL_ADMIN already defined in /home3/eddiscsports/public_html/wp-config.php on line 81
    Sorry, you are not allowed to access this page.

    Please any help would be appreciated,

    I should also mention that I use cloudflare.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    You still have at least the WPForo plugin code running. To disable all plugins use FTP or your hosting file manager to rename the plugins folder in wp-content. For good measure, move your theme folder out of wp-content/themes/, assuming there is one of the twenty* default themes still there for WP to use instead. Edit the wp-config.php file to comment out the define() line for FORCE_SSL_ADMIN, as some other code is already trying to set it.

    Clear all cookies related to your site from your browser. You should be able to regain admin access now. Move your theme folder back to wp-content/themes/ and reactivate it. Verify you can still logout/login. Restore the plugins folder name and reactivate your plugins, one at a time, testing log out/in after each.

    At any time any PHP warning or notice pops up somewhere, you should resolve the issue before continuing.

    Thread Starter eddiscsportsadmin

    (@eddiscsportsadmin)

    We worked with Hostgator tech online yesterday for over an hour. She did all the things you suggested and has referred our issue to ADMIN to address. The Force SSL was removed by Host Gator support. A clean CONFIG file was uploaded and new ADMIN account created.

    Please advise. We requested a roll back to a previous version. The cost is $25 but Hostgator wanted to refer higher up first. I can log in to admin but there is no dashboard showing.

    Moderator bcworkz

    (@bcworkz)

    What do you see after logging in? A blank white screen? Looking again at your front page, it looks like your plugins and theme are still active. Their folders all need to be renamed or moved so WP cannot find them and it reverts to a default state. You should then see the dashboard and can proceed to selectively restoring theme and plugins in order to narrow down the source of the error.

    Thread Starter eddiscsportsadmin

    (@eddiscsportsadmin)

    when i log in to wp admin i get a “Sorry, you are not allowed to access this page.” My plugins folder I renamed, and the only themes in the theme folder are the 2015 and 2019 themes, i removed and renamed the sydney and sydney child themes that I was using to a tmp folder. my website itself is currently just running the blog feed

    Moderator bcworkz

    (@bcworkz)

    Whatever your site is showing, it’s still the same WP installation isn’t it? The warning messages that are displayed indicate plugin files are being processed. How can PHP process files in /plugins/ if /plugins/ had been renamed?

    Login redirects can lead to places that can be problematic. After logging in, manually type in and navigate to eddiscsports.org/wp-admin/. You should at least get the dashboard, which may be enough for other admin screens to be available which cannot be accessed directly.

    If even that does not work, it points to a problem with browser cookies. Try clearing them again, or use a different browser you don’t normally use. The not allowed access message is normally invoked when your user does not have adequate role capability to do something. Of course the admin user should be able to access anything. If you are using a new admin account, it makes me wonder how that account was created. Adding a user directly to the DB is easy enough, but making that user an administrator takes some special effort. I’ve no reason to think Hostgator support wouldn’t do this correctly, but some doubt remains.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Help-Can’t access wp-admin’ is closed to new replies.