http 403 error when registering

16 years 8 months ago #40392 by johnbarny
Replied by johnbarny on topic Re:http 403 error when registering
ibrahimari wrote:

Hello,
In English summary for our solution :
Firstly, i want to say a solution of the other problem in www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,29/id,33404/ . Because we had got this problem with it.

This problem's origin is some controls about spoofing and spamming. We mention it in below. This problem must be solved by the CB developers.

Operation :
Edited file name : comprofiler.class.php

1- It's starting from line 1942. (in cbSpoofCheck() function)
Original Code :
[code:1]
global $mainframe;
$validate = 'cbj' . md5( $mainframe->getCfg('secret')) . md5( $mainframe->getCfg( 'db' ) . date( 'dmY' ) );
$validateValue = mosGetParam( $_POST, $validate, 0 );
if (!$validateValue) {
header( 'HTTP/1.0 403 Forbidden' );
echo "<script>alert('Session expired.'); window.history.go(-1);</script> \n";
exit;
}
[/code:1]

Edited Code:
[code:1]
global $mainframe;
/*$validate = 'cbj' . md5( $mainframe->getCfg('secret')) . md5( $mainframe->getCfg( 'db' ) . date( 'dmY' ) );
$validateValue = mosGetParam( $_POST, $validate, 0 );
if (!$validateValue) {
header( 'HTTP/1.0 403 Forbidden' );
echo "<script>alert('Session expired.'); window.history.go(-1);</script> \n";
exit;
}*/
[/code:1]

2- It's starting from line 2045. (in cbRegAntiSpamCheck() function)

Original Code:
[code:1]
if ( $i == 2 ) {
header( 'HTTP/1.0 403 Forbidden' );
echo "<script>alert('Registration session expired and/or cookies are not enabled in your browser.'); window.history.go(-1);</script> \n";
exit;
}
[/code:1]

Edited Code:
[code:1]
/* if ( $i == 2 ) {
header( 'HTTP/1.0 403 Forbidden' );
echo "<script>alert('Registration session expired and/or cookies are not enabled in your browser.'); window.history.go(-1);</script> \n";
exit;
}*/
[/code:1]

Operation is completed.

I installed CB Captcha Plugin instead of this commented codes. I strongly that install this plugin.

I wish help you.
Good Jobs.


This fix works people :)
Thanx alot

Please Log in to join the conversation.

15 years 11 months ago #61818 by kauzi
Replied by kauzi on topic Re:http 403 error when registering
after failing to get any meaningful help form this forum, I managed to resolve this issue by simply changing the function on the Configuration manager under "Registration". Under registration tab, choose no for Ajax Username Checker. This should do the trick!

Quite simple really.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.224 seconds

Facebook Twitter LinkedIn