I get an error when trying to use a OnClicked Event

I get these errors:

when trying to use the on clicked event.

Here’s my blueprint:

You probably changed that function after you made this graph.
Delete ButtonWasClicked node and create again.