How to Fix the Joomla 3.0 "Error displaying the error page: Application Instantiation Error" even if you configuration.php file is correct and unchanged.

Written by Andrew Brett Watson. Posted in Joomla

 

Internal Serve Error
So you got a "Error displaying the error page: Application Instantiation Error" did ya? And now your Joomla 3 site won't show. Here is the complete guide on how to fix this issue.
 
First: Joomla will show the "Error displaying the error page: Application Instantiation Error" if your configuration.php file is not correctly configured. If you know your configuration.php file is perfect skip solution 2 below.
 
UPDATE: BEFORE YOU START.
Louis notes bellow in comments (Thanks Louis!) that if you are running joomla 3, you must make sure the line in the configration.php which tells Joomla what type of database to connect to is correct. Quite often the "Error displaying the error page: Application Instantiation Error" message will display if it is set to mysqli but the database is actually a mysql database. The line you are looking for in the configuration.php is:
    public $dbtype = 'mysql';
Make sure that matches your database!
 
Solution 1: Check you configuration.php file:
The following items in your configuration.php file need to be correct for Joomla 3.1 (and above) to work (and not display: "Error displaying the error page: Application Instantiation Error"):
 
The database name in your configuration.php must match that of what is configured on your hosting account
The database username in your configuration.php must match that of what is configured on your hosting account
The database password in your configuration.php file must match what is configured on your hosting account
The database hostname in your configuration.php file must match what is configured on your hosting account
 
So…
Check you database name is correct
Check your database username is correct
Check the password and then..
Check your hostname is also, you know,…. correct.
 
Solution 2: Fix you database file from the Joomla backend.
The other reason you might get the "Error displaying the error page: Application Instantiation Error" is a type of corruption in your database. Don't worry it's easy to fix from the backend. If you don't have access to the Joomla backend, then skip to Solution 3.
 
Log on to you Joomla site (the one showing the "Error displaying the error page: Application Instantiation Error") and click on Extensions>Extensions Manager. On the left side you will find a list, click on "Database". Notice how a button called fix appears? (see screenshot below). Just click the Fix button and your "Error displaying the error page: Application Instantiation Error" days are over!
 
Fix-Databse-Joomla-3.0.jpg
 
Solution 3: Get down and dirty with MySQL.
 
None of the other "Error displaying the error page: Application Instantiation Error" solutions working for you? Don't worry, I got your back. Log in to your hosting account and click on the icon for "phpMyAdmin". You will need to put in your login credentials to get in to your database, after that solving this error is easy.
 
If you click on click on the database pane to the left, you will see all the tables of the database listed in the main pane of phpmyadmin.
 
To repair your database, scroll to the bottom of the tables and click the the words "check all".
 
Now, from the drop down menu just to the right, click and choose "repair tables" from the dropdown menu (this is an easy solution to simply fix a SQL database with no Joomla 3.1 backend access).
 
Here's a screen shot:
 
repair mysql tables on phpmyadmin
 
Did this fix your Error displaying the error page: Application Instantiation Error?
 
I don't know what causes the problem with the Joomla Database and would love to hear from anyone who knows how to stop the Application Instantiation Error from appearing in the first place. UPDATE: It may be aleviated by increaing the amount of memory allocated to php on the server, you could ask your hosting provider to do this. Like I say, I'm not sure about that, just a theory...
 
Prevention is always better than cure. Let me know if you have anything to add, make a comment! (thanks to the commenter, I have updated this with better information)
 

 

© Copyright Andrew Brett Watson. Site design by Bright Sky Web.