PHP 8.2: Deprecated function: Creation of dynamic property EntityQueue::$table is deprecated in ctools_export_load_object() (line 473)

Created on 10 December 2023, about 1 year ago
Updated 9 May 2024, 8 months ago

Issues on PHP 8.2

Deprecated function: Creation of dynamic property EntityQueue::$table is deprecated in ctools_export_load_object() (line 473 of /app/web/sites/all/modules/contrib/ctools/includes/export.inc).

Deprecated function: Creation of dynamic property EntityQueue::$type is deprecated in ctools_export_load_object() (line 474 of /app/web/sites/all/modules/contrib/ctools/includes/export.inc).
๐Ÿ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia VladimirAus Brisbane, Australia

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @VladimirAus
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chetan 11

    chetan 11 โ†’ made their first commit to this issueโ€™s fork.

  • Merge request !52fixed โ†’ (Open) created by chetan 11
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 7.x + Environment: PHP 8.0 & MySQL 5.7
    last update about 1 year ago
    57 pass
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chetan 11

    Hi,
    I have fixed the above error on "ctools" module, please check the raised MR.
    Thanks.

  • ๐Ÿ‡ง๐Ÿ‡พBelarus alena_stanul

    Hi,
    According to @chetan 11 code changes, the error will not be fixed.
    I don't see the difference between ัreation of dynamic property in $object->table as it was in the original and when we create array with $object_properties then try to use 'foreach ($object_properties .. ' construction to create property of object EntityQueue class.
    I checked the code in the sandbox and the error was not fixed.
    Please, check.

  • Status changed to Closed: works as designed 8 months ago
  • ๐Ÿ‡ช๐Ÿ‡ชEstonia tormi Tallinn

    Note that there's no EntityQueue class defined in ctools module.

    I had a similar warning, but for LinkitProfile class:
    Deprecated function: Creation of dynamic property LinkitProfile::$table is deprecated funktiossa ctools_export_load_object() (rivi 540 tiedostossa /app/web/sites/all/modules/contrib/ctools/includes/export.inc)..

    The solution was to deal with LinkitProfile class in linkit module, see https://www.drupal.org/project/linkit/issues/3401666 ๐Ÿ› Dynamic properties are deprecated in PHP 8.2 Needs review .

    So, here we need to update the EntityQueue class in some contrib module.

    Changing status to works as designed for now.

Production build 0.71.5 2024