Need help with Maintenance Mode
Permalink
Hi,
Hopefully I've posted this in the right place. I have two things I am having trouble accomplishing.
1. I am looking to modify the default maintenance mode message. I tried getting the Maintenance Editor add-on but it did not work for me.
I read this:
https://www.concrete5.org/community/forums/usage/how-do-i-edit-the-m...
but wasn't able to make sense of the "single_pages" stuff.
Does anyone have any advice or instructions that would help me add some text to the maintenance mode message?
2. When in maintenance mode, as admin, I am unable to see the front end of the site. I did some googling and saw that other people have experienced the same, but I wasn't able to find a solution. Does anyone know how I can fix this so I (and only those with admin level) can see the front end and edit the site pages while the site is in maintenance mode? I can get to the dashboard but nothing front end.
Thank you in advance for your time!
Brendan
Hopefully I've posted this in the right place. I have two things I am having trouble accomplishing.
1. I am looking to modify the default maintenance mode message. I tried getting the Maintenance Editor add-on but it did not work for me.
I read this:
https://www.concrete5.org/community/forums/usage/how-do-i-edit-the-m...
but wasn't able to make sense of the "single_pages" stuff.
Does anyone have any advice or instructions that would help me add some text to the maintenance mode message?
2. When in maintenance mode, as admin, I am unable to see the front end of the site. I did some googling and saw that other people have experienced the same, but I wasn't able to find a solution. Does anyone know how I can fix this so I (and only those with admin level) can see the front end and edit the site pages while the site is in maintenance mode? I can get to the dashboard but nothing front end.
Thank you in advance for your time!
Brendan
Does anyone have any ideas?
Edit /concrete/startup/maintenance_mode_check.php
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); Loader::model('user'); if ((!$c->isAdminArea()) && ($c->getCollectionPath() != '/login')) { $smm = Config::get('SITE_MAINTENANCE_MODE'); $u = new User(); if ($smm == 1 && $u->getUserName() != "admin") { $v = View::getInstance(); $v->render('/maintenance_mode/'); exit; } }
Hi!
Thanks for your response. Please correct me if I have misunderstood your instructions.
I copied the code you provided and used it to replace the contents of the file you specified.
I don't actually see any change in how the site presents itself. Am I supposed to alter that code in any other way or should it just work? I am assuming that this is supposed to address my issue of not being able to see the front end while in maintenance mode while logged in as admin.
thanks for your patience and assistance,
Brendan
Thanks for your response. Please correct me if I have misunderstood your instructions.
I copied the code you provided and used it to replace the contents of the file you specified.
I don't actually see any change in how the site presents itself. Am I supposed to alter that code in any other way or should it just work? I am assuming that this is supposed to address my issue of not being able to see the front end while in maintenance mode while logged in as admin.
thanks for your patience and assistance,
Brendan
If you are using c5.6 or older the code will work.
Hi,
I am using 5.6.3.3 according to the Environment Information screen.
I've changed the code as directed but not having any luck. I must be missing a step somewhere... thoughts?
I am using 5.6.3.3 according to the Environment Information screen.
I've changed the code as directed but not having any luck. I must be missing a step somewhere... thoughts?
I am sorry to tell you that @amrod's suggestion will not achieve what you are trying to do.
What you must do is this:
Go to the root/concrete/single_pages folder and copy the maintenance_mode.php file.
Next go to root/single_pages folder and put the copy in there.
Next edit the copied file and modify it to your preference, note that you will see code like this.
You can change this to simple html like this
What you must do is this:
Go to the root/concrete/single_pages folder and copy the maintenance_mode.php file.
Next go to root/single_pages folder and put the copy in there.
Next edit the copied file and modify it to your preference, note that you will see code like this.
You can change this to simple html like this
<h1>Coming Back Soon</h1> <p>This site is currently down for maintenance.</p>
my solution is for his 2. question... and it works...
hi!
Thank you for your time and help. I followed the steps you provided, however I have not had a successful result in solving the issue. Do you have any further suggestions as to why? Is there any other code I can show/provide from any specific files so you can see if I need to change anything else?
thanks,
Brendan
Thank you for your time and help. I followed the steps you provided, however I have not had a successful result in solving the issue. Do you have any further suggestions as to why? Is there any other code I can show/provide from any specific files so you can see if I need to change anything else?
thanks,
Brendan
I tried this and it doesn't seem to have any effect. Nothing seems different on the maintenance mode message at my URL. Since I wasn't sure from your message whether I should keep it or not, I tried with and without the following code which is before the maintenance mode message:
Do I need to direct the site to the copied file somehow so it knows to read it instead of whatever other file it was reading before? Just brainstorming with my limited knowledge. I appreciate your help.
thanks!
Brendan
Do I need to direct the site to the copied file somehow so it knows to read it instead of whatever other file it was reading before? Just brainstorming with my limited knowledge. I appreciate your help.
thanks!
Brendan