WordPress.org

Ready to get started?Download WordPress

Forums

Super Admin yet 'do not have permission to view drafts'...?! (15 posts)

  1. mrjonnywood
    Member
    Posted 1 year ago #

    I've recently set up a multisite with 3 sites. As I set everything up I am the Super Admin. I've also set 3 other users as Admins and one other Super Admin.

    Recently I noticed that when I try to view a draft of the post it says

    You do not have permission to preview drafts.

    And when I'm browsing the font end of the blog, where there used to be edit buttons I can no longer see them (as if I wasn't logged in or an Admin).

    Anyone familiar with this problem?
    Is there a 'reset user permissions' process I can run?

  2. What ID are you logged in as when you get the no permissions? Are you 100% sure it's super admin?

  3. mrjonnywood
    Member
    Posted 1 year ago #

    Certain it's Super Admin user but where do I find the ID?

    It's odd as it allows me to edit and update the posts too but not preview...
    There's also an issue with Live Preview of themes. When I go to view a preview it loops back to the Login Window stating

    Please log in again.
    Your session has expired. Please log-in again.

    but when I hit cancel I am stil logged in as normal.

  4. What theme are you running on the site right now?

  5. mrjonnywood
    Member
    Posted 1 year ago #

    It's a custom theme built by me with a child theme (also custom built)

    http://cy4or.co.uk

  6. Okay, before you get too crazy deep, check the site with TwentyEleven :)

  7. mrjonnywood
    Member
    Posted 1 year ago #

    Okay, before you get too crazy deep, check the site with TwentyEleven :)

    Not really an option, it’s a live client site. The permissions errors have only just begun (yesterday) but the site has been set up for over a month and was made a multisite last Monday.

    I can set up a new site on the install and test TwentyEleven on that.

  8. Try that then.

    Yesterday was Tuesday, Multisite day was Monday... When did you upgrade to 3.4?

    It's very, very, very, possible the theme isn't happy with Multisite, or a plugin isn't :/

  9. mrjonnywood
    Member
    Posted 1 year ago #

    Multisite was last Monday. Been running a week. Upgraded to 3.4 before installing Multisite.

    However, I think I've found some important info.

    • Before I created the Multisite I had installed WP in the root folder of my server 'public_html'
    • I then moved the install to a sub-directory called 'forensics' – all fine, now instead of loggin in at domain.com/wp-login.php I logged in at domain.com/forensics/wp-login.php
    • When I decided to use Multisite I moved WP back to root folder
    • Deleted the sub-folder 'forensics' from the server

    Now logging in under domain.com/wp-login.php I get the permission errors but for some reason I can still go to domain.com/forensics/wp-login.php and when I log in here everything is as it should be.

    This is very strange as I changed the WordPress address and the site address back to just domain.com – why would the login still be available under the sub-directory? Especially when the sub-directory no longer exists on the server?!!

  10. Huh. Okay, search the DB for /forensics/ and see what comes up?

  11. mrjonnywood
    Member
    Posted 1 year ago #

    Already did, it's a mess. Root of the problem identified!

    I found this post on updating the root url for multisite and although not directly relevant I've backed up my db and begun to search for /forensics/ replacing each instance with /

    There were a lot of them. I'll let you know how I get on but I'm very nervous about replacing the db once I've made the changes.

  12. I would grab this: http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

    Let it do the search/replace.

  13. mrjonnywood
    Member
    Posted 1 year ago #

    Thanks, I'll check it out. Looks really simple and nice.

  14. mrjonnywood
    Member
    Posted 1 year ago #

    Okay, used the interconnectit.com tool but didn't seem to do anything, not sure if I used it right. Anyway, decided against a manually search & replace in the db after reading these two articles:

    Instead opted for this Search & Replace plugin and replaced 6 instances of /forensics/ with /

    I don't seem to be having the admin permissions problems, but I can still access the login page domain.com/forensics/wp-login.php which shouldn't be possible.

  15. but I can still access the login page domain.com/forensics/wp-login.php which shouldn't be possible.

    Is there somethign in your .htaccess that would allow that?

Topic Closed

This topic has been closed to new replies.

About this Topic