Unable to see pages and posts in maintenance mode
-
I went through all options and all worked well except when I went into maintenance mode, made a new post but was prevented from getting past maintenance page. I put IP address in whitelist – both the full and truncated one – but still no access when in maintenance. Just to be clear, I was able to log-in on maintenance page, but was unable to reload a draft post to view. Am I missing something? Attempting this on a multi-site, options set to primary page and subsites, tried with front end access both on and off.Thanks.
-
Attempting this on a multi-site, options set to primary page and subsites, tried with front end access both on and off.Thanks.
Is this a Network/Multisite subdirectory or subdomain site type?
The Put The Primary Site And All Subsites In Maintenance Mode and Put All Subsites In Maintenance Mode, But Not The Primary Site options are special options that require slightly different On/Off steps since these options work independently of each site’s MMode On/Off option settings. See the help text below.
This additional help text below has been added in BPS .51.4
Maintenance Mode coding work has been completed for Network/Multisite subdomain site types in BPS .51.4.Steps to use these special Network/Multisite options:
To turn On either of these special options, check the checkbox, click the Save Options button and click the Turn On button. To turn Off either of these options, uncheck the checkbox, click the Save Options button and click the Turn On button – you would not click the Turn Off button. You are resaving your options and then writing those saved option settings to the Maintenance template files. Or in other words, you have removed those options settings and are creating another new template file without these special option settings in that template file.I think I am missing some fundamentals here. My expectation was the creation of a static page that would appear for unlogged in users while logged in users would be able to view the site while working on it. That has been my experience in the past with maintenance mode and it has been very straightforward. Understand multi-site function may increase technical complexity but as I said, I must be missing some fundamentals. I am not suing subdomains, sticking with the subfolders structure. Thanks for the help.
Ok I assume then that all of the Maintenance Mode steps were not done and your IP address was not added/updated.
1. Save/Resave all Maintenance Mode option settings.
2. Click Preview to make sure MMode settings are the ones you want to use.
3. Click Turn On to turn on MMode.Maintenance Mode is designed in a way that can be a bit confusing since it allows you to update template files on the fly by resaving your option settings and turning on MMode again and covers all sorts of possible scenarios.
The basic logic and principle is this: MMode uses template files and each time you change something in those template files you want to save/resave your option settings and turn on MMode again. You are actually creating new template files by saving and turning on MMode each time.
Using the Countdown Timer setting/option/feature as an example makes this simpler to visualize. ie you want to be notified via email when your MMode Countdown Timer has reached 0. When you save/resave your MMode Countdown Timer setting (and all other settings) you are resetting the Countdown Timer time to now and it will start counting down to the time you set in the future. If you did not resave your MMode option settings and turn MMode on again your Countdown Timer time would be in the past and not now.
Sorry, still no luck. I have done all the BP .htaccess files and eliminated all BP alerts. Everything is working fine and makes sense except maintenance mode. Have set options with exception of timer which is a feature I don’t want. When I do a test page with maintenance mode on, I cannot view the test page in preview mode. All I get is the url – https://arcticexplorer.ca/sample-page/?preview=true&preview_id=2&preview_nonce=508c1a43c2
which is the maintenance mode page I designed. I want to be able to view the page I am working on. I referred wrongly to non-logged in viewers. I am admin and login as admin. Can insert screen capture of settings page if that would help. Obviously, I am doing something wrong. Not sure what to try next. Thanks.First off your design looks cool. ?? One of these days we will do a whole bunch of examples of what is actually possible with BPS MMode visually and technically. Pretty much anything you can imagine visually and technically are possible. ??
These are just notes for me:
When I view your site any/all pages I see that it is in MMode.
When I click on your Login link I see the standard BPS 403 Forbidden template. So frontend and backend MMode are enabled.Ok questions for you:
When you look at the root URL of your site do you see your site or the MMode template page?
Does the problem only occur when you are trying to preview a post or page?[Ye old duplicate thread deleted]
Do this Google search – “whats my ip address”. Is the IP address that you see in Google search results the same IP address that you are using in MMode?
When I am in maintenance mode and go to Visit Site, I get the BP maintenance page (url:https://arcticexplorer.ca/?p=22&preview=true). The same the same happens when I got to view a post. As PBS appears to work for many people, it points to my set up of a multi-site. It appears to be set up properly but there are a couple of things that make me wonder.
Point 1. The BPS security settings appear only on the subsites. This surprises me when I come to Put The Primary Site And All Subsites In Maintenance Mode because it appears I am controlling the primary site from a subsite as opposed to controlling a subsite from the primary site. There is no reference to BPS under network
Point 2. This may be due to my lack of understanding of multisite structure but when I go to View Site under Network Admin, I go to the first site I created – arcticexplorer.ca which has the same name and url as the Network admin.
If you are interested, I can set you up with access (it’s a new site) to see how to get BPS maintenance mode working for me. Thanks.
And yes, the IP addresses match.
Point 1 – wow yeah that should not be happening. Only the Primary site with blog ID 1 should be be seeing the security settings. All other subsites should have a blog ID of anything but ID 1. ie 2, 3, 4 etc. for subsites. All BPS checks are based on blog ID 1 since the Primary site is the only site that should be blog ID 1.
Maintenance Mode and probably everything else in BPS will not work correctly if your Primary site blog ID is not 1.
To check what ID’s each of your sites has go to the Network Admin panel >>> Sites page. hover over each site link and you should see the site id displayed at the bottom left corner of your Browser window. The URI/URL would look something like this for a Network/Multisite subdirectory site:
/site-info.php?id=2
Download and open your wp-config.php file. Do you see similar code to this in your wp-config.php file?
define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'your-primary-website'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘arcticexplorer.ca’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1)The difference is the subdomain install in my config is set to false. In your example it is set to true.
Perhaps I have to do a clean re-install.Yes that is correct. The constant will either be true or false depending on your Network site type. The code is the same/similar otherwise.
Maybe, but what are the site ID’s for all of your sites? What is the Primary site ID, what are the subsite ID’s?
arcticexplorer.ca (also domain)
https://arcticexplorer.ca/wp-admin/network/site-info.php?id=1avcr.arcticexplorer.ca
https://arcticexplorer.ca/wp-admin/network/site-info.php?id=2Above are the two sites I have created and are appearing on network dashboard as same. Not sure how to get to Primary Site ID. That dashboard has no pages or post items on menu, only Sites, Users, Themes, Plugins, Settings, Updates.
This is the latest version of WordPress.
- The topic ‘Unable to see pages and posts in maintenance mode’ is closed to new replies.