Advertisement
Login access error --> ?task=user.login
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 40
- Joined: Mon Apr 04, 2011 9:45 am
Login access error --> ?task=user.login
Hi.
I created a publisher user. I created an item menu type "login form". If the user introduces de name and password correctly all is ok, the problem is when you logged width a password or name bad or you left this fields blank, appears the error http://www.webferrol.com/index.php/es/a ... user.login. The login url is http://www.webferrol.com/index.php/es/a ... rontend-es
Regards
I created a publisher user. I created an item menu type "login form". If the user introduces de name and password correctly all is ok, the problem is when you logged width a password or name bad or you left this fields blank, appears the error http://www.webferrol.com/index.php/es/a ... user.login. The login url is http://www.webferrol.com/index.php/es/a ... rontend-es
Regards
Advertisement
-
- Joomla! Apprentice
- Posts: 6
- Joined: Wed Aug 10, 2011 10:53 am
- Location: New Zealand
Re: Login access error --> ?task=user.login
Similar thing for me too...
Error: 500
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:
Home Page
Search this site
If difficulties persist, please contact the System Administrator of this site and report the error below..
[except there's no error here]
Error: 500
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:
Home Page
Search this site
If difficulties persist, please contact the System Administrator of this site and report the error below..
[except there's no error here]
-
- Joomla! Apprentice
- Posts: 6
- Joined: Wed Aug 10, 2011 10:53 am
- Location: New Zealand
Re: Login access error --> ?task=user.login
I turned on maximum debugging in the admin panel then reattempted to access the login pages (with OR without entering text in the fields) and below is what resulted...
Call stack
# Function Location
1 JSite->dispatch() /share/Web/CMS/index.php:43
2 JError::raiseError() /share/Web/CMS/includes/application.php:198
3 JError::raise() /share/Web/CMS/libraries/joomla/error/error.php:215
I looked up items 1, 2 & 3 above and they point to these lines in the respective php files:
1. $app->dispatch();
2. JError::raiseError($code ? $code : 500, $e->getMessage());
3. return JError::raise(E_ERROR, $code, $msg, $info, true);
I also checked the apache error logs and found these four lines (separated each to make them easier to read):
[Thu Aug 11 16:38:11 2011] [error] [client 192.168.1.1] PHP Warning: fopen(/share/Web/CMS/logs/error.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://cms.itcuz.com/index.php/admin-login
[Thu Aug 11 16:38:11 2011] [error] [client 192.168.1.1] PHP Warning: fputs(): supplied argument is not a valid stream resource in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://cms.itcuz.com/index.php/admin-login
[Thu Aug 11 16:46:46 2011] [error] [client 192.168.1.1] PHP Warning: fopen(/share/Web/CMS/logs/error.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://cms.itcuz.com/
[Thu Aug 11 16:46:46 2011] [error] [client 192.168.1.1] PHP Warning: fputs(): supplied argument is not a valid stream resource in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://cms.itcuz.com/
Don't know if the above information will help anyone to help us resolve this issue... it's weird that I can't login via the default login form that appears on each page, or via the test 'admin form' I added... even though I can login to the admin panel.
I run Joomla v1.7 on a linux/apache system, via my subdomain cms.itcuz.com
Any help appreciated
Call stack
# Function Location
1 JSite->dispatch() /share/Web/CMS/index.php:43
2 JError::raiseError() /share/Web/CMS/includes/application.php:198
3 JError::raise() /share/Web/CMS/libraries/joomla/error/error.php:215
I looked up items 1, 2 & 3 above and they point to these lines in the respective php files:
1. $app->dispatch();
2. JError::raiseError($code ? $code : 500, $e->getMessage());
3. return JError::raise(E_ERROR, $code, $msg, $info, true);
I also checked the apache error logs and found these four lines (separated each to make them easier to read):
[Thu Aug 11 16:38:11 2011] [error] [client 192.168.1.1] PHP Warning: fopen(/share/Web/CMS/logs/error.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://cms.itcuz.com/index.php/admin-login
[Thu Aug 11 16:38:11 2011] [error] [client 192.168.1.1] PHP Warning: fputs(): supplied argument is not a valid stream resource in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://cms.itcuz.com/index.php/admin-login
[Thu Aug 11 16:46:46 2011] [error] [client 192.168.1.1] PHP Warning: fopen(/share/Web/CMS/logs/error.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://cms.itcuz.com/
[Thu Aug 11 16:46:46 2011] [error] [client 192.168.1.1] PHP Warning: fputs(): supplied argument is not a valid stream resource in /share/Web/CMS/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://cms.itcuz.com/
Don't know if the above information will help anyone to help us resolve this issue... it's weird that I can't login via the default login form that appears on each page, or via the test 'admin form' I added... even though I can login to the admin panel.
I run Joomla v1.7 on a linux/apache system, via my subdomain cms.itcuz.com
Any help appreciated
-
- Joomla! Apprentice
- Posts: 38
- Joined: Wed Jun 24, 2009 6:51 am
Re: Login access error --> ?task=user.login
Hi all,
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:
with this one:
Basically, I changed the method from 'onUserLoginFailure' to 'onAuthenticateFailure', which is used in Joomla 1.5 and you can see it here: http://docs.joomla.org/Plugin/Events/User
For me is working. I hope I could help you.
Bye.
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:
Code: Select all
$this->triggerEvent('onUserLoginFailure', array((array)$response));
Code: Select all
$this->triggerEvent('onAuthenticateFailure', array((array)$response));
For me is working. I hope I could help you.
Bye.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Dec 04, 2011 3:20 am
Re: Login access error --> ?task=user.login
I am having the exact same error as itcuz
I used the solution you provided and it fixed the error 500, but it immediately logs out the user and provides the message: You cannot access the private section of this site.
Are there any other solutions available?
I used the solution you provided and it fixed the error 500, but it immediately logs out the user and provides the message: You cannot access the private section of this site.
Are there any other solutions available?
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Jan 13, 2012 9:20 pm
Re: Login access error --> ?task=user.login
I just had the same issue and found that in my case the JLogger was throwing an Exception because it did not have access to writing to folder on the server. I guess the system tries to Log a failed login attempt. By changing the permissions of the httproot/logs & the httproot/tmp folders to allow for Joomla to write to it. This solved the issue. Now I just need an error message to display when the user logs in wrong.
Btw be careful changing folder permissions I would not just make the folder 777 because this would have major security problems.
Btw be careful changing folder permissions I would not just make the folder 777 because this would have major security problems.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Jul 16, 2010 5:40 am
Re: Login access error --> ?task=user.login
Hey guys,
make sure the path to your log folder is correctly set in the configuration.php. That solved my problem.
It's probably because Joomla tries to log the event but can't access the log/error.php. That's why the 500 error comes up.
make sure the path to your log folder is correctly set in the configuration.php. That solved my problem.
It's probably because Joomla tries to log the event but can't access the log/error.php. That's why the 500 error comes up.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Sep 09, 2011 9:42 am
Re: Login access error --> ?task=user.login
This worked fine for me.manearaluca wrote:Hi all,
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:with this one:Code: Select all
$this->triggerEvent('onUserLoginFailure', array((array)$response));
Basically, I changed the method from 'onUserLoginFailure' to 'onAuthenticateFailure', which is used in Joomla 1.5 and you can see it here: http://docs.joomla.org/Plugin/Events/UserCode: Select all
$this->triggerEvent('onAuthenticateFailure', array((array)$response));
For me is working. I hope I could help you.
Bye.
Thank you for this useful post.
Chris
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue May 15, 2012 12:47 pm
Re: Login access error --> ?task=user.login
------------------------pschoefer wrote:Hey guys,
make sure the path to your log folder is correctly set in the configuration.php. That solved my problem.
It's probably because Joomla tries to log the event but can't access the log/error.php. That's why the 500 error comes up.
Thanks for this contribution. I had the error appearing when the user tries to login. I went to the admin back end under global configurations I changed the path to;
localhost/logs --- Path to log folder under "system" and,
localhost/tmp --- Path to temp folder under "sever"
and it worked perfectly.
- jamarchi
- Joomla! Intern
- Posts: 82
- Joined: Mon May 14, 2012 7:39 pm
Re: Login access error --> ?task=user.login
Hi
Let me tell you that I had that problem and I could resolver
I checked the path of the log and temp folder in the global configuration, my correct path was /var/www/html/test-demo/mysite/tmp/ I solved and test it and it worked excelent
I hope this can help you
Let me tell you that I had that problem and I could resolver
I checked the path of the log and temp folder in the global configuration, my correct path was /var/www/html/test-demo/mysite/tmp/ I solved and test it and it worked excelent
I hope this can help you
De todo para todos....
http://jamarchicr.com/
http://jamarchicr.com/
- humvee
- Joomla! Master
- Posts: 14704
- Joined: Wed Aug 17, 2005 10:27 pm
- Location: Kent, England
Re: Login access error --> ?task=user.login
It is likely that your path to /tmp and /log directory paths is wrong.
To find out what the absolute path is:
$path = getcwd();
echo "The absolute path is: ";
echo $path;
?>[/code]
WARNING: For security reasons, it is imperative that you delete this file as soon as you have the output that you require.
To find out what the absolute path is:
- Copy the following code into a text editor.
- Do not use any Windows/Microsoft editors for this as they can add unwanted code,
- Suggest you use Notepad++ or similar.
- Save the file with a .php extension
- You can call the file whatever you like, for example, filepath.php.
- Using your FTP software upload the file you have just created to your web_root directory.
- Again do not use Microsoft/Windows own software
- Recommend using WinSCP or FileZilla on Windows)
- Open your web browser and type in http://www.example.com/filepath.php.
- Obviously replace example.com with your own domain name
- The output from this file will show the absolute path for your server.
$path = getcwd();
echo "The absolute path is: ";
echo $path;
?>[/code]
WARNING: For security reasons, it is imperative that you delete this file as soon as you have the output that you require.
-
- Joomla! Apprentice
- Posts: 49
- Joined: Mon Jul 11, 2011 8:43 am
Re: Login access error --> ?task=user.login
THANK YOU SO MUCH! This did it! It works!manearaluca wrote:Hi all,
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:with this one:Code: Select all
$this->triggerEvent('onUserLoginFailure', array((array)$response));
Basically, I changed the method from 'onUserLoginFailure' to 'onAuthenticateFailure', which is used in Joomla 1.5 and you can see it here: http://docs.joomla.org/Plugin/Events/UserCode: Select all
$this->triggerEvent('onAuthenticateFailure', array((array)$response));
For me is working. I hope I could help you.
Bye.
Regards
Marianna Brown
Marianna Brown
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Oct 11, 2012 1:53 pm
Re: Login access error --> ?task=user.login
manearaluca wrote:Hi all,
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:with this one:Code: Select all
$this->triggerEvent('onUserLoginFailure', array((array)$response));
Basically, I changed the method from 'onUserLoginFailure' to 'onAuthenticateFailure', which is used in Joomla 1.5 and you can see it here: http://docs.joomla.org/Plugin/Events/UserCode: Select all
$this->triggerEvent('onAuthenticateFailure', array((array)$response));
For me is working. I hope I could help you.
Bye.
I have Joomla 2.5.7 and faced same problem.I tried other options like file permissions and log paths but that didn't work.Apparently changing application.php worked well for me.
Thanks.
- bhaumik
- Joomla! Apprentice
- Posts: 20
- Joined: Fri May 18, 2012 6:24 am
Re: Login access error --> ?task=user.login
Please read this helpful article.
http://www.itoctopus.com/500-an-error-h ... ent-page-1
500 – An Error Has Occurred.
Needless to say, the error was not helpful at all. We knew there was an error, but we didn’t know what it was. So we started our quest to find the root of the problem in order to fix it.
We first searched for the string “An error has occurred.” in a default Joomla installation – we knew that it was a constant in a language file, and it was! This error was declared in the language/en-GB/en-GB.ini file as the JERROR_AN_ERROR_HAS_OCCURRED constant.
Our next task was to search for this constant in the Joomla installation (e.g. the files that include this constant), and we discovered that it was included on line 28 in the error.php file located in the administrator/bluestork/system (please note that bluestork can be hathor or system, depending on the template you are using for your backend) directory. Here’s the line containing the constant:
<?php echo $this->error->getCode() ?> - <?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED') ?>
So we added a print_r($this->error); just before the echo command in the line above, so it became something like this:
<?php print_r($this->error); echo $this->error->getCode() ?> - <?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED') ?>
Printing the error revealed to us that the error was being generated by the line 153 in the application.php located under the administrator/includes/ directory. Here’s the line:
$contents = JComponentHelper::renderComponent($component);
Obviously, the Joomla application had a problem rendering the component, so we checked the renderComponent function located in the helper.php file (which can be found in the libraries/joomla/application/component directory) and we noticed that it wasn’t able to execute the login.php file located under administrator/components/com_login directory since the function executeComponent was returning an error. So we debugged the login.php file (yes, we know, this is becoming very tedious – but we want our readers to know each step we did to know the root of the problem), which lead us to discover that the problem is with this function call in the controller.php file located in the same folder:
$result = $app->login($credentials, array('action' => 'core.login.admin'));
Hmmm… The problem was with the login function, which meant that we should check the login function located in the application.php file under libraries/joomla/application, and so we did! And then we discovered what the real problem was, it was with this line:
$this->triggerEvent('onUserLoginFailure', array((array) $response));
The above line was triggering the onUserLoginFailure event plugin, which was defined in plugins/system/log/log.php. That event was trying to log the login attempt in this line:
$log->addEntry($errorlog);
The log class attempted to save the log under the logs directory – but the $log_path variable in the configuration.php did not refer to the absolute path of the logs directory (it was just /logs), so we changed it (as well as the $tmp_path) to the absolute path (which was something like /home/[ourclienthostingusername]/public_html/[ourclinetjoomlawebsitename]/logs) and everything worked!
If you have already changed the $log_path and the $tmp_path values to the absolute path of the logs and the tmp directory respectively and you still have the same problem, then make sure that these directories are writable by the Joomla application. You can do that by changing the permissions on these two directories to 777.
http://www.itoctopus.com/500-an-error-h ... ent-page-1
500 – An Error Has Occurred.
Needless to say, the error was not helpful at all. We knew there was an error, but we didn’t know what it was. So we started our quest to find the root of the problem in order to fix it.
We first searched for the string “An error has occurred.” in a default Joomla installation – we knew that it was a constant in a language file, and it was! This error was declared in the language/en-GB/en-GB.ini file as the JERROR_AN_ERROR_HAS_OCCURRED constant.
Our next task was to search for this constant in the Joomla installation (e.g. the files that include this constant), and we discovered that it was included on line 28 in the error.php file located in the administrator/bluestork/system (please note that bluestork can be hathor or system, depending on the template you are using for your backend) directory. Here’s the line containing the constant:
<?php echo $this->error->getCode() ?> - <?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED') ?>
So we added a print_r($this->error); just before the echo command in the line above, so it became something like this:
<?php print_r($this->error); echo $this->error->getCode() ?> - <?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED') ?>
Printing the error revealed to us that the error was being generated by the line 153 in the application.php located under the administrator/includes/ directory. Here’s the line:
$contents = JComponentHelper::renderComponent($component);
Obviously, the Joomla application had a problem rendering the component, so we checked the renderComponent function located in the helper.php file (which can be found in the libraries/joomla/application/component directory) and we noticed that it wasn’t able to execute the login.php file located under administrator/components/com_login directory since the function executeComponent was returning an error. So we debugged the login.php file (yes, we know, this is becoming very tedious – but we want our readers to know each step we did to know the root of the problem), which lead us to discover that the problem is with this function call in the controller.php file located in the same folder:
$result = $app->login($credentials, array('action' => 'core.login.admin'));
Hmmm… The problem was with the login function, which meant that we should check the login function located in the application.php file under libraries/joomla/application, and so we did! And then we discovered what the real problem was, it was with this line:
$this->triggerEvent('onUserLoginFailure', array((array) $response));
The above line was triggering the onUserLoginFailure event plugin, which was defined in plugins/system/log/log.php. That event was trying to log the login attempt in this line:
$log->addEntry($errorlog);
The log class attempted to save the log under the logs directory – but the $log_path variable in the configuration.php did not refer to the absolute path of the logs directory (it was just /logs), so we changed it (as well as the $tmp_path) to the absolute path (which was something like /home/[ourclienthostingusername]/public_html/[ourclinetjoomlawebsitename]/logs) and everything worked!
If you have already changed the $log_path and the $tmp_path values to the absolute path of the logs and the tmp directory respectively and you still have the same problem, then make sure that these directories are writable by the Joomla application. You can do that by changing the permissions on these two directories to 777.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Jul 31, 2009 12:03 am
Re: Login access error --> ?task=user.login
Worked for me too in a 2.5. Line 748. Million thanks.manearaluca wrote:Hi all,
I have Joomla 1.7.2 and I get the same error.
My solution is:
change the line 720 from /libraries/joomla/application/application.php, this one:with this one:Code: Select all
$this->triggerEvent('onUserLoginFailure', array((array)$response));
Basically, I changed the method from 'onUserLoginFailure' to 'onAuthenticateFailure', which is used in Joomla 1.5 and you can see it here: http://docs.joomla.org/Plugin/Events/UserCode: Select all
$this->triggerEvent('onAuthenticateFailure', array((array)$response));
Bye.
Advertisement