FreshRSS icon indicating copy to clipboard operation
FreshRSS copied to clipboard

[BUG]: Infinite redirects "ERR_TOO_MANY_REDIRECTS"

Open oliversum-ch opened this issue 3 years ago • 8 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. I updated to 1.20.0
  2. In the settings, I deactivated "Clicking outside of article text area closes the article"
  3. I clicked on "submit"
  4. I got a "ERR_TOO_MANY_REDIRECTS" error.
  5. Whatever I do, I get this error.
  6. I can see that FreshRSS adds "https://freshrss.maydomain.com/freshrss/p/i/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/p/" to the URL. Correct would be "https://freshrss.maydomain.com/p/i/"

Expected behavior No ERR_TOO_MANY_REDIRECTS.

Screenshots If applicable, add screenshots to help explain your problem.

Environment information (please complete the following information):

  • Device: Windows, Android
  • OS: Windows 10, Android 9
  • Browser: Sidekick 102.26.1.23369 (127.2.0), Chrome 107.0.5297.1 (Official Build) canary-dcheck (64-bit)
  • FreshRSS version: 1.20.0
  • Database version: not sure, sorry
  • PHP version: 7.4.30
  • Installation type: Cpanel, Update via FreshRSS settings

Additional context log.txt: [Tue, 13 Sep 2022 08:37:01 +0100] [warning] --- FreshRSS_CategoryDAO::addColumn: kind [Tue, 13 Sep 2022 08:37:01 +0100] [warning] --- FreshRSS_CategoryDAO::addColumn: lastUpdate [Tue, 13 Sep 2022 08:37:01 +0100] [warning] --- FreshRSS_CategoryDAO::addColumn: error [Tue, 13 Sep 2022 08:37:01 +0100] [warning] --- FreshRSS_EntryDAO::addColumn: attributes

oliversum-ch avatar Sep 13 '22 08:09 oliversum-ch

Might be a regression due to https://github.com/FreshRSS/FreshRSS/pull/4167 for https://github.com/FreshRSS/FreshRSS/issues/4126 Maybe similar to https://github.com/FreshRSS/FreshRSS/issues/4221 Maybe related to https://github.com/FreshRSS/FreshRSS/issues/4610

Could you check what base_url you have in your ./data/config.php ?

Ideally, there should be no /p/ in your URL, so the main page should be on https://freshrss.example.net/i/

Alkarex avatar Sep 13 '22 09:09 Alkarex

Thanks for your reply! You're right, the base_url was wrong - no idea why, I didn't change anything and FreshRSS was working smoothly for more than one year with these settings. It wonly works with https://freshrss.example.net/p/ though, I immediately get an infinite redirect with https://freshrss.example.net/i/.

oliversum-ch avatar Sep 13 '22 09:09 oliversum-ch

Could you please tell where your Web root is in your local file structure (for instance /var/www/FreshRSS/p/), what working URL you have, and what base_url you have?

Alkarex avatar Sep 13 '22 14:09 Alkarex

Sure! Root: /home/sites/7b/0/09ec7hg48d/public_html/FreshRSS/ Working URL (I assume that's the URL I'm using to access FreshRSS): https://freshrss.mydomain.com/ 'base_url' => 'https://freshrss.mydomain.com/p/'

oliversum-ch avatar Sep 13 '22 15:09 oliversum-ch

Can you try with the opposite:

  • Root: /home/sites/7b/0/09ec7hg48d/public_html/FreshRSS/p/
  • Base URL: https://freshrss.example.net/

Alkarex avatar Sep 13 '22 20:09 Alkarex

That seems to work, thank you! Interesting, I installed FreshRSS using Cpanel - looks like their installation paths were wrong. Thank you!

oliversum-ch avatar Sep 14 '22 07:09 oliversum-ch

@oliversum-ch Could you try to reach-out to Cpanel?

Alkarex avatar Sep 15 '22 09:09 Alkarex

I'm using shared hosting with Cpanel. Let me contact my hoster, but I fear I cannot directly contact Cpanel...

oliversum-ch avatar Sep 15 '22 09:09 oliversum-ch

@oliversum-ch any new development on that issue?

aledeg avatar Oct 24 '22 11:10 aledeg

@oliversum-ch any new development on that issue?

No - my shared hosting promised it to forward it to Cpanel, but I don't expect any further answer...

oliversum-ch avatar Oct 29 '22 12:10 oliversum-ch

I cannot reproduce any problem at the moment, even with slightly wrong settings. It might have been a combination of browser cache and wrong settings.

Alkarex avatar Oct 30 '22 11:10 Alkarex