Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on- login redirection page phpbb3.3.5+nginx+php7.4 #63

Open
sreniv opened this issue Feb 7, 2022 · 9 comments
Open

error on- login redirection page phpbb3.3.5+nginx+php7.4 #63

sreniv opened this issue Feb 7, 2022 · 9 comments
Labels

Comments

@sreniv
Copy link

sreniv commented Feb 7, 2022

Hi, i am using phpbbseo for (phpbb3.3.5+nginx+php7.4) ubuntu os,

installed usu plugin working fine, but when user try to login from index homepage then its fine, but when user login from /forum-name (or) /forum-name/topic-name.html then after login its redirecting to an error page saying

Information
The requested page could not be found.

Example:

user when click this below url to login

https://domain.com/ucp.php?mode=login&redirect=viewtopic.php%2Fgames%2Fhelo-t2.html%3Fforum_uri%3Dgames%26start%3D%26t%3D2

it will redirect him to page after login is below

https://domain.com/viewtopic.php/games/helo-t2.html?forum_uri=games&start=&t=2&sid=61e46405b4a8210607d941239333e1b5

but after login it give me error message

Information
The requested page could not be found.

@sreniv sreniv added the bug label Feb 7, 2022
@sreniv sreniv changed the title Has some bug error on- login redirection page phpbb3.3.5+nginx+php7.4 Feb 7, 2022
@meis2m
Copy link
Member

meis2m commented Feb 7, 2022

@Dark1z

Hi my friend any idea?

@ser
Copy link

ser commented Feb 7, 2022

there is no enough information, are you able to provide real forum address? it could make diagnosis simpler

@sreniv
Copy link
Author

sreniv commented Feb 7, 2022

there is no enough information, are you able to provide real forum address? it could make diagnosis simpler

testing here sir

https://v3n0m.xyz

@ser
Copy link

ser commented Feb 8, 2022

I don't see any errors in there indeed. everything looks fine

@sreniv
Copy link
Author

sreniv commented Feb 8, 2022

I don't see any errors in there indeed. everything looks fine

https://v3n0m.xyz/ucp.php?mode=login&redirect=viewtopic.php%2Fgames%2Fhelo-t2.html%3Fforum_uri%3Dgames%26start%3D%26t%3D2
this link redirect u to the login page, please use this link to login u wil understand the actua problem sir
user: demo
password: 123456

@zetrader
Copy link

https://v3n0m.xyz/ucp.php?mode=login&redirect=viewtopic.php%2Fgames%2Fhelo-t2.html%3Fforum_uri%3Dgames%26start%3D%26t%3D2
this link redirect u to the login page, please use this link to login u wil understand the actua problem sir
user: demo
password: 123456

I can't see the error message too, as the user or password seems incorrect :
"You have specified an incorrect username. Please check your username and try again. If you continue to have problems please contact the Board Administrator."

@wcz-txp
Copy link

wcz-txp commented Jun 23, 2022

I have the same problem here on a phpbb 3.3.7 with php 8.0. And I think the described bug is the same as in
#39
and
#45

So the problem is, that a "viewtopic.php/" is left in the redirection link, which should disappear. One can build a workaround with a redirection rule in nginx/Apache, but the extension should do the job.

@wcz-txp
Copy link

wcz-txp commented Jun 23, 2022

After playing around with one of these redirect links, it seems, that the problem is linked to the "sid removing". If I take the same link as mentioned above:
https://domain.com/viewtopic.php/games/helo-t2.html?forum_uri=games&start=&t=2&sid=61e46405b4a8210607d941239333e1b5

and I remove the sid part, than the redirection is correctly made. And this concerns not only the login redirect. Any topic url with a "sid" will be wrongly redirected to something like "/viewtopic.php/..."

The same for forum links. Any forum url with a "sid" gets a redirect to "/viewforum.php/..."

For example:
https://domain.com/forumname-f33.html?sid=7cab5e142f7eb27813475688ec677cfc
is redirected by 301 to
https://domain.com/viewforum.php/forumname-f33.html?f=33&start=

@wcz-txp
Copy link

wcz-txp commented Jun 24, 2022

Stupid workaround for nginx:

rewrite ^/(viewtopic|viewforum)\.php/(.+)$ /$2 permanent;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants