Project

General

Profile

Actions

Bug #103873

closed

PHP Warning: Undefined Array Key "avatar" when saving profile of a non-admin user with disabled avatar field

Added by Ziad Abdul Hai 25 days ago. Updated 10 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-05-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Issue:

Saving the profile of a non-admin user with disabled avatar field leads to warnings in PHP 8+ on TYPO3 12 and TYPO3 13.1

Steps to reproduce the issue:

  • create an empty TYPO3 System (PHP Version 8.2)
  • create a rootpage
  • create an editor user group and user
  • disable the avatar field of this user with User-TSconfig (setup.fields.avatar.disabled=1)
  • switch to this user
  • edit the profile and save it or just save it, which causes the PHP warning:
     PHP Warning: Undefined array key "avatar" in /var/www/html/typo3/sysext/setup/Classes/Controller/SetupModuleController.php line 299 (main)
     PHP Warning: Undefined array key "avatar" in /var/www/html/typo3/sysext/setup/Classes/Controller/SetupModuleController.php line 301 (12.4)
    
Actions #1

Updated by Gerrit Code Review 25 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339

Actions #2

Updated by Gerrit Code Review 25 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339

Actions #3

Updated by Gerrit Code Review 18 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339

Actions #4

Updated by Gerrit Code Review 17 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84339

Actions #5

Updated by Gerrit Code Review 10 days ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84505

Actions #6

Updated by Ziad Abdul Hai 10 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF