Viewing 7 replies - 1 through 7 (of 7 total)
  • Preview function not accept guest or account with have’nt private role.

    Thread Starter johnmontfx

    (@johnmontfx)

    Thanks for the suggestion, thesun2012….

    I should have been more clear that I’m the guy who moved the files, changed the config files, and updated the permalinks. I’m a full administrator.

    Brandon Kraft

    (@kraftbj)

    Code Wrangler

    The URL structure is right for a custom post type (it doesn’t add any of the pretty permalink fun until after it is published).

    I notice different subdomains for your links (seeing www vs expecting ord). Was that related to the move?

    Tried setting the WP_SITEURL in wp-config.php in addition to WP_HOME.

    Honestly, I don’t have a solid idea of what the issue would be yet, but that would be where I’d start.

    Thread Starter johnmontfx

    (@johnmontfx)

    Sorry — I mistakenly copied from my dev site — that was the ord.fxphd link. I can’t change that post, but replace that with “www.fxphd.com” and that’s what I think the correct link should be.

    Initially, I had both SITEURL and HOME in my config file:

    define('WP_HOME', 'http://www.fxphd.com/wp');
    define('WP_SITEURL', 'http://www.fxphd.com' );

    But what happened was that the “/wp/” showed up in the URLs, which I didn’t want. Also, wp-admin kept looping between /wp-admin and /wp/wp-admin and /wp-login. I couldn’t log into the admin area.

    Removing those lines from wp-config fixed that problem and the site and admin worked fine. It seems as though those settings are a tiny bit different than if you enter them in the database (General Settings).

    Yes, I’m flummoxed 🙂

    Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Those two should be switched. WP_HOME is your site’s home.. what you want visitors to type in. WP_SITEURL is where the WP install is located. (ref: http://codex.wordpress.org/Editing_wp-config.php#Advanced_Options )

    Thread Starter johnmontfx

    (@johnmontfx)

    Thanks so much for that, Brandon. For some reason, switching those in the config and then commenting them back out and relying on the db entry did the trick.

    All is good 🙂

    I should have known that but I got confused by the use of the word “site” in the instructions for moving the folder. I wrongly assumed that site would use the “SITE” constant in the config file:

    n the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com

    Thanks again! Time for a Friday beer. 🙂

    Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Agreed—it is confusing! Enjoy the suds…I may have started early 😉

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘moved install into wp/ subdirectory, now admin preview broken’ is closed to new replies.