View Full Version : Database error display - how to change so that doesn't take over full page
coffeesgr
09-20-2008, 01:38 AM
When the database error occurs, all the forum pages go to the database mysql error, and nothing else is displayed until the db can be connect again, and the problem is solved (by reboot). But when you use the integration file, using the forum global.php file, other pages of the website also just display the database error page, even though the only thing that needs to connect to the db for that page is whether the user is online or not. Where can it be changed so that the database error just is a one line error displayed, rather than not letting the rest of the page content to show - at least for pages that are not part of the forum and are just using the global.php file for integration to the forum.
Thanks.
Lynne
09-20-2008, 02:49 AM
If you are calling a file that requires access to the database (and the global.php file requires access), then if the page cannot connect, it will give a database error. I don't think you can do anything about that.
coffeesgr
09-20-2008, 05:36 AM
But the way it is set up with vbulletin is that the whole page just shows the database error message. On other pages that connect to the database but not the vbulletin files, there is just an error message displayed, and also the rest of the content does display. With connecting to the db with the vbulletin files, none of the other content displays.
Anyone know where to change that?
Thanks.
Lynne
09-20-2008, 02:38 PM
If you get a php error, you will just get an error in your page - some lines of code with the error but the rest of the page will display. But, a database error will basically destroy the whole page.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.