Revanx34 Posted November 10, 2022 Posted November 10, 2022 Hello I'm trying to add a custom html page to put up on my site when it's either being maintained or when people get an error. I followed the guide I saw on the site about adding a new file to the home dir called constants.php I did this but it's not showing any suggestions?
WP V0RT3X Posted November 10, 2022 Posted November 10, 2022 Hi, what guide? constants.php is not a file/page to show to users.
Marc Posted November 10, 2022 Posted November 10, 2022 4 hours ago, WP V0RT3X said: Hi, what guide? constants.php is not a file/page to show to users. It isnt. But it is how you would designate what page to show to users in the event of maintenance. 8 hours ago, Revanx34 said: Hello I'm trying to add a custom html page to put up on my site when it's either being maintained or when people get an error. I followed the guide I saw on the site about adding a new file to the home dir called constants.php I did this but it's not showing any suggestions? Please could you provide me with the contents of what you have added?
Revanx34 Posted November 11, 2022 Author Posted November 11, 2022 16 hours ago, Marc Stridgen said: It isnt. But it is how you would designate what page to show to users in the event of maintenance. Please could you provide me with the contents of what you have added? hello so yes I followed this guide. https://invisioncommunity.com/4guides/advanced-options/configuration-options/custom-error-and-maintenance-pages-r248/ I added this in the constants.php file <?php define( 'ERROR_PAGE', 'error.html' ); define( 'UPGRADING_PAGE', 'maintenance.html' ); and I just made a simple html page
Marc Posted November 11, 2022 Posted November 11, 2022 So you have a maintenance.html page and that is not showing at the time you are upgrading? Im checking you have the understanding of what that does correct first of all.
Revanx34 Posted November 11, 2022 Author Posted November 11, 2022 8 hours ago, Marc Stridgen said: So you have a maintenance.html page and that is not showing at the time you are upgrading? Im checking you have the understanding of what that does correct first of all. that is correct.
Jim M Posted November 11, 2022 Posted November 11, 2022 constants.php and maintenance.html are in the root installation directory of your Invision Community software? If so, could you please provide us access: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
Revanx34 Posted November 12, 2022 Author Posted November 12, 2022 10 hours ago, Jim M said: constants.php and maintenance.html are in the root installation directory of your Invision Community software? If so, could you please provide us access: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. ok updated info you can now log in
Marc Posted November 14, 2022 Posted November 14, 2022 You appear to be using the same filename and locations are we use for ours. You should use your own custom filename for these. Otherwise they will probably get overwritten on upgrade
Revanx34 Posted November 14, 2022 Author Posted November 14, 2022 7 hours ago, Marc Stridgen said: You appear to be using the same filename and locations are we use for ours. You should use your own custom filename for these. Otherwise they will probably get overwritten on upgrade Ok so basically rename the file to something else bc it's conflicting with the default ips one's
Marc Posted November 14, 2022 Posted November 14, 2022 8 minutes ago, Revanx34 said: Ok so basically rename the file to something else bc it's conflicting with the default ips one's Yes, that is correct
Revanx34 Posted November 14, 2022 Author Posted November 14, 2022 1 hour ago, Marc Stridgen said: Yes, that is correct ok I change the name and updated constants and still now showing am I missing a step?
Jim M Posted November 14, 2022 Posted November 14, 2022 32 minutes ago, Revanx34 said: ok I change the name and updated constants and still now showing am I missing a step? I am not seeing that your site has an upgrade in process at the moment so it would not show. Could you please clarify?
Revanx34 Posted November 14, 2022 Author Posted November 14, 2022 5 minutes ago, Jim M said: I am not seeing that your site has an upgrade in process at the moment so it would not show. Could you please clarify? what i'm trying to do is put up a html page while we finish working on the site for an offical release, by doing so i'm trying to add a html page so people can't access the site right away until its done
Solution Jim M Posted November 14, 2022 Solution Posted November 14, 2022 This is not possible via our software. The easiest way though is to rename the index.php file to index.php.old then create an index.html file with your message. Then when you're ready to open your site, just delete the index.html file and rename the index.php.old file to index.php. You can also simply turn the community offline and display a message there but it will not be your custom HTML page. You can turn the community offline by going to ACP -> System -> General Configuration.
Revanx34 Posted November 14, 2022 Author Posted November 14, 2022 24 minutes ago, Jim M said: This is not possible via our software. The easiest way though is to rename the index.php file to index.php.old then create an index.html file with your message. Then when you're ready to open your site, just delete the index.html file and rename the index.php.old file to index.php. You can also simply turn the community offline and display a message there but it will not be your custom HTML page. You can turn the community offline by going to ACP -> System -> General Configuration. thanks for the information that makes sense
Jim M Posted November 14, 2022 Posted November 14, 2022 You're very welcome. Glad we could be of assistance. Revanx34 1
Recommended Posts