az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

[Placeholder] Investigate redirect issues encountered after upgrading to 2.10.x #3566

Open joeparsons opened 2 months ago

joeparsons commented 2 months ago

Problem/Motivation

We've heard of a few instances of site owners encountering problems with redirect loops after upgrading to 2.10.x

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Proposed resolution

Description of the proposed solution, the rationale behind it, and workarounds for people who cannot use the patch.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem. (Need a tool to share screenshots or screencasts as URLs? Try monosnap

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

jfallen19 commented 2 months ago

First noticed May 31st. Most recent major change was a version upgrade from 2.9.5 to 2.10.2 in May 15th. Became more common. --Issue Description The web page will appear as a generic "White Screen of Death" - a white screen that says "The website encountered an unexpected error. Please try again later." However, you can view the edit page as normal, and there's no errors or issues with the page or content. Check for the Automatic URL Alias path, and the URL Redirects, and see if they're matching. In your reports and logs, you might see a PHP error mentioning a Redirect. The affected links were created a few years ago during our migration from Quickstart 1.0 to Quickstart 2.0.

If you think your site is affected and you're a web server admin, run this select code and check the paths on your site for similar issues.

select r.redirect_source__path, a.alias from DATABASE.redirect r
inner join DATABASE.path_alias a
on r.redirect_source__path like substring(a.alias, 2, LENGTH(a.alias)); 

--How to fix Remove the duplicate URL Redirect and save the page. (Note: This will not make a Revision, so be sure to back up your work first.) The paths and redirects should be working as normal now.

--Relevant links by the team: https://www.drupal.org/project/redirect/issues/3401916 https://www.drupal.org/project/redirect/issues/3096948 https://github.com/az-digital/az_quickstart/pull/3345