Problem/Motivation

These deprecated messages appear when using the SimilarTerms argument.

Deprecated function: Creation of dynamic property Drupal\similarterms\Plugin\views\argument\SimilarTermsArgument::$tids is deprecated in Drupal\similarterms\Plugin\views\argument\SimilarTermsArgument->validateArgument() (line 139 of modules/contrib/similarterms/src/Plugin/views/argument/SimilarTermsArgument.php)

Steps to reproduce

Install version: composer require 'drupal/similarterms:^1.6'

Proposed resolution

Update deprecated code

Comments

empesan created an issue. See original summary.

empesan’s picture

StatusFileSize
new551 bytes

Attached patch to fix #1

ayush.pandey’s picture

Hi @empesan, The issue is reproducible on D10 with module version 8.x-1.6. The patch provided at #2 fixes the issue and the similar terms work fine for both view as block & page. Attached before patch and after-patch screenshots for reference. The issue can be moved to fixed.

shelane’s picture

You can set it as “Reviewed & tested by the community.” After it has been committed, the maintainer will mark it as fixed.

keshavv’s picture

Status: Active » Reviewed & tested by the community

Works for me as well. We can merge it. Moving to RTBC.

  • shelane committed a24b2266 on 8.x-1.x authored by empesan
    Issue #3400367 by empesan: Deprecated function: Creation of dynamic...
shelane’s picture

Status: Reviewed & tested by the community » Fixed
keshavv’s picture

ayush.pandey’s picture

Status: Fixed » Closed (fixed)

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

ayush.pandey’s picture