Solve the Problem of 500-An error occurred when Joomla logged on to the background
Joomla has been logged on normally. suddenly one day, my friend told me that the login failed and the following error 500 was displayed.
This makes me very confused. On the one hand, it is really uncomfortable to solve the problem of web applications on windows servers. Machines can not log on like Linux, but can only download the Code through ftp.
I searched the internet for a long time and thought the password was wrong at the beginning. Find the Official Method to retrieve the password and click.
But still failed. To be honest, we should be able to locate the problem. The following solution:
Step 1: Turn On the debug switch to correctly locate the error
Modify the configuration. php file and set the debug value to 1.
Step 2: log on again and report the following issues:
Error JAuthentication ::__ construct: Unable to load the authentication library. Call stack # FunctionLocation1JAdministrator-> dispatch () JROOT \ administrator \ index. php: 462 JComponentHelper: renderComponent () JROOT \ administrator \ mongodes \ application. php: 1533 JComponentHelper: executeComponent () JROOT \ libraries \ joomla \ application \ component \ helper. php: 3514require_once () JROOT \ libraries \ joomla \ application \ component \ helper. php: 3835JController-> execute () JROOT \ administrator \ components \ com_login \ login. php: 196LoginController-> login () JROOT \ libraries \ joomla \ application \ component \ controller. php: 7617JAdministrator-> login () JROOT \ administrator \ components \ com_login \ controller. php: 578JApplication-> login () JROOT \ administrator \ mongodes \ application. php: 2349 JAuthentication: getInstance () JROOT \ libraries \ joomla \ application. php: 66910JAuthentication->__ construct () JROOT \ libraries \ joomla \ user \ authentication. php: 14311 JError: raiseWarning () JROOT \ libraries \ joomla \ user \ authentication. php: 12712 JError: raise () JROOT \ libraries \ joomla \ error. php: 276 JFolder: create: the directory Path: \ varCall stack # FunctionLocation1JAdministrator-> dispatch () JROOT \ administrator \ index cannot be created. php: 462 JComponentHelper: renderComponent () JROOT \ administrator \ mongodes \ application. php: 1533 JComponentHelper: executeComponent () JROOT \ libraries \ joomla \ application \ component \ helper. php: 3514require_once () JROOT \ libraries \ joomla \ application \ component \ helper. php: 3835JController-> execute () JROOT \ administrator \ components \ com_login \ login. php: 196LoginController-> login () JROOT \ libraries \ joomla \ application \ component \ controller. php: 7617JAdministrator-> login () JROOT \ administrator \ components \ com_login \ controller. php: 578JApplication-> login () JROOT \ administrator \ mongodes \ application. php: 2349JApplication-> triggerEvent () JROOT \ libraries \ joomla \ application. php: 74510JDispatcher-> trigger () JROOT \ libraries \ joomla \ application. php: 64211JEvent-> update () JROOT \ libraries \ joomla \ event \ dispatcher. php: 16.0plgsystemlog-> onUserLoginFailure () JROOT \ libraries \ joomla \ event. php: 7113JLog-> addEntry () JROOT \ plugins \ system \ log. php: 4114JLog-> addLogEntry () JROOT \ libraries \ joomla \ log. php: 201715jloggerformattedtext-> addEntry () JROOT \ libraries \ joomla \ log. php: 38216JLoggerFormattedText-> initFile () JROOT \ libraries \ joomla \ log \ loggers \ formattedtext. php: 13717 JFolder: create () JROOT \ libraries \ joomla \ log \ loggers \ formattedtext. php: 23718 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18819 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18820 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18821 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18822 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18823 JFolder: create () JROOT \ libraries \ joomla \ filesystem \ folder. php: 18824 JError: raiseWarning () JROOT \ libraries \ joomla \ filesystem \ folder. php: 26425 JError: raise () JROOT \ libraries \ joomla \ error. php: 276 Call stack # FunctionLocation1JAdministrator-> dispatch () JROOT \ administrator \ index. php: 462 JError: raiseError () JROOT \ administrator \ mongodes \ application. php: 1643 JError: raise () JROOT \ libraries \ joomla \ error. php 251
Step 3: solve the following problems
First, solve the first problem: Unable to load the body verification Library
Modify the value of enabled corresponding to plg_authentication_joomla in the xx_extensions table of the database (xx is set based on your website) to 1.
Then solve the second problem: the problem is caused
The $ log_path and $ tmp_path variables in the configuration. php file are incorrectly configured. The original values are as follows:
To be honest, if the server is a Linux system, there is no problem at all, but the windows system does not have such a path. Change their values to the following:
Then you can log on without any problems!
(Note: The logs and tmp directories under the root directory of the website must have read and write permissions)