No Code Attached Yet bug
avatar Ruud68
Ruud68
21 Dec 2022

Steps to reproduce the issue

When deleting a user, plg_system_privacyconsent will act on the onUserAfterDelete triggered event.
it will delete any user consents for the user that is being deleted.

If there is an error in this deletion, it will set an error to $this->_subject

            } catch (Exception $e) {
                $this->_subject->setError($e->getMessage());
            }

but this will throw an error as $this->_subject doesn't exist

screen shot 2022-12-21 at 13 13 34

Expected result

no error / error bubled up as message?

Actual result

error
screen shot 2022-12-21 at 13 18 10

System information (as much as possible)

Joomla 4.2.6

Additional comments

avatar Ruud68 Ruud68 - open - 21 Dec 2022
avatar Ruud68 Ruud68 - change - 21 Dec 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Dec 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Dec 2022
avatar Ruud68 Ruud68 - change - 21 Dec 2022
The description was changed
avatar Ruud68 Ruud68 - edited - 21 Dec 2022
avatar Ruud68 Ruud68 - change - 21 Dec 2022
The description was changed
avatar Ruud68 Ruud68 - edited - 21 Dec 2022
avatar chmst chmst - labeled - 22 Dec 2022
avatar chmst chmst - change - 22 Dec 2022
Labels Added: bug
avatar joomdonation
joomdonation - comment - 22 Dec 2022
avatar Hackwar Hackwar - change - 25 Aug 2023
Labels Added: PBF
avatar Hackwar Hackwar - labeled - 25 Aug 2023
avatar brianteeman brianteeman - change - 1 Sep 2023
Labels Removed: PBF
avatar brianteeman brianteeman - unlabeled - 1 Sep 2023
avatar Hackwar Hackwar - change - 30 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-30 21:10:44
Closed_By Hackwar
avatar Hackwar Hackwar - close - 30 Mar 2024
avatar Hackwar
Hackwar - comment - 30 Mar 2024

The code has since been refactored and the problematic stuff has been removed. Closing this issue.

avatar Hackwar
Hackwar - comment - 30 Mar 2024

And of course: Thank you @Ruud68 for reporting this!

Add a Comment

Login with GitHub to post a comment