1
tamerlo
Customize error page
  • 2004/6/27 16:10

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


Hi, sometimes I have problem with DB server and a visitor (and I ) can show only an error page that ask about line 34(?) of database class of xoops, this is not a problem.

The question is: is possible on this error redirect to static pages? in example a small version of the site made only with html pages.

thanks

2
phppp
Re: Customize error page
  • 2004/6/27 16:48

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


the redirect feature is made by individual pages. There is no unified handling.
Some pages have error redirection, some not.

To make redirection available for all error pages, you have to ask the module/core developers, OR make your own hack.

3
tamerlo
Re: Customize error page
  • 2004/6/27 21:08

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


My case is on databasefactory.php in directory class/database, and the error is on line 34:
if (!$instance->connect()) {
                                
trigger_error("Unable to connect to database"E_USER_ERROR);
                        }


do you where "trigger_error" call is performed!

when encounter this error apper a page with a link to xoops' wiki page, do you know where I can change this error page.

4
Mithrandir
Re: Customize error page

Look at ErrorHandler::renderErrors()
in class/errorhandler.php around line 140

5
tamerlo
Re: Customize error page
  • 2004/6/28 7:43

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


Thank, at first I think that trigger_error was a XOOPS API , I'm don't understand always php.

next time first read php guide

bye

Login

Who's Online

167 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits