Deprecated function: Creation of dynamic property JSNode::$params

Created on 11 December 2023, 11 months ago
Updated 9 July 2024, 4 months ago

Problem/Motivation

I get this warning when i load first page.

Deprecated function: Creation of dynamic property JSNode::$params is deprecated in JSNode->__set() (line 1831 of modules/contrib/advagg/advagg_js_minify/jsminplus.inc).

JSNode->__set('params', Array) (Line: 1248)
JSParser->FunctionDefinition(Object, , 1) (Line: 1492)
JSParser->Expression(Object) (Line: 1216)
JSParser->Statement(Object) (Line: 911)
JSParser->Statements(Object) (Line: 886)
JSParser->Script(Object) (Line: 877)
JSParser->parse('/**
 * @file
 * Parse inline JSON and initialize the drupalSettings global object.
 */

(function () {
  // Use direct child elements to harden against XSS exploits when CSP is on.
  const settingsElement = document.querySelector(
    'head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]',
  );

  /**
   * Variable generated by Drupal with all the configuration created from PHP.
   *
   * @global
   *
   * @type {object}
   */
  window.drupalSettings = {};

  if (settingsElement !== null) {
    window.drupalSettings = JSON.parse(settingsElement.textContent);
  }
})();
', '', 1) (Line: 279)
JSMinPlus->min('/**
 * @file
 * Parse inline JSON and initialize the drupalSettings global object.
 */

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

6.0

Component

Code

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Production build 0.71.5 2024