Skip to content

[2.1]: Recurring errors when trying to export a profile for a non-existent member #8898

@Sesquipedalian

Description

@Sesquipedalian

Basic Information

If a profile export task has been started, but the member whose profile is being exported does not exist, error messages are generated. However, the task is not removed from the background tasks queue, and therefore the messages keep recurring.

Steps to reproduce

  1. Start a profile export for a member.
  2. Before the export is complete, delete that member's account.

Expected result

The export task should be silently aborted and any existing export files for it should be discarded.

Actual result

The error message array_merge(): Argument #1 must be of type array, null given, occurring on line 98 of ExportProfileData.php, will appear over and over in the logs.

Version/Git revision

2.1.6

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

We just need to add some code at the appropriate location that checks whether $member_info[$this->_details['uid']] is set and, if not, aborts the export.

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions