error on- login redirection page phpbb3.3.5+nginx+php7.4
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.
@Dark1z
Hi my friend any idea?
there is no enough information, are you able to provide real forum address? it could make diagnosis simpler
there is no enough information, are you able to provide real forum address? it could make diagnosis simpler
testing here sir
https://v3n0m.xyz
I don't see any errors in there indeed. everything looks fine
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
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."
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 https://github.com/phpbb-seo/usu/issues/39 and https://github.com/phpbb-seo/usu/issues/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.
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=
Stupid workaround for nginx:
rewrite ^/(viewtopic|viewforum)\.php/(.+)$ /$2 permanent;