Support Joomla!

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 60 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow FAQs

What does This site is temporarily unavailable - Database ERROR NUMBER CODE mean
Author(s):Toubkal
Experience level:Beginner
Contributors:Joomla! version:1.0
Date added:Sunday, 25 March 2007Date last changed:Sunday, 25 March 2007
 

My site fails to load and shows the following message:

This site is temporarily unavailable.
Please notify the System Administrator
3

What might this mean?

Answer:

The number following the message indicates a database problem. The error number is generated by joomla! and error numbers 1, 2 and 3 indicate the following:

Error 1 = FATAL ERROR: MySQL support not available.
Error 2 = FATAL ERROR: Connection to database server failed.
Error 3 = FATAL ERROR: Database not found

my view in plain speak would be:

error 1
Joomla! attempts to talk with mysql on the server and fails to even talk to it - this might be because the server does not have mysql installed at all or maybe it is not configured correctly

technically: function_exists( 'mysql_connect' ) FAILS

error 2
sql is installed but for some reason we cannot login to mysql (this is where it tries the host, username, password stuff) - may indicate that these details are wrong in your config

technically: $this->_resource = @mysql_connect( $host, $user, $pass ) FAILS

error 3
I think this is that it passed 1 and 2 so you can connect to mysql but not select the specific database

technically: mysql_select_db($db) FAILS

Up until 1.0.12, the offline message used to only have codes 1 through 3. In 1.0.12, those codes were replaced with text as defined in english.php.

Code:

define( '_SYSERR1', 'The database adapter is not available' );
define( '_SYSERR2', 'Could not connect to the database server' );
define( '_SYSERR3', 'Could not connect to the database' );


One through three are still equivalent to the former numeric code system which translated to
Quote
Error 1 = FATAL ERROR: MySQL support not available.
Error 2 = FATAL ERROR: Connection to database server failed.
Error 3 = FATAL ERROR: Database not found

Last Updated Sunday, 25 March 2007
< Prev   Next >

Powered by EasyFAQ © 2006 Joomla-addons.org