Problem/Motivation
Warning: Undefined array key "route:[language]=xxx:/article/*************:" in Drupal\Core\Cache\DatabaseBackend->getMultiple() (line 121 of /home/******/public_html/core/lib/Drupal/Core/Cache/DatabaseBackend.php)
#0
Steps to reproduce
1- Install Drupal 9.3.2
2- Installl the module
3- Install language module and add a secondary language
4- Make an article with translation in both format
5- Provide an alias, and then provide a new alias (Two alias see the redirection in action)
6- Browse to the first provided alias
Proposed resolution
I assume, the URL redirect in the backend has issue with content language detection. Think of this way the worn-out url path of "/article/10" redirects to the new alias "/article/something-utf-8-string", in this jump article/10 > node/10 > /article/.... not all the variables are taken into consideration at the last part when the node/nid switches to new alias.
This issue logs about 7 to 9 php-errors every time the url is visited. Also, at the same time an error logged due to page not found with regard to issue of UTF-8 character coding and decoding which is discussed here:
High number of page not found in the log file due to path encoding
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | php-undefined.png | 255.93 KB | tsotoodeh |
| #2 | php-error.jpg | 177.31 KB | tsotoodeh |
Issue fork redirect-3257559
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tsotoodeh commentedScreenshot attached.
Comment #3
tsotoodeh commentedThe redirect function logs so many php errors in the log file on accessing the redirect pages. Below is the error: