TypeError: Drupal\gin_lb\TwigExtension\GinLbExtension::ginClasses() when adding a block

Created on 15 November 2023, over 1 year ago
Updated 30 July 2024, 9 months ago

Problem/Motivation

Steps to reproduce

With this module enabled, I get this error (in Ajax) while adding a block:
TypeError: Drupal\gin_lb\TwigExtension\GinLbExtension::ginClasses(): Argument #1 ($attribute) must be of type Drupal\Core\Template\Attribute, null given
on D10.1.6

Proposed resolution

No idea atm.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇦🇺Australia elgandoz Canberra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @elgandoz
  • 🇦🇺Australia elgandoz Canberra
  • Assigned to Grimreaper
  • 🇫🇷France Grimreaper France 🇫🇷
  • Issue was unassigned.
  • Status changed to Postponed: needs info about 1 year ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Hi,

    This is called by the Twig function 'glb_classes'.

    And it is used a lot in the templates provided by Gin LB.

    Could you please specify:
    - Gin version
    - Gin LB version
    - any Layout Builder related modules and their versions
    - the fields types and widgets of your block (I suppose it is a block content type and not a custom block plugin?)
    - if you can make a dichotomy by changing the Twig templates to remove calls to this function to see which template is triggering the problem.

    I suspect something related to 🐛 Multivalued fields throw an error Postponed: needs info . And maybe there is a field type that is provoking problem. Maybe a media library widget or something like that.

  • Status changed to Closed: cannot reproduce 9 months ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Feel free to re-open if the problem is still there with specified steps to reproduce.

Production build 0.71.5 2024