News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Log in Error

Started by JeffC57, November 15, 2024, 09:12:07 PM

Previous topic - Next topic

JeffC57

New install 2.1.4 - php8.1- theme Turna- stop forum spam 1.5.6 package installed - redirect at server Cpanel to www.

Forum is Schwinnbikeforum

When members go to log in they press the log in button at top right of page then an error message appears as a text box with the word "error" in it. If the member closes the error message then clicks on the "register" button right next to login then one of two things happen they are either given the standard log in box to log in with password  or it automatically logs the member in. I've tried it on the browsers, Brave, Chrome, Duck Duck Go and have been able to replicate the issue. In each one of the browsers if I log in using the register button and then log out and try again sometimes it works properly and other times not.

I have uninstalled Stop forum spam correctly and then reinstalled, I have reverted to the default theme. I've made other changes to cache to the recommended  level 1. There have been no changes in the log in behavior at all. I am quite exhausted of entering  my password so many time after changing a setting and doing nothing and changing back. Right now I have the Cpanel redirect to go to www.schwinnbikeforum. In the original set up it was https://schwinnbikeforum/index/php when I am logged in and without the index/php. yes it did have the .com but I got told not post live links in another bike forum so I left it out of the url name.

As you can see I'm not very experienced although I was able to keep the original forum up for ten years with just using the settings and then it got hacked and destroyed mainly because of my inexperience. We started anew and trying to attract the old members back but this log in glitch is quite bothersome. The members are mostly seniors but have little knowledge of computers so they get frustrated. Yeah I'm a senior too but more like a pitbull with some missing teeth trying to hang on as best as I can.

Any help would be greatly appreciated. I do know how to manage the Cpanel fairly well.

Sir Osis of Liver

You're having a www/non-www issue.  Try adding this to .htaccess in forum root -


# 301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
</IfModule>

When in Emor, do as the Snamors.
                              - D. Lister

JeffC57

Quote from: Sir Osis of Liver on November 15, 2024, 09:18:47 PMYou're having a www/non-www issue.  Try adding this to .htaccess in forum root -


# 301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
</IfModule>



Is there a way I can do that through settings? I have already done the Cpanel 301 permanent www. redirect in the redirect page of Cpanel. www.schwinnbikeforum- do not redirect wwww- left blank wild card.  When I did change it to a redirect there was no change in the log in behavior other than it logged me and I had to log back into the forum with the Register button

JeffC57

The big problem here is me. I have found public_html /.htaccess in the file manager of the Cpanel but Do I leave what is in the file and add the code you have written? This is the biggest problem, my inexperience.

Aleksi "Lex" Kilpinen

That might slightly depend on what is there now, but I would copy the current contents somewhere safe so you know what you started with, and then simply add the redirect there as a new section without altering the existing contents. If nothing breaks, good - if something breaks, then reverse the change and investigate what went wrong.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

JeffC57

Thanks for the reply. I do have the database backed up. I believe there's a section in my server's Cpanel that does an emulation where you can make changes and it doesn't affect the current forum page. I thought I saw something like that but I have go through it again. That would be the ticket for me but I'm bleary eyed from learning and screwing around changing things. Tomorrow is another day.

 I went through this type of thing back in the 90's when they dropped processor controlled air braking systems designed and made by WABCO called EPIC on our new locomotives with little or no documentation. We had to learn on the fly and experiment with settings, call the company with little hope of getting a response because the guy that designed the system retired and left a box of mish mash paperwork. If changing the settings and parameters weren't right you'd crash, for real. Luckily we had an Event Recorder system that we could read off after making changes to see if the brakes would apply and release at the correct
 pressures on a laptop using W3.1 then W95. Makes my head spin.

JeffC57

Thanks for the help. I learned how to locate the proper home directory and modify and save the file with the provided fix. Much appreciated. No locomotives were harmed in this procedure  8)

Advertisement: