Volume keys and volume icon not working

For some unknown reason none of my volume keys seem to function. Volumeicon also doesn’t work as I can not unmute even if I middle click on it. I looked in ~/.config/volumeicon/volumeicon and found this:

[Alsa]
card=default

[Notification]
show_notification=true
notification_type=1

[StatusIcon]
stepsize=5
onclick=urxvt -e ‘alsamixer’
theme=White Gnome
use_panel_specific_icons=true
lmb_slider=true
mmb_mute=true
use_horizontal_slider=false
show_sound_level=true
use_transparent_background=true

[Hotkeys]
up_enabled=true
down_enabled=true
mute_enabled=true
up=XF86AudioRaiseVolume
down=XF86AudioLowerVolume
mute=XF86AudioMute

Hello, I had the same problem and tried the solution below and it worked!

I just added a volume widget to my desktop and the media keys began to work.

I hope you might find it useful too.

Good luck!