Lost Password?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • red color
  • green color
Member Area

Web Code

Home arrow Joomla arrow Joomla Guides arrow Frontend login error 403     
Frontend login error 403 PDF Print E-mail
Written by Administrator   
Monday, 21 September 2009
There is a problem in all Joomla versions on IE8, you get an error message and a 403 redirection when trying to login to the frontend.
After many searches, i found these solutions:

For Joomla 1.5.x

Open this file: /templates/system/error.php

Find the line:

defined( '_JEXEC' ) or die( 'Restricted access' );


place the following code after the line above:

$ReferTo = $_SERVER['REQUEST_URI'];
$ReferTo = base64_encode($ReferTo);
if ($this->error->code = '403') {
header('Location:index.php?option=com_user&view=login&ReferTo='.$ReferTo); die();
}

Open this file: /components/com_user/views/login/tmpl/default_login.php

Find the line:

<input type="hidden" name="return" value="<?php echo $this->return; ?>" />


And replace it with:

<input type="hidden" name="return" value="<?php if ($_GET['ReferTo']) echo $_GET['ReferTo']; else echo $this->return; ?>" />


For Joomla 1.0.15

Open the file: includes/joomla.php
In line 6043 you'll find this code:

// probably a spoofing attack
if (!$validate) {
header( 'HTTP/1.0 403 Forbidden' );
mosErrorAlert( _NOT_AUTH );
return;

Delete it.

This should work now.
Note that i dont know the security ramifications that this changes have on the system but its the only solution i found.


Related Items:

Write Comment
Name:
Title:
Comment:

Code:* Code


Add as favourites (706) | Quote this article on your site | Views: 9492

Comments (3)
1. 22-04-2012 22:19
Thanks
works like charm ! 
 
Thank you 
 
eblix
Written by Sam (Guest)
2. 18-04-2012 00:54
Fantastic
Thank you! This worked perfectly! This error happened a few years ago when I first built my site and I just gave up using it, only allowing admins to have accounts. I may be able to actually add login feature now.
Written by Deman (Guest)
3. 14-10-2010 08:07
Thanks
Thank you for this post - this issue had been bugging me for months as I failed to realise that Joomla itself was outputting the 403 header. Now fixed! :o)
Written by Russ (Guest)
Last Updated ( Monday, 21 September 2009 )
 
Next >

Popular of Late