[wp-trac] [WordPress Trac] #22706: Preview not working correctly when Wordpress is not installed in same directory

WordPress Trac noreply at wordpress.org
Mon Dec 3 23:23:30 UTC 2012


#22706: Preview not working correctly when Wordpress is not installed in same
directory
-----------------------------+--------------------------
 Reporter:  frizzle          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.4.2            |   Severity:  major
 Keywords:                   |
-----------------------------+--------------------------
 I recently installed Wordpress into a different directory. So the page is
 accessed by going to http://mypages.com/ but the WP installation is in
 http://mypages.com/wp/

 I did this using the exact instructions here:
 http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

 The site is not MultiSite.

 It works perfectly EXCEPT when it comes to previewing posts. If I preview
 a unpublished, draft post, it tries to access
 http://mypages.com/?p=114&preview=true — which doesn't work.

 The only funny thing about this install (which is brand-new) the different
 directory. (The same theme, files, version, etc. work fine on a testing
 server where Wordpress is installed in the same directory.)

 I also have trouble previewing changes — I get this form of URL for pages
 and this form for posts:

 http://mypages.com/2012/12/03/post-
 title/?preview=true&preview_id=65&preview_nonce=41dd6ae5b9

 http://mypages.com/page-
 title/?preview=true&preview_id=43&preview_nonce=35c393cf95

 For both I get the following response: "You do not have permission to
 preview drafts."

 Again, the only thing different between this install and another, cloned
 install is the ability to have Wordpress in its own directory. I suspect
 the same sort of bug is at the heart of both.

 Not having the ability to preview posts or changes is a "major" bug in my
 book — it's pretty key for all of us who don't want to fly blind!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22706>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list