SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: Ron-KK4HGY on August 17, 2014, 07:19:41 PM

Title: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: Ron-KK4HGY on August 17, 2014, 07:19:41 PM
When I am on the front page and try to log off I get this message:  Unable to verify referring url. Please go back and try again.  Some times it takes 2 or three tries before I can log off and sometimes I give up and go to FORUM where I can log off with no problem.

I also have this problem when I hit ADMIN and it asks for the password. Usually it takes two tries before I can get past the error message.

I have SMF 2.08 and SP 2.3.6 alpha.  It did it with 2.3.5 as well.  Lately I have just been going to FORUM to log off.  2.3.6 has fixed my shoutbox problem and I am very happy about that.  Thanks.
Title: Re: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: [SiNaN] on August 19, 2014, 12:06:24 AM
Try removing the "www." part from your site URL in the redirect page you have in your website root. That should fix this issue.
Title: Re: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: Ron-KK4HGY on August 19, 2014, 12:19:26 AM
Well that was easy.  It seems to be working, but I have no idea why.  Should I take all the wwws's off links to pages on my site?
Title: Re: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: [SiNaN] on August 19, 2014, 12:38:49 AM
From my understanding, there should be consistency in the URLs of your forum.

In order to verify that it is you who wants to log out intentionally, there is some code that checks the URL of the page on which you have clicked the log out button/link. The code expects an exact match. So although http://somesite.com/ and http://www.somesite.com/ doesn't look different to you, they are not exactly the same as far as that code goes. It also causes problems with HTTP access control, which I recently fixed for shoutbox - that wasn't as easy as this one though.

Basically, you should see if your forum base URL (the URL that you set while installing SMF) has the "www." part or not. (in your case, it doesn't) Then make sure all your custom scripts and linking are consistent with that to prevent such issues.
Title: Re: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: Ron-KK4HGY on August 19, 2014, 01:02:24 AM
Well that is good to know.  I will make adjustments as necessary.  Thank you for your quick reply and help.
Title: Re: logoff/logon fails with Unable to verify referring url. Please go back ... msg
Post by: [SiNaN] on August 19, 2014, 01:17:38 AM
You're welcome. ;)
SimplePortal 2.3.7 © 2008-2021, SimplePortal