How to solve "Action org.kde.kpmcore.externalcommand.init is not registered"?

I want to use the kde partition manager, but when I open it I just get a window with all the buttons grayed out and unclickable.

I’ve been able to use it before, and it should have popped up a window asking for admin permissions with my password, but for some reason it didn’t.

I tried launching it from the command line, but I got the same result.

Here’s the console output:

Loaded backend plugin:  "pmsfdiskbackendplugin"
Encountered error while checking authorization, error code: PolkitQt1::Authority::E_CheckFailed "GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.kde.kpmcore.externalcommand.init is not registered"