Problem/Motivation

After making changes to Adaptive Theme subtheme in Layouts (under Appearance) and submitting them, the following error messages show up:

Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_config is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 36 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$css_config is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 37 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_name is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 38 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_path is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 39 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$form_values is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 40 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).

We use Drupal 10.2.3 and PHP 8.2.16.

Steps to reproduce

  1. Install Adaptive Theme.
  2. Create a custom subtheme using the AT Theme Generator.
  3. Make a change under Layouts.
  4. Save the change.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3424873-1.patch775 byteshimanshu_jhaloya

Comments

ljansova created an issue. See original summary.

himanshu_jhaloya’s picture

StatusFileSize
new775 bytes
ljansova’s picture

Thank you very much for the patch! However, the errors (or warnings) still seem to persist.

Is there anything else that needs to be changed in order to get rid of the errors in 8.x-5.2 version (not the dev version) of the theme?

tokosefi’s picture

it is riddled with bugs this theme....not compatible with drupal 10....and maintainers do not care anymore

mattbloomfield’s picture

A new version was just released which should clear this up.

ericvl’s picture

This is the related issue.

  • 1ae43b52 committed on 8.x-5.x
    Issue #3424873: Deprecated functions in LayoutSubmit.php
    
mattbloomfield’s picture

This has been fixed

mattbloomfield’s picture

Status: Active » Fixed

  • d9d43155 committed on 8.x-6.x
    Issue #3424873: Deprecated functions in LayoutSubmit.php
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.