Theme not working after updating to Drupal 10.3.0

Created on 30 June 2024, 3 days ago
Updated 1 July 2024, 1 day ago

Problem/Motivation

Theme code is not compatible with Drupal 10.3.0

Steps to reproduce

After upgrading to Drupal 10.3.0 it doesn't work :-(

Watchdog ERROR:

Error: Call to a member function addClass() on array en da_vinci_form_alter() (line 260 of /<WEB_HOME>/web/themes/contrib/da_vinci/da_vinci.theme).

Proposed resolution

Substitute the error line 260 of /web/themes/contrib/da_vinci/da_vinci.theme

    $form[$key]['submit']['#attributes']->addClass('search-form__submit');

with ...

Edit: Sorry. I made a mistake. This is the correct one:

    $form[$key]['submit']['#attributes']['class'][] = 'search-form__submit';

Remaining tasks

Review the all theme in order to update all outdated code.

🐛 Bug report
Status

Needs review

Version

9.1

Component

Code

Created by

🇪🇸Spain Sistemas SUMADOS

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

Comments & Activities

Production build 0.69.0 2024