Skip to main content
Topic: Errors.... (Read 5998 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Errors....

I think it would be nice, on errors, like connection to databases, if they were a bit more styled, and maybe include a better message to the users, like the maintenance mode does.

Now, since it would not be able to get the message from database, would have to have it in a language file.
Besides the error, maybe a message to the users, that tells them the site will be back as soon as maintenance is done, but be more than the standard message, which IMHO, is a bit bland.

QuoteSorry, ElkArte was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Attention members, we are attempting to restore the site to normal operations...news will be posted once we are back!

Sure would look better than just:

QuoteSorry, ElkArte was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Re: Errors....

Reply #1

And this, thanks to a problem on my site <_< Lol ;D
~ SimplePortal Support Team ~

Re: Errors....

Reply #2

If we want to nitpick, a "Attention members, we are attempting" has the meaning "we (site OP) are doing something", but in fact it may just be nobody is doing anything because they do not know (been there done that).
So I'd better prefer a less professional "please inform the administrator at {email-address-or-something}" rather than a encouraging, but potentially false message.

Also, about the styling, the tricky part is that the "current" theme is defined in the database, so in order to style the page Elk needs a database connection[1], but not having it the only possible thing, is a) use the default theme, and 2) hope the themes are in the same directory as index.php[2], that is true in likely 99.9% of the cases, maybe more, but nonetheless something to take in consideration.
technically it would be the same for the language, even though I guess we do our good share of guessing where the language actually is, so it should be less of a problem, but I'm not entirely sure.
Just for the record, this may or may not be true depending on the setup.
Bugs creator.
Features destroyer.
Template killer.

Re: Errors....

Reply #3

Hmmm... Good idea on the contact.  Would there be a way, to set that as a field, in the General Settings?
Where the Admin can put an email address or a URL to some other form of contact?

Re: Errors....

Reply #4

What would be the point of yet-another-setting when Elk cannot read the database?
Yet another email address in Settings.php then?
I would just go with the one notified, at best, let the admin specify more than one, that could be potentially useful.
Bugs creator.
Features destroyer.
Template killer.

Re: Errors....

Reply #5

Do you mean you want to be notified if your forum database is inaccessible? Or simply beautify its language on that error? Of course language can be changed to suit your needs, if that is necessary to you.

Re: Errors....

Reply #6

I am not sure it has anything to deal with that, at all... We are talking about the error page being ugly, it's up to individual admins to set up a contact page or not, not everyone wants it.
~ SimplePortal Support Team ~

Re: Errors....

Reply #7

Not only that, but would have to have a link on the error page, for an alternative contact way, if the forum is not available.
Contact form on forum, would not work, but link to a contact form on another site, would.

For example, on my forum's error page, I could link to my support system, or regular site's contact form. Or both...LOL

Re: Errors....

Reply #8

You can just throw an <a href> into the error string, works, I am unsure what to suggest here in general.
~ SimplePortal Support Team ~

Re: Errors....

Reply #9

Thing is, as mentioned before, it would need to be coded manually, and since you can't call anything from db, you will have just a default theme.
~ SimplePortal Support Team ~

Re: Errors....

Reply #10

Well you can always customise it so it suits your site even when the db is down. Done that before. Obviously it's site-specific though, so not a one size fits all solution.

(Basically, use static HTML page that calls your site theme's CSS files, and has whatever message you like hard-coded into the HTML)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Errors....

Reply #11

Yeah, but for you, me and pretty much the ""elite"" users, it can be fine, but it will create some kind of "wut" effect otherwise :P
~ SimplePortal Support Team ~

Re: Errors....

Reply #12

Yeah but it's really cool, because you can have it with bouncing parrots. :D

Ok, seriously, just thinking aloud here: you could set it up so that you have a base template (static HTML) that was written to from an admin interface. So all you would have to do is set a path to the CSS files and add your custom message.

IOW, similar to the way hosting panels can usually set up custom 404 pages, etc.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Errors....

Reply #13

And then I wonder... Does it really worth it to go through so much of an hassle just for an error page that will hopefully be displayed the fewer the better?
~ SimplePortal Support Team ~

Re: Errors....

Reply #14

I'll just stick to default as that is not really a necessary enhancement.
Last Edit: February 23, 2016, 07:20:34 am by ahrasis