Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional WordPress: Design and Development, 3rd Edition
This is the forum to discuss the Wrox book Professional WordPress: Design and Development, 3rd Edition by Brad Williams, David Damstra, Hal Stern; ISBN: 978-1-118-98724-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WordPress: Design and Development, 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 4th, 2016, 04:06 PM
Don Don is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Domain Mapping in WP 4.5

Domain Mapping in WordPress 4.5 appears to have been absorbed into the core and is not working properly with Multisite. I've tried to get help from the WordPress forums and would like to know if it is possible to contact the authors of this book.

The WordPress MU Domain Mapping plugin referenced in the third edition of Professional WordPress: Design and Development, has not been updated in over a year. This plugin performs the domain mapping functions successfully in Multisite 4.5.2; however, it prevents the preview from loading when using Appearance -> Customize from the Dashboard.

The WordPress forum and to my knowledge the plugin's developer, has indicated the new way to map registered domain names to WordPress subdomains is by editing the: Network Admin Dashboard -> Sites -> Edit Site -> Site Address (URL) field. This procedure does indeed map registered domain names to WordPress subdomains but prevents access to the subdomain's dashboard in the following manner:
  1. When logged in as the Super Admin and clicking on the subsite's (subdomain's) dashboard link, one is sent to the WordPress Admin login screen, which fails to log one in with the following message: "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress."

    NOTE: If one inserts: define(‘COOKIE_DOMAIN’ , ‘the-registered-mapped-domain-name’) into wp-config.php, one can login to the subdomain’s dashboard just fine; however, logging into the Super Admin Dashboard will no longer be possible! (I also tried define(‘COOKIE_DOMAIN’ , ‘*.*’) and multiple define() functions in the same wp-config.php file).

  2. When using https://subdomain.main-domain.tld/wp-login.php, one is redirected to the home page of main domain's website.

The end result of using the "accepted" method of domain mapping in Multisite 4.5.2 is essentially a complete lock out of the subdomain Dashboards. It's hard to believe something this critical wasn't completely tested, so I'm assuming there's a quick fix I haven't yet discovered.

I haven't finished chapters 8 through 10 yet but will continue to look for ideas on how to rectify this situation... in the mean time, any help would be great!

Thank you,
Don

Last edited by Don; June 4th, 2016 at 04:09 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MAMP & WP Email Configuration msheaver BOOK: Professional WordPress 1 January 7th, 2016 07:31 AM
WP 3.0 updates? Oswald BOOK: Professional WordPress 5 May 29th, 2012 03:37 PM
Template match should find all elements ending in 'wp' Kenneth.Dougherty XSLT 2 November 23rd, 2009 01:16 PM
How to properly configure DNS, SMTP and domain mapping to IP? baburman Windows Server 0 May 19th, 2009 11:28 AM
Same pages for sub domain from main domain vivek_inos ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2007 09:15 AM



All times are GMT -4. The time now is 04:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.