Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of dynamic property Member::$member_fields is deprecated #3286

Closed
robsonsobral opened this issue Apr 17, 2023 · 0 comments · Fixed by #3287
Closed

Creation of dynamic property Member::$member_fields is deprecated #3286

robsonsobral opened this issue Apr 17, 2023 · 0 comments · Fixed by #3287

Comments

@robsonsobral
Copy link
Contributor

Description of the problem

On the mod.member.php, the variable member_fields isn't being declared, which is deprecated.

How To Reproduce
Steps to reproduce the behavior:

  1. Create a custom member field
  2. Access the field value on a template
  3. See error below

Error Messages


Creation of dynamic property Member::$member_fields is deprecated

ee/ExpressionEngine/Addons/member/mod.member.php, line 2508

    Severity: E_DEPRECATED

Environment Details:

  • Version: 7.2.15
  • PHP Version 8.2.4

Possible Solution

Declare the variable on mod.member.php.

robsonsobral added a commit to robsonsobral/ExpressionEngine that referenced this issue Apr 17, 2023
intoeetive added a commit that referenced this issue May 2, 2023
Resolved #3286 when warning was shown when using member fields with PHP 8.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant