Call to a member function getPackageHandle() on null

Permalink
So I just installed a theme on our site, and activated it, afterwards tried to uninstall the previous theme we had installed, but after clicking uninstall (from Pages > Themes, and before uninstall could even happen) I'm now getting this error on every page, front end and back end:

Call to a member function getPackageHandle() on null


Since I can't access any dashboard pages, I can't clear the cache, or go about trying to uninstall it again.

Is there any other way to get rid of this error?

 
dsw528 replied on at Permalink Reply
So not sure why that method didn't work, but I restored a database backup I took right before doing all this, and instead of removing the theme from Dashboard > Pages > Themes, I uninstalled it from the Add Functionality dashboard page, and that worked as it should.

Guess it could have been a fluke in my case, or maybe with this theme in particular, or maybe with C5 specifically removing a theme from the Pages > Themes page, not sure, but this problem is fixed.