System Notification Issue

Hello everyone,

I have an issue when setting up a notification for any doctype. When I enable a notification for any doctype, and then click save or submit, the following error appears:

I don’t understand what the issue is. The notification worked before, but now it does not work correctly. I even tried creating a notification for a default doctype and the same error appears.

Any assistance would be helpful. Thanks.