Bug fixes on Drupal (9 and) 10 to get them to behave...

Submitted by Drupal Master on

Every time I upgrade to the latest Drupal 9 release, currently 9.5.x, the following know but not yet corrected patches must be fixed:

Core: Issue #3270647 (Fixed!)

MIME mail get crippled due to an error when creating the headers. #3270647.

Core: Redirect to https and none www

The .htaccess file must be fixed to define canonical pages (a Google term). Make sure http is redirected to https and that www. is stripped from the main URL.

 # To redirect all users to access the site WITHOUT the 'www.' prefix,
                                                  # (http://www.example.com/foo will be redirected to http://example.com/foo)
                                                  # uncomment the following:
                                                  RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
                                                  RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
                                                                                 
                                                  RewriteCond %{HTTPS} off
                                                  RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

The following works as well. It even works better! :)

# To redirect all users to access the site WITHOUT the 'www.' prefix,
                                                  # (http://www.example.com/foo will be redirected to http://example.com/foo)
                                                  # uncomment the following:
                                                  RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
                                                  # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
                                                  RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

Core: Script files are over-written

The script files for cron-(lynx | curl).sh are over-written with the empty templates.

Rules: Issue #2724129

Rules doesn't by default make it possible to handle the message of an email as a textarea. #2724129

Rules: Issue #3309664

Rules doesn't send email if PHP 8.1 is being used. #3309664

Rules: Issue #3309664 (Fixed!)

Rules rules 8.x-3.0-alpha7 doesn't work with PHP 8.1. Requires the -dev for PHP 8.1. PHP 8.1 causes Rules mailing to break.

Bootstrap 3.27 (Fixed!)

Bootstrap 3.27 requires PHP 8.1.

Bootstrap: Issue #3409370

Drupal 10.2.x causes a wrong type returned and a crash. Patch #27 in issue works. #3409370.

Devel 5.1.1 (Fixed!)

Devel 5.1.1 doesn't work with Drupal 9.5.3. (Argument count mismatch, expect 4 but get 3)

MimeMail: Issue #3257799

MimeMail requires the following fix, #3257799 to handle some Email addresses correct: RfcComplianceException: RFC 2822

Views aggregator: Issue #3206144

Views aggregator requires the following fix for the sum option to work #3206144

Views aggregator: Issue #None yet

Views aggregator also requires the following fix to remove a lot of warnings in the log file:

diff --git a/Table.php.int b/Table.php
                        index 0ae870a..daf9d02 100644
                        --- a/Table.php.int
                        +++ b/Table.php
                        @@ -688,6 +688,7 @@ class Table extends ViewsTable {
                               }
                             }
                         
                        +    $value = '';
                             // Get the commerce number.
                             if (isset($field->number)) {
                               $value = $field->number;