M2.4.7, v1.1.0: Error when enable the logging for Tax Rules

Created by Esther Nguyen, Modified on Mon, 25 Nov at 11:25 AM by Esther Nguyen

ISSUE:


We saw this locally in our development environment with the latest untouched version of Magento 2.4.7-p3 and your latest version of Magento 2 Admin Action Log 1.1.0. It happens when doing the following:


+ Enable Logging for Tax Rules

+ Create a tax rule

+ Edit that tax rule and try again to save

+ The error "We can't save this tax rule right now." will be shown in the backend.


No logging in addition can be found, since the exception that occurs will be catched and ignored.


Disabling the logging for Tax Rules will "fix" the problem.


SOLUTION:


To resolve the issue, please edit the file app/code/Bss/AdminActionLog/Observer/ModelSaveBefore.php as below:


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article