Support » Fixing WordPress » Site visible. Logged in admin bar visible. But not allowed access to wp-admin

  • Resolved john_roberts

    (@john_roberts)


    Just set up WordPress from scratch, with 4.7, for https://clock.pencoyd.com — no posts yet.

    WHAT I SEE
    * Live site is visible (brand new, no posts, so just skeleton) and Admin bar is visible at the top when I sign in (screenshot: http://pencoyd.com/misc/live-site-showing-logged-in-admin-bar.png)

    WHAT I DO
    * Click the dashboard menu option from the admin bar, or visit any /wp-admin URL directly. (I’ve tried several.)

    PROBLEM
    * On any wp-admin page, I get “Sorry, you are not allowed to access this page.” (http://pencoyd.com/misc/not-allowed-access.png for a screenshot)

    HYPOTHESIS
    * Wondering if the problem is related to SSL settings. I want to end up with HTTPS for everything, but perhaps I’ve configured incorrectly… see below.

    ENVIRONMENT
    * I’ve added the following to my wp-config.php

    define('WP_HOME','https://clock.pencoyd.com');
    define('WP_SITEURL','https://clock.pencoyd.com');
    
    define('FORCE_SSL_ADMIN', true);
    // in some setups HTTP_X_FORWARDED_PROTO might contain 
    // a comma-separated list e.g. http,https
    // so check for https existence
    if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
           $_SERVER['HTTPS']='on';

    * Running on MediaTemple’s Grid Server (GS) default configs all the way around.
    * No plugins other than default installed.
    * One custom theme installed and customized.
    * Site runs via Cloudflare global reverse proxy; I’ve purged cache a few times just in case. I have Flexible SSL set up in Cloudflare, currently, so between Cloudflare and my host the connection may go over HTTP.
    * I do not have an SSL certificate on the webserver at this time.
    * Only one user… me. I used phpMyAdmin to review wp_capabilities and wp_user_level and are set properly (I believe) to
    a:1:{s:13:"administrator";b:1;}
    and wp_user_level is set to 10

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site visible. Logged in admin bar visible. But not allowed access to wp-admin’ is closed to new replies.