Fork me on GitHub

How 'bout a better "Database Connection Error" pag  Bottom

  • This is something I've always meant to bring up but never have.

    The file, pnAPI.php, generates an error message when a PostNuke site is down due to the loss of a database connection. Can you say tacky? :shock:

    A down websites is not a good opportunity to promote Postnuke! It does not convey the message that PostNuke is easy to use and reliable so why the "PostNuke Website" title? Why the links to PostNuke and others?

    Imagine Ford making cars with emergency lights that blink on and off, "Another Broken Down Ford!" Well the PostNuke error splash page is no better.

    Worse, the error page actually includes a warning saying something like "if you contact us we will ignore you..." Does anyone think that's good PR? icon_rolleyes

    Ok, now that I've trashed the status quo, how 'bout a solution?

    Why not redirect the visitor to something of substance when the site is down? Obviously, this has to be hardcoded but maybe, for the benefit of the less inclined, it could be configured during the installation process (like config.php). At least something with the site name and perhaps even some contact information.

    I've modified all my PN installations to say something like, "My Site is Closed for Upgrades and Maintenance" and something like "Please feel free to contact us at admin@mysite.com".

    Style points count and the current database down message scores no style points. In fact, it might actually score negative points for the reasons I mentioned above. wink

    Slugger
  • From .760-RC2 announcement

    Quote

    New features in core

    * Modules can now be referenced using an 'alias' via the module display name setting.
    * Default start function type, function name & parameters to the function can be defined. Note: API compliant modules only.
    * Standard database connection error moved to 'template' in includes/templates.
    * Ability to turn the site off for maintainence (access to provided via permissions setting).
    * Ability to set what function type, function name and any parameters for the start page (API compliant modules only)


    --
    Home Page | Find on Facebook | Follow on Twitter
  • It's not actually something a lot of people see untill something goes wrong, just like it did for me a while ago. Like you I modified my sites. There are a lot of older installs out there where you often see this. Maybe I should put something in the Tutorials and Solutions forum.
  • mhalbrook

    Standard database connection error moved to 'template' in includes/templates.


    Great news! Thanks Michael. I know what you meant but we should clarify that you are referring to .760 and not .726.

    Slugger

This list is based on users active over the last 60 minutes.