phpbb-seo / usu

Ultimate phpBB SEO Friendly URL extension
GNU General Public License v2.0
17 stars 12 forks source link

Error when login on a post or a topic with zero duplicate strict mode #39

Open zetrader opened 3 years ago

zetrader commented 3 years ago

Hi, when i log being on a topic; i get an error page, i have to click to go back on index, then it displays the topic doesn't exist, i click another time on index and things come back to normal, phpbb 3.3.2 with php 7.4 :

General Error
INSECURE_REDIRECT

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/ext/phpbbseo/usu/core.php
LINE: 1310
CALL: trigger_error()

FILE: [ROOT]/ext/phpbbseo/usu/core.php
LINE: 1411
CALL: phpbbseo\usu\core->seo_redirect()

FILE: [ROOT]/ext/phpbbseo/usu/event/listener.php
LINE: 345
CALL: phpbbseo\usu\core->zero_dupe()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: phpbbseo\usu\event\listener->core_user_setup()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()

FILE: [ROOT]/phpbb/user.php
LINE: 222
CALL: phpbb\event\dispatcher->trigger_event()

FILE: [ROOT]/viewtopic.php
LINE: 357
CALL: phpbb\user->setup()

Screenshot : zetrader-test-ultimate-phpbb-seo-url-error

When i click on "return to index page" it goes to zeforums.com/viewtopic.php/ and it says "the topic is not available" (for sure with that url), i click on the logo to go back and everything goes back to normal, by the way, the log is done after clicking on "return to index page", i can see i'm logged.

It happens when i'm on a post of the topic with url like topic-url-txx.html#pxxx (xxx is the number of the post), i'll try to see if it happens if i change some parameters about redirecting post to url topic.

zetrader commented 3 years ago

Interesting, if i disable both options (it was on yes) : 1) Activate the Zero duplicate 2) Strict mode

I don't get the error at login on a post of a topic.

If i put it back, i get back this error either on a post or the topic, if i log being on a topic or post.

EDIT : If i do login a forum or topic, with only "Activate the Zero duplicate" and no strict mode, i have the error too.