WordPress MU Domain Mapping
Preview Posts/Pages does not work (5 posts)

  1. ticketfly
    Posted 3 years ago #


    I've seen a handful of posts on this topic which are closed, but the issue persists, so I am starting a new one.

    We manage several sites on an install of Multi Site using the Domain Mapping plugin. When a user clicks preview draft they get an error page that says "You do not have permission to preview drafts."

    All of our sites are mapped domains, but WP-Admin is accessible only from a subdomain.


    Since the user is creating/editing the page in the WP-Admin Subdomain, when they click preview the page is redirected from http://mapped-domain-name.master-domain.com/page-name/?preview=true&preview_id=xxx&preview_nonce=xxxxxxx to http://www.master-domain.com/page-name/?preview=true&preview_id=xxx&preview_nonce=xxxxxxx

    This is definitely where the problem lies. You can edit the cookies to spoof WP into thinking you are logged in on that domain, but that is not a viable workaround.

    I've seen comments where folks have said removing the &preview_nonce=xxxxxxx param string fixes this, which only removes the error page, but does not load the new preview content. Even if that were to work it's still not a great workaround for users.

    Has anybody had any luck patching this?

    This plugin is invaluable to us, but this bug has become quite a nuisance.

    Thanks in advance,


  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    As I have explained in those other threads, you cannot preview a post in WP if you are not logged in. If your users are logged into the mapped domain they will be able to preview posts.

    This limitation is not a bug in Domain Mapping. It's a security feature of WordPress.

  3. qdinar
    Posted 3 years ago #

    how to log in to mapped domain? maybe i should allow third party cookies? i will try. ... seems, indeed, this has fixed it. i have only temporarily allowed third party cookies, after that it works.

  4. kimberleyaroper
    Posted 3 years ago #

    I am having the same problem with the same domain structure as noted. This is not a problem for another admin following exactly the same steps on his account. Further, he can reproduce the problem with my account on his machine.

    I have allowed third-party cookies.

    Right-clicking the Preview Changes button and selecting "Open in new tab" works just fine. Left-clicking generates the error, of course.

    The error is consistent with Chrome and IE.

    Any clues?

  5. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    This thread is several months old. Have you updated to the latest version (released a couple weeks ago)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic