Live Preview in WP 3.4 Multisite not working
-
I upgraded from WP 3.3.2 to WP 3.4 in my Multisite (path) environment. Now I realised, that the live preview of themes doesn’t work. When trying to do the live preview, I get a sidebar left and a blank main section.
On another WP 3.4 installation (single) it’s working fine. So no error from Firefox.
Any ideas?
-
If you’re able to reproduce the problem on your live site with the default theme, then yeah, start with the plugins.
Got it to break. Once I installed wordpress-mu-domain-mapping AND configured a separate domain (instead of the subdomain) as the primary, the live preview no longer works.
Defined https://blog.ickl.me as the domain for https://a.xlerb.com and the live preview only displays a blank screen.
Yup, when I revert to using the subdomain as the primary, then live preview functions again.
WORKAROUND INSTRUCTIONS:
1. Go to Tools, Domain Mapping, and change the primary domain to be the subdomain
2. Go to Appearance and Live Preview all you like
3. Go back to Tools, Domain Mapping, and change the primary domain back to the full domainIt’s not great, but it will let you have live preview when you’re changing the theme.
I can’t reproduce that at all…
halfelf.org is the primary domain of tech.ipstenu.org, and live preview worked just fine.
ETA: That said, you’re mapping a subdomain’d domain as a primary domain?
So like if I did sillyfoo.halfelf.org to sillyfoo.ipstenu.org?
I don’t think it has anything to do with a subdomain. My primary domain is mypencil.net; if I use https://glenc.co, Live Preview does not work; if I use https://glenc.mypencil.net, then Live Preview works.
Likewise with all of my other domains/sites. Some of them are third-level domains, other are second. Live Preview works when I use the root domains subdomain as the primary, and it fails when I use the other domain.
I’ve got news to the topic: In my “old” WP installation, which is only about 9 months old, I can’t preview themes in “existing” subblogs. But I created a new subblog and there I can do the live preview.
So, it has nothing to do with plugins. It must be a bug in the preview module, how it handles old subblogs from before WP 3.4.
Hope it helps.
Interesting. I’ll see if I can test that with a new subdomain on my old site.
My primary domain is mypencil.net; if I use https://glenc.co, Live Preview does not work; if I use https://glenc.mypencil.net, then Live Preview works.
I’ve had Multisite on this install for 2 years and a month (yikes!). No problem with mapped domains… I really think this is something else.
A blank page is a PHP error. Have you checked your PHP error logs?
Mike —?yes, I’ve kept the error log file open the entire time. Nothing there.
FYI, I added a new site, mapped it to a new domain, and Live Preview failed.
Changed back to the subdomain, and Live Preview works.
Nothing in the Apache error logs.
Here is the access log of a FAILED LIVE PREVIEW:
108.73.53.2 - - [12/Jul/2012:20:59:26 +0000] "GET /wp-admin/customize.php?theme=firstyme HTTP/1.1" 200 16773 "https://foo.mypencil.net/wp-admin/themes.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:59:27 +0000] "GET /wp-content/themes/firstyme/img/header-default.jpg HTTP/1.1" 200 19895 "https://foo.mypencil.net/wp-admin/customize.php?theme=firstyme" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:59:27 +0000] "POST / HTTP/1.1" 301 23 "https://foo.mypencil.net/wp-admin/customize.php?theme=firstyme" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"
Here is the access log of a SUCCESSFUL live preview:
108.73.53.2 - - [12/Jul/2012:20:58:54 +0000] "GET /wp-admin/customize.php?theme=blaskan HTTP/1.1" 200 17258 "https://foo.mypencil.net/wp-admin/customize.php?theme=catch-box" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:55 +0000] "POST / HTTP/1.1" 200 11807 "https://foo.mypencil.net/wp-admin/customize.php?theme=blaskan" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/js/libs/jquery.fitvids.js?ver=3.4.1 HTTP/1.1" 200 2543 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/js/libs/modernizr.min.js?ver=3.4.1 HTTP/1.1" 200 14990 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/js/mylibs/helper.js?ver=3.4.1 HTTP/1.1" 200 4657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/js/script.js?ver=3.4.1 HTTP/1.1" 200 1180 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/framework.css?ver=3.4.1 HTTP/1.1" 200 6658 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/style.css?ver=3.4.1 HTTP/1.1" 200 37383 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2" 108.73.53.2 - - [12/Jul/2012:20:58:56 +0000] "GET /wp-content/themes/blaskan/fonts/league_gothic-webfont.woff HTTP/1.1" 200 24300 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"
Hmmm, this is weired!
As I wrote before, a few days ago I created a new subblog https://www.f-site.ch/ausfluege and I could right away preview other themes.
Today it doesn’t work anymore on the blog ausfluege.
… After another test: After creating the new blog and testing with preview, I mapped it to ausflugsziele.beoblog.com. When it is mapped, preview doesn’t work anymore.I did the same now with https://www.f-site.ch/test1058. Without further mapping it’s ok.
After mapping to test1058.f-site.ch as primary page – failure.
After setting https://www.f-site.ch/test1058 as primary page but leaving the test1058.f-site.ch there – OK.So it has to do with the setting of the primary page in domain mapping.
– Martin
Okay let’s step back ??
On wp-admin/network/settings.php?page=dm_admin_page
Did you put in IP or CNAME? (I use IP)
What options did you check? (I checked only #2)
On /wp-admin/network/settings.php?page=dm_domains_admin
Did you only add the mapped domain? Like mine just has a list like ‘halfelf.org’ and, yes, it’s primary ??
I have IP setting
I have #1-#4 checked (I’ve also tried it with #2 off, with no change). About to uncheck #4 and see if that changes things.
@ipstenu: On my side:
1) I use IP
2) Options 1,2,3,4 (btw, I can’t change these not any more)
- The topic ‘Live Preview in WP 3.4 Multisite not working’ is closed to new replies.