Don't know if this is possible. Was wondeirng if you can specify a page to display when efiction cannot make a connection to the database for whatever reason (my server been having issues lately with major hardware upgrade and getting lots of mysql issues)
Currently i get a white page with a msg like fatal error, cannot connect
Is it possible to have a html/php page to display instead of that message? and if it is, where in the script woudl i need to go teaking. Or is that a server side thing and not smt i can do from withing efiction.
www.pretendercentre.com/simstolen.html
that is the page i would like to have displayed, or something similar to it so people at least know that there is something wrong and it is not them and we are working on it.
thanks
jacci
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
You'd need to edit the appropriate dbconnect function in either mysql_functions.php or mysqli_functions.php in the includes folder. It couldn't be a page that looks like your efiction site because all your site info (sitename, skin, etc.) is in the database and therefore inaccessible when you can't connect.
Thanks Tammy, i used the includes file with the mysql file as you suggested, and using an include command and i got the page up that i wanted when something goes wrong with the database connection. I have been manually loading and then disabling redirects during troubles, but this fix is perfect, Now the 'site is broken, and will be fixed soon' page comes up and then disappears when connection is restablished.
I understand what you are saying about the site info, needing the database to pull everything, and that is fine. I actually wanted just a static html/php page with some images and basically saying, having server issues, workign on it, back soon.
thanks agian, this is a perfect fix for me. π
jacci
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
Actually if you're comfortable doing HTML editing you can simply save a page from your efiction site and then edit it down so that it still includes the design layout but has your disclaimer about the database being down.
thanks for that suggestion Champ, that is a very good idea and i might do that too, maybe cycle thru them. Hadn't even thought of doing it that way at all.
Right now, when my database goes down, it affects my efiction, 2 smf, a coppermine and a tikiwiki. I have made 'stolen' pages which i pull using a php include and they all sort of match the theme of the site. But i quite like the idea of the front page of efiction too and might get to work on that and just get it to pull different pages at differnt times.
thanks again, never would have thought to do that and it is a brilliant idea.
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
