Problem/Motivation
Following PHP error occurred with PHP 8.2 in a Drupal 10 installation.
Steps to reproduce
- Enable event_log_track_ui module.
- Login the website.
- The following PHP error is occurred.
Deprecated function: Creation of dynamic property Drupal|Core\Form|FormState::$_event_log_track_logged is deprecated in event_log _track ui_form_submit) (line 21 of modules/contrib/events_log_track/modules/event_log_track ui/event_log_track ui.module).
Test environment:
Drupal core: 10.0.5
PHP version: PHP 8 >= 8.2.0
Reference:
https://www.php.net/manual/en/migration82.deprecated.php
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
Proposed resolution
Use FormState::hasTemporaryValue() and FormState::setTemporaryValue() instead.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork events_log_track-3349786
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
MingsongComment #3
MingsongComment #5
MingsongComment #7
smustgrave CreditAttribution: smustgrave at Mobomo commentedSee no issue with it.
Comment #8
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #9
MingsongThanks @Stephen.
May I ask if we had a plan to release a new version at some point?
There are couple of fixes for bugs sitting in the develop branch since 3.1.4. It would be great if we could have a new version sooner better than later.
Cheers,
Comment #10
smustgrave CreditAttribution: smustgrave at Mobomo commentedSure
Comment #11
MingsongThank you.