Support

Admin Tools

#21612 Database config and jos-Error: Application Instantiation Error

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by dlb on Tuesday, 02 December 2014 14:33 CST

user84475
 Hello,

Recently I had issues with my site www.best-stylist.com where I was unable to access any modules because I would get an error "webpage is not available." I believed this was caused by the admintools component. So I went in and double checked all my permissions going to the modules folder to see if the firewall was blocking access to this page. I also clicked update my .htaccess maker and refreshed the page. Once the page loaded I got the following error message below on both the front end and the administrator end.

I have been working on this for over a week now and unable to resolve it. I believe it is a database issue so I have made sure all of my configuration DB settings were correct. I have even recreated my database and users to use on my configuration.php profile to make sure it all matches. I have read multiple blogs as well and tried all of their solutions. I read the ticket 13811 and that is my only lead what is causing the issue. Somehow I may have blacklisted my IP address or locked my files? I can't log into the administration panel to see. Is there a way I can fix this or somehow check the IP blacklist settings?

jos-Error: Application Instantiation Error

JFactory :: getApplication() @ /home3/beststy2/public_html/index.php:27
JApplication :: getInstance() @ /home3/beststy2/public_html/libraries/joomla/factory.php:102
JSite -> __construct() @ /home3/beststy2/public_html/libraries/joomla/application/application.php:180
JApplication -> __construct() @ /home3/beststy2/public_html/includes/application.php:47
JApplication -> _createSession() @ /home3/beststy2/public_html/libraries/joomla/application/application.php:145
JFactory :: getSession() @ /home3/beststy2/public_html/libraries/joomla/application/application.php:1020
JFactory :: createSession() @ /home3/beststy2/public_html/libraries/joomla/factory.php:152
JSession :: getInstance() @ /home3/beststy2/public_html/libraries/joomla/factory.php:656
JSession -> __construct() @ /home3/beststy2/public_html/libraries/joomla/session/session.php:151
JSession -> _start() @ /home3/beststy2/public_html/libraries/joomla/session/session.php:114
JSessionStorageDatabase -> read() @ /home3/beststy2/public_html/libraries/joomla/session/session.php:532
JFactory :: getDbo() @ /home3/beststy2/public_html/libraries/joomla/session/storage/database.php:34
JFactory :: createDbo() @ /home3/beststy2/public_html/libraries/joomla/factory.php:304
spl_autoload_call() @ /home3/beststy2/public_html/libraries/joomla/factory.php:705
JLoader :: _autoload()
JLoader :: _load() @ /home3/beststy2/public_html/libraries/loader.php:301
include() @ /home3/beststy2/public_html/libraries/loader.php:332
include_once() @ /home3/beststy2/public_html/libraries/joomla/database/database.php:15
JFactory :: getApplication() @ /home3/beststy2/public_html/plugins/system/plug_jomsomu/plug_jomsomu/jemsf_747.php:2
JError :: raiseError() @ /home3/beststy2/public_html/libraries/joomla/factory.php:99
JError :: raise() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:251
JError :: throwError() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:176
JError :: handleCallback() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:214
JError :: customErrorPage() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:765
JFactory :: getApplication() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:784
JError :: raiseError() @ /home3/beststy2/public_html/libraries/joomla/factory.php:99
JError :: raise() @ /home3/beststy2/public_html/libraries/joomla/error/error.php:251

dlb
Let's make sure that the problem is indeed caused by Admin Tools. In order to do so, try the following:

1. Try setting the Error Reporting level in your Global Configuration to "None". Many errors are caused by harmless PHP Notices and Warnings being output to the browser, breaking anything which requires HTTP header manipulation such as Joomla!'s session management, AJAX calls and download systems.

2. Try to replicate the issue after disabling the "System - Admin Tools" plugin. If you can still replicate the issue, it is not caused by Admin Tools. Disabling that plugin means that Admin Tools code (including the Web Application Firewall) is not running on your site.

3. If you suspect an issue with the .htaccess file, replace its contents with the contents of the stock htaccess.txt file shipped with every version of Joomla!. If you are on GoDaddy please wait for 1-30 minutes for the changes to be effective. Then, retry loading the problem page. If you can still reproduce the error, then it is not caused by .htaccess Maker.

If doing any of the above resulted in the issue still occurring, it's not related with Admin Tools and we can't help you. If doing any of the above did stop the issue from occurring, we'll have to do some troubleshooting.

First go to Admin Tools, Web Application Firewall, Configure WAF. Make sure "Log security exceptions" is set to Yes; if it's not, set it to Yes and click on Save. Now try reproducing your issue. Immediately after that, please go to Admin Tools, Web Application Firewall, Security Exceptions Log. The latest log entry at the top should have the date and time of when the issue occurred. Please copy the Reason and Target URL here so that we can further help you.

If, however, you do not see a log entry, or the Date and/or IP address do not match your last access, this problem is not caused by Admin Tools' WAF. In this case, you will have to do some .htaccess troubleshooting. You may need to read the general .htaccess troubleshooting page, as well as the page on finding out necessary .htaccess exceptions.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user84475
Thanks for the quick reply. However I do not have any access to the joomla admin panel. I am getting the error on the login screen and in the front end. How can I disable the admin tools component from the file manager on the server?

dlb
No problem!

You can disable Admin Tools via FTP with the instructions here: https://www.akeebabackup.com/documentation/troubleshooter/atwafissues.html.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user84475
Thanks I have disabled the admin tools through the file manager but still not able to load my website....any other ideas?

dlb
When that file is renamed, the Admin Tools Web Application Firewall is completely disabled. If you have created an .htaccess file with .htaccess Maker, that could still be in effect. Renaming the .htaccess file or restoring Joomla!'s default file will eliminate that possibility as well.

In the error messages you posted,
JFactory :: getApplication() @ /home3/beststy2/public_html/plugins/system/plug_jomsomu/plug_jomsomu/jemsf_747.php:2
JError :: raiseError() @ /home3/beststy2/public_html/libraries/joomla/factory.php:99
This seems to be where the trouble starts. A Google search says that plug_jomsomu is your paid membership plugin for JomSocial. I really can't help you with that, but that is where I would go next.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!