News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

new users unable to sign in

Started by shadav, September 16, 2021, 08:21:53 PM

Previous topic - Next topic

shadav

ok not sure what's going on there
2.0.18
trying to log in with my test account and I keep getting redirected to
http://forum.foamyfanatics.net/agreement/?sa=policy

Not Found
The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I do have the agreement in place, I do have something written into the privacy policy

I checked smf error logs and nothing showing there other than undefined index/titles bla bla bla

checked my server logs and well there's a bunch of jibberish to me

test account
user: test
password: TestPassword

Arantor

Try resetting the htaccess file for pretty URLs from the admin area - I'm betting it was created before your upgrade to whichever version added action=agreement and doesn't know about it.

shadav

thanks, I tried that still no luck, same thing

ok so I turned off pretty urls and it works now so yeah it's something with pretty urls, thank you, i'll go check with vbgamer  :P

vbgamer45

I think it might be a mod_security issue. Disable mod_security.
As all your other urls on your forum seem to be ok.
I can try a random string and it works ok with 404
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

shadav

mod security is already turned off in the .htaccess due to other prior issues

<IfModule mod_security.c>
 # Turn off mod_security filtering.
 SecFilterEngine Off

 # The next part below probably is not needed, but better safe than sorry.
 SecFilterScanPOST Off
</IfModule>

vbgamer45

I would try contacting the host to make sure as well. Sometimes .htaccess disabling mod_security doesn't work.
I can't tell much from headers with cloudflare
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

shadav

just curious, before I contact my host, do you have an idea if I can find it myself in my hosting control panel anywhere? I have a managed server so not sure if I have access to this or if I have to ask them...

vbgamer45

If it is managed for sure ask them.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

shadav

sadly that did not work
they replied with to use this in my .htaccess
<IfModule security2_module>
SecRuleEngine Off
SecRequestBodyAccess Off
</IfModule>

and still the same issue happening

vbgamer45

Do you have a file or folder called agreement?

I noticed this just shows the file
ttp://forum.foamyfanatics.net/agreement
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

shadav

the default one in the forum root folder, agreement.txt

is it an issue with the rewrite?
RewriteRule ^(agreement|acceptagreement|activate|admin|enotify|announce|attachapprove|bookmarks)/?$ ./index.php?pretty;action=$1 [L,QSA]

vbgamer45

I don't think so. it is working on my test site ok.
And should never result in a 404 error.

You can turn off action rewrites as a setting.


Can you attach your whole .htaccess file
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

shadav


shadav

#13
ok adding
agreement,policy to the skip action list works in the admin
so well that at least solves that issue :) thank you

going to go ahead and mark this solved, but if you can figure out why it's returning a 404 on the rewrite that would be good otherwise, meh, it's working now

Advertisement: