- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-154061These packages were used to generate the fixes:
- drupal/upgrade_status: 4.2.0
- mglaman/phpstan-drupal: 1.2.10
- palantirnet/drupal-rector: 0.20.1
- Status changed to Needs review
12 months ago 9:37am 23 April 2024 - 🇬🇧United Kingdom 2dareis2do
My ide is not helping me with these syntax errors e.g. for templates/commerce/checkout/commerce-checkout-order-summary.html.twig and it looks ok to me at first look.
rector error
bootstrap_sass_starter_kit - themes/contrib/bootstrap_sass_starter_kit/templates/commerce/checkout/commerce-checkout-order-summary.html.twig:
+----------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| severity | line | message |
+----------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| error | 31 | Twig template themes/contrib/bootstrap_sass_starter_kit/templates/commerce/checkout/commerce-checkout-order-summary.html.twig contains a syntax error and cannot be parsed. |
+----------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+Code:
{# /** * @file * Default theme implementation for the checkout order summary. * * The rendered order totals come from commerce-order-total-summary.html.twig. * See commerce-order-receipt.html.twig for examples of manual total theming. * * Available variables: * - order_entity: The order entity. * - checkout_step: The current checkout step. * - totals: An array of order total values with the following keys: * - subtotal: The order subtotal price. * - adjustments: An array of adjustment totals: * - type: The adjustment type. * - label: The adjustment label. * - total: The adjustment total price. * - weight: The adjustment weight, taken from the adjustment type. * - total: The order total price. * - rendered_totals: The rendered order totals. */ #} <div{{ attributes.addClass('checkout-order-summary', 'table-responsive-sm') }}> {% block order_items %} <table class="table table-striped table-hover table-sm"> <tbody> {% for order_item in order_entity.getItems %} <tr> <td>{{ order_item.getQuantity|number_format }} x</td> {% if order_item.hasPurchasedEntity %} <td>{{ order_item.getPurchasedEntity|commerce_entity_render('summary') }}</td> {% else %} <td>{{- order_item.label -}}</td> {% endif %} <td>{{- order_item.getTotalPrice|commerce_price_format -}}</td> </tr> {% endfor %} </tbody> </table> {% endblock %} {% block totals %} {{ rendered_totals }} {% endblock %} </div>
- Status changed to Fixed
4 months ago 3:28pm 23 December 2024 Automatically closed - issue fixed for 2 weeks with no activity.