WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
Fixing the Customizer (9 posts)

  1. Erick Hitter
    Member
    Posted 1 year ago #

    Rewriting the site URL when invoking the customizer triggers the following error in the browser console:

    XMLHttpRequest cannot load [MAPPED DOMAIN]. Cannot make any requests from null.

    Detecting the Customizer-spawned request and skipping siteurl rewriting is pretty easy, and in my production environment, fixes the problem. My patch is available at https://gist.github.com/4430520.

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. etfb
    Member
    Posted 1 year ago #

    That looks promising. I'm having a similar problem with the Cart66 plugin, which works on one site and not another. The difference between the sites is that the first is using its default domain and the second has a different primary domain. The obvious conclusion is that Domain Mapper does something to make Cart66's AJAX functionality fail due to the domain being identified inconsistently.

    I will use your technique to see if I can fix this. If I can, it would appear that this plugin will need some kind of whitelisting feature to enable other plugins and features to work with it. I'll report back with my results shortly.

  3. etfb
    Member
    Posted 1 year ago #

    Confirming that the patch definitely fixes the long-standing bug in this plugin relating to the use of the Customizer with domains outside the default. Needs to be rolled in ASAP.

    Now hunting down the appropriate settings for the Cart66 incompatibility.

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Get the development version.

  5. Unsal Korkmaz
    Member
    Posted 1 year ago #

    development version is not fixing problem atm.
    +1 for fix. thank you its working

  6. Erick Hitter
    Member
    Posted 1 year ago #

    I've updated the patch at https://gist.github.com/4430520 to detect the Customizer in a less-hacky way.

    Any chance of getting this into the plugin sometime soon?

  7. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    @Erick - see if Donncha has a minute to look at it.

  8. David Gwyer
    Member
    Posted 1 year ago #

    Having the same issues with the customizer not working. Is there an ETA on a Plugin update anytime soon? :)

  9. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    @David Gwyer - you can apply the patch provided in the original post. I probably will not be doing anything with the plugin for a while due to health reasons.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags